comparison src/CMakeLists.txt @ 0:add35537fdbb tip

Initial import
author irh <ian.r.hobson@gmail.com>
date Thu, 25 Aug 2011 11:05:55 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:add35537fdbb
1 set(GPSYNTH_SOURCES
2 feature_extractor.cpp
3 file_comparer.cpp
4 logger.cpp
5 main.cpp
6 mfcc_analyzer.cpp
7 population.cpp
8 program_options.cpp
9 sc_converter.cpp
10 sc_default_grammar.cpp
11 sc_evaluator.cpp
12 sc_grammar.cpp
13 )
14
15 # json
16 include_directories("${PROJECT_DIR}/third_party/json")
17 set(GPSYNTH_LIBS ${GPSYNTH_LIBS} json)
18
19 # fftw
20 find_package(FFTW REQUIRED)
21 include_directories(${FFTW_INCLUDES})
22 set(GPSYNTH_LIBS ${GPSYNTH_LIBS} ${FFTW_LIBRARIES})
23
24 # sndfile
25 find_package(SndFile REQUIRED)
26 include_directories(${SNDFILE_INCLUDE_DIR})
27 set(GPSYNTH_LIBS ${GPSYNTH_LIBS} ${SNDFILE_LIBRARY})
28
29 # configure boost
30 set(Boost_USE_MULTITHREADED ON)
31 find_package(Boost 1.44.0 COMPONENTS date_time
32 filesystem
33 program_options
34 system
35 thread
36 REQUIRED)
37 set(GPSYNTH_LIBS ${GPSYNTH_LIBS} ${Boost_LIBRARIES})
38
39 # setup gpsynth
40 add_executable(gpsynth ${GPSYNTH_SOURCES})
41 target_link_libraries(gpsynth ${GPSYNTH_LIBS})
42
43 install(TARGETS gpsynth RUNTIME DESTINATION bin)
44