Merge pull request #46 from ademuri/master

Add support for CMake
This commit is contained in:
mborgerding 2020-06-02 07:51:48 -04:00 committed by GitHub
commit 159874bffa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 3 deletions

1
.gitignore vendored
View File

@ -45,3 +45,4 @@ tools/fft_int16_t
tools/fft_int32_t tools/fft_int32_t
tools/fft_simd tools/fft_simd
test/test_simd test/test_simd
build

View File

@ -14,6 +14,14 @@ addons:
install: true install: true
script: jobs:
- make all include:
- make testall - name: "build (make)"
script:
- make all
- make testall
- name: "build (cmake)"
script:
- mkdir build && cd build
- cmake ..
- make

9
CMakeLists.txt Normal file
View File

@ -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:.>)