-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
67 lines (51 loc) · 2.07 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.8)
cmake_policy(SET CMP0060 NEW)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Wall -O3 -g")
project( mctracker )
find_package(OpenCV REQUIRED)
message(STATUS "OpenCV library status:")
message(STATUS " version: ${OpenCV_VERSION}")
message(STATUS " libraries: ${OpenCV_LIBS}")
message(STATUS " include path: ${OpenCV_INCLUDE_DIRS}")
find_package(yaml-cpp REQUIRED)
message(STATUS "YAML-CPP library status:")
message(STATUS " include path: ${YAML_CPP_INCLUDE_DIR}")
message(STATUS " libraries: ${YAML_CPP_LIBRARIES}")
add_definitions(-Wuninitialized)
add_definitions(-Wreturn-type)
add_definitions(-Wsign-compare)
add_definitions(-Wuninitialized)
add_definitions(-Wunused-function)
add_definitions(-Wunused-label)
add_definitions(-Wunused-value)
add_definitions(-Wunused-variable)
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++14" COMPILER_SUPPORTS_CXX14)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
if(COMPILER_SUPPORTS_CXX14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
elseif(COMPILER_SUPPORTS_CXX11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
elseif(COMPILER_SUPPORTS_CXX0X)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
else()
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
endif()
include_directories( ${OpenCV_INCLUDE_DIRS} )
set(LIBRARY_OUTPUT_PATH ../lib)
set(EXECUTABLE_OUTPUT_PATH ../bin)
include(${CMAKE_CURRENT_SOURCE_DIR}/src/utils/CMakeLists.txt)
utils()
include(${CMAKE_CURRENT_SOURCE_DIR}/src/config/CMakeLists.txt)
config()
include(${CMAKE_CURRENT_SOURCE_DIR}/src/object_detection/CMakeLists.txt)
object_detection()
include(${CMAKE_CURRENT_SOURCE_DIR}/src/segmentation/CMakeLists.txt)
segmentation()
include(${CMAKE_CURRENT_SOURCE_DIR}/src/homography/CMakeLists.txt)
homography()
include(${CMAKE_CURRENT_SOURCE_DIR}/src/tracker/CMakeLists.txt)
tracker()
include(${CMAKE_CURRENT_SOURCE_DIR}/src/apps//CMakeLists.txt)
applications()