-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
executable file
·39 lines (26 loc) · 1.09 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 2.8)
project ( NOCR )
find_package( OpenCV REQUIRED )
find_package( Boost COMPONENTS program_options system REQUIRED )
set( CMAKE_RUNTIME_OUTPUT_DIRECTORY "${NOCR_SOURCE_DIR}/bin" )
set( CMAKE_LIBRARY_OUTPUT_DIRECTORY "${NOCR_SOURCE_DIR}/lib" )
set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${NOCR_SOURCE_DIR}/lib" )
set( NOCR_EXTERNAL_LIB ${NOCR_SOURCE_DIR}/lib )
include_directories( ${NOCR_SOURCE_DIR}/External-libraries/libsvm-3.18/ )
include_directories( ${NOCR_SOURCE_DIR}/External-libraries/pugixml/ )
include_directories( ${Boost_INCLUDE_DIR})
link_directories( ${Boost_LIBRARY_DIR})
if (UNIX)
add_compile_options(-std=c++0x -Wall -ggdb -Wextra)
endif(UNIX)
add_subdirectory( ./External-libraries)
set (required_libraries
${NOCR_EXTERNAL_LIB}/libpugi.so
${NOCR_EXTERNAL_LIB}/libLibSVM.so
${Boost_PROGRAM_OPTIONS_LIBRARY}
${Boost_SYSTEM_LIBRARY})
add_subdirectory( NOCRLib )
include_directories( "${NOCR_SOURCE_DIR}/NOCRLib/include" )
add_subdirectory( ./NOCRMain )
add_subdirectory( ./NOCRGui)
add_subdirectory( ./Experiments-programs)