-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
49 lines (40 loc) · 1.37 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
# ----------------------------------------------------------------------------
# Basic Configuration
# ----------------------------------------------------------------------------
cmake_minimum_required(VERSION 3.0)
project(aruco VERSION "3.0.9" LANGUAGES CXX)
set(PROJECT_SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_STANDARD 11) # C++11...
set(CMAKE_CXX_STANDARD_REQUIRED ON) #...is required...
set(CMAKE_CXX_EXTENSIONS ON) #...with compiler extensions like gnu++11
include(cmake/options.cmake)
include(cmake/findDependencies.cmake)
include(cmake/compilerOptions.cmake)
# catkin support
find_package(catkin REQUIRED)
catkin_package(
INCLUDE_DIRS src
LIBRARIES aruco
# CATKIN_DEPENDS other_catkin_pkg
# DEPENDS system_lib
)
include_directories(src)
OPTION(BUILD_UTILS "Set to OFF to not compile utils " OFF)
OPTION(BUILD_TESTS "Set to OFF to not compile tests " OFF)
add_definitions(-DUSE_SVM_LABELER)
add_subdirectory(src)
if(GL_FOUND AND BUILD_GLSAMPLES)
add_subdirectory(utils_gl)
endif()
if(BUILD_TESTS)
add_subdirectory(tests)
endif()
if(BUILD_UTILS)
add_subdirectory(utils)
add_subdirectory(utils_markermap)
add_subdirectory(utils_calibration)
ADD_SUBDIRECTORY(utils_svm)
endif()
include(cmake/printInfo.cmake)
include(cmake/installOptions.cmake)