Skip to content

Commit

Permalink
Add support for CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
ademuri committed May 31, 2020
1 parent f0a47de commit 6fcc85d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ tools/fft_int16_t
tools/fft_int32_t
tools/fft_simd
test/test_simd
build
14 changes: 11 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ addons:

install: true

script:
- make all
- make testall
jobs:
include:
- name: "build (make)"
script:
- make all
- make testall
- name: "build (cmake)"
script:
- mkdir build && cd build
- cmake ..
- make
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cmake_minimum_required(VERSION 2.8)
project(kissfft)

add_library(kissfft
kiss_fft.c)

target_include_directories(kissfft PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:.>)

0 comments on commit 6fcc85d

Please sign in to comment.