-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
42 lines (32 loc) · 876 Bytes
/
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
cmake_minimum_required(VERSION 2.8)
project(dove-eye)
set(CMAKE_PREFIX_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
#
# Compile time configuration
#
include(CMakeDependentOption)
set(CXX_STANDARD 14)
set(CONFIG_MAX_ARITY 3)
option(CONFIG_DEBUG_HIGHGUI "Use OpenCV highgui for debugging outputs" off)
# OpenCV highgui doesn't work well with multiple threads, therefore they must
# be disabled
cmake_dependent_option(
CONFIG_SINGLE_THREADED "Do not create new threads for application logic"
on "CONFIG_DEBUG_HIGHGUI" off)
configure_file(cmake/config.h.cmake config.h)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
#
# Common settings
#
if(WIN32)
# TODO add warnings switch
else()
add_definitions("-Wall -Wno-sign-compare")
endif()
#
# Subdirectories
#
add_subdirectory(app)
add_subdirectory(lib)
#add_subdirectory(tools/calibration)
add_subdirectory(tools/dove_eye)