-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists_coverage.txt
23 lines (16 loc) · 1.03 KB
/
CMakeLists_coverage.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cmake_minimum_required(VERSION 2.8)
project (NimbleDSP)
set(CMAKE_SUPPRESS_REGENERATION TRUE) # For doing test coverage
#SET(CMAKE_CXX_FLAGS "-std=c++0x")
SET(CMAKE_CXX_FLAGS "-std=c++0x -g -O0 -Wall -W -Wshadow -Wunused-variable -Wunused-parameter -Wunused-function -Wunused -Wno-system-headers -Wno-deprecated -Woverloaded-virtual -Wwrite-strings -fprofile-arcs -ftest-coverage")
SET(CMAKE_LD_FLAGS "-fprofile-arcs -ftest-coverage")
file (GLOB SOURCE_HEADERS "src/*.h")
set( KISSFFT_DIR ../kiss_fft130 )
SET(kiss_SRCS ${KISSFFT_DIR}/kiss_fft.c ${KISSFFT_DIR}/kiss_fft.h ${KISSFFT_DIR}/_kiss_fft_guts.h ${KISSFFT_DIR}/tools/kiss_fftr.c ${KISSFFT_DIR}/tools/kiss_fftr.h)
ADD_LIBRARY(kissfft STATIC ${kiss_SRCS} )
set( GOOGLETEST_DIR ../googletest-read-only )
INCLUDE_DIRECTORIES(src ${KISSFFT_DIR} ${KISSFFT_DIR}/tools ${GOOGLETEST_DIR}/include)
add_subdirectory (${GOOGLETEST_DIR} gtest)
AUX_SOURCE_DIRECTORY(test TEST_SOURCES)
add_executable (NimbleDspTests ${SOURCE_HEADERS} ${TEST_SOURCES})
target_link_libraries (NimbleDspTests kissfft gtest)