-
Notifications
You must be signed in to change notification settings - Fork 15
/
CMakeLists.txt
33 lines (27 loc) · 1 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
cmake_minimum_required(VERSION 3.10)
project(camera-localization)
option(WITH_OPENCV "Implementation using OpenCV structures" ON)
option(WITH_VISP "Implementation using OpenCV structures" ON)
#----------------------------------------------------------------------
# Try to find doxygen for documentation generation
# Use "make doc" target to generate the documentation
#----------------------------------------------------------------------
find_package(Doxygen)
if(DOXYGEN_FOUND)
configure_file(doc/Doxyfile.cmake
${PROJECT_BINARY_DIR}/Doxyfile
@ONLY )
configure_file(doc/mainpage.doc.cmake
${PROJECT_BINARY_DIR}/doc/mainpage.doc
@ONLY )
add_custom_target(doc ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Doxyfile)
endif()
#----------------------------------------------------------------------
# Propagate in sub directories
#----------------------------------------------------------------------
if(WITH_VISP)
add_subdirectory(visp)
endif()
if(WITH_OPENCV)
add_subdirectory(opencv)
endif()