-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
36 lines (28 loc) · 936 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
36 lines (28 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# We want a recent CMake file
cmake_minimum_required(VERSION 3.0)
# The project
project(SleepStageAlgo)
# Create variables with files to be compiled
set(SRCS
main.cpp
SleepStageAlgorithm.cpp
Features.cpp
)
set(HEADERS
SleepStageAlgorithm.hpp
Features.hpp
DateHelper.hpp
DataSample.hpp
)
#Compile with debug symbol
set(CMAKE_BUILD_TYPE Debug)
# Include JsonCPP library
set(JSONCPP_LIB_PATH /home/lecoucl/Projects/Sommeil/SleepStageAlgorithm/jsoncpp)
include_directories(${JSONCPP_LIB_PATH}/include)
# Include Boost library
FIND_PACKAGE( Boost 1.40 COMPONENTS date_time REQUIRED )
INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} )
# Include FFTW3 library
FIND_LIBRARY(FFTW3_LIBRARIES NAMES fftw3 libfftw3 PATHS /usr/lib REQUIRED)
add_executable(sleep_stage_algo ${SRCS} ${HEADERS})
target_link_libraries(sleep_stage_algo ${JSONCPP_LIB_PATH}/src/lib_json/libjsoncpp.so ${Boost_LIBRARIES} ${FFTW3_LIBRARIES})