forked from robotology-playground/WBI-Toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
28 lines (22 loc) · 1.18 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
option(CODYCO_USES_URDFDOM "Compile WBI-Toolbox with URDF support" TRUE)
option(CODYCO_ICUBWBI_USE_EXTERNAL_TORQUE_CONTROL "Compile yarpwholebodyinterface to use JTC external torque control" FALSE)
if(CODYCO_USES_URDFDOM)
add_definitions(-DCODYCO_USES_URDFDOM)
endif()
if (CODYCO_ICUBWBI_USE_EXTERNAL_TORQUE_CONTROL)
add_definitions(-DWBI_ICUB_COMPILE_PARAM_HELP)
endif()
#On new versions of Clang, MATLAB requires C++11.
#I enable it on all Clangs
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
if(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
if (${CMAKE_GENERATOR} MATCHES "Xcode")
#this should set explictly the option in xcode. Unfortunately it does not work.
set(XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "C++11")
endif(${CMAKE_GENERATOR} MATCHES "Xcode")
endif(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
add_subdirectory(libraries)
# The following line is to properly configure the installation script of the toolbox
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/startup_wbitoolbox.m.in ${CMAKE_CURRENT_SOURCE_DIR}/startup_wbitoolbox.m)