forked from ARC-OPT/wbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
37 lines (33 loc) · 1.21 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
cmake_minimum_required (VERSION 2.8.11)
project(wbc)
include(FindPkgConfig)
add_compile_options(-std=c++11)
set(PROJECT_VERSION 0.2)
set(API_VERSION ${PROJECT_VERSION})
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
if(USE_HYRODYN AND USE_RBDL AND USE_PINOCCHIO AND USE_EIQUADPROG AND USE_QPSWIFT)
message("Detected Full install, adding benchmark folder")
add_subdirectory(benchmarks)
endif()
add_subdirectory(src)
add_subdirectory(test)
add_subdirectory(tutorials)
add_subdirectory(bin)
if(USE_PYTHON)
message("USING PYTHON.")
add_subdirectory(bindings/python)
endif()
find_package(Doxygen)
if(DOXYGEN_FOUND)
set(doxyfile_in ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile)
set(doxyfile ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
configure_file(${doxyfile_in} ${doxyfile} @ONLY)
message("Doxygen build started.")
add_custom_target(doc
COMMAND ${DOXYGEN_EXECUTABLE} ${doxyfile_in}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "Generating API documentation with Doxygen"
VERBATIM)
else (DOXYGEN_FOUND)
message("Doxygen need to be installed to generate the doxygen documentation")
endif (DOXYGEN_FOUND)