-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
32 lines (25 loc) · 898 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
PROJECT("Fiducials")
SET(FIDUCIALS_VERSION_MAJOR 0)
SET(FIDUCIALS_VERSION_MINOR 1)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/CMakeModules/")
OPTION(BUILD_EXAMPLES "Build Examples" ON)
IF(CMAKE_COMPILER_IS_GNUCXX )
# ADD_DEFINITIONS("-Wall -Wno-error=deprecated-declarations -Werror")
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
ENDIF()
# Overide with cmake -DCMAKE_BUILD_TYPE=Debug {dir}
IF( NOT CMAKE_BUILD_TYPE )
MESSAGE("Build type not set (defaults to release)")
MESSAGE("-DCMAKE_BUILD_TYPE=Debug for debug")
SET( CMAKE_BUILD_TYPE Release )
ELSE()
MESSAGE("Build type: ${CMAKE_BUILD_TYPE}")
ENDIF()
STRING(TOLOWER ${PROJECT_NAME} LIBRARY_NAME)
ADD_SUBDIRECTORY(${LIBRARY_NAME})
IF( BUILD_EXAMPLES )
ADD_SUBDIRECTORY(tracker)
# ADD_SUBDIRECTORY(mirror)
# ADD_SUBDIRECTORY(calibration)
ENDIF()