forked from RobotLocomotion/director
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
43 lines (33 loc) · 1.49 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
cmake_minimum_required(VERSION 2.8.7)
# Drake Designer
project(DD)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
# set project variables
set(DD_INSTALL_BIN_DIR bin)
set(DD_INSTALL_LIB_DIR lib)
set(DD_INSTALL_INCLUDE_DIR include/ddapp)
set(DD_INSTALL_PYTHON_DIR ${DD_INSTALL_LIB_DIR}/python2.7/dist-packages)
set(EXECUTABLE_OUTPUT_PATH "${CMAKE_BINARY_DIR}/${DD_INSTALL_BIN_DIR}")
set(LIBRARY_OUTPUT_PATH "${CMAKE_BINARY_DIR}/${DD_INSTALL_LIB_DIR}")
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
set(CMAKE_INSTALL_NAME_DIR ${CMAKE_INSTALL_RPATH})
# declare options
option(BUILD_SHARED_LIBS "Build drake-designer with shared libraries." ON)
option(BUILD_TESTING "Build drake-designer with tests enabled." ON)
# include cmake scripts
include(cmake/dd-macros.cmake)
include(cmake/dd-testing.cmake)
include(cmake/dd-version.cmake)
# dependency options
option(USE_PORTMIDI "Build drake-designer with portmidi dependency." OFF)
option(USE_LCM "Build drake-designer with lcm dependency." OFF)
option(USE_LCMGL "Build drake-designer with lcmgl dependency." OFF)
option(USE_LIBBOT "Build drake-designer with libbot dependency." OFF)
option(USE_DRAKE "Build drake-designer with drake dependency." OFF)
option(USE_DRC "Build drake-designer with drc dependency." OFF)
option(USE_DRC_MAPS "Build drake-designer with drc maps dependency." OFF)
option(USE_DRC_PLANE_SEG "Build drake-designer with drc plane segmentation." OFF)
# build project
add_subdirectory(src)
# documentation
add_subdirectory(docs)