-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
71 lines (46 loc) · 1.78 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
cmake_minimum_required(VERSION 2.6)
project(rsi)
set(CMAKE_CXX_STANDARD 11)
find_package( OpenCV REQUIRED)
find_package( bettergraph REQUIRED)
# find_package( vodigrex REQUIRED)
find_package( Boost REQUIRED )
find_package( editDistance REQUIRED )
find_package( maoris REQUIRED )
if ( NOT Boost_FOUND )
message(STATUS "This project requires the Boost library, and will not be compiled.")
return()
endif()
# find_package(dlib REQUIRED)
# if ( NOT dlib_FOUND )
# message(STATUS "This project requires the Boost library, and will not be compiled.")
# return()
# endif()
get_cmake_property(_variableNames VARIABLES)
foreach (_variableName ${_variableNames})
message(STATUS "${_variableName}=${${_variableName}}")
endforeach()
#add_definitions(-std=c++11)
include_directories(include ${vodigrex_INCLUDE_DIRS} ${maoris_INCLUDE_DIRS} include/hungarian)
add_subdirectory(src)
#add_library(RSILIB
# src/FuzzyOpening.cpp src/ZoneExtractor.cpp src/Kmean.cpp src/GraphZone.cpp src/ZoneCompared.cpp src/Zone.cpp
# )
add_subdirectory(include)
# add_executable(rsi main.cpp)
# target_link_libraries(rsi ${OpenCV_LIBS})
# install(TARGETS rsi RUNTIME DESTINATION bin)
add_subdirectory(Test)
# uninstall target
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
IMMEDIATE @ONLY)
add_custom_target(uninstall
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
## Installing the files
FILE(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/include/*.hpp")
FILE(GLOB files_hung "${CMAKE_CURRENT_SOURCE_DIR}/include/hungarian/*.h")
INSTALL(FILES ${files} DESTINATION include/RSI)
INSTALL(FILES ${files_hung} DESTINATION include/RSI/hungarian)
INSTALL(FILES rsi-config.cmake DESTINATION lib/RSI)