forked from laas/jrl_dynamics_urdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
29 lines (20 loc) · 892 Bytes
/
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
cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
INCLUDE(cmake/base.cmake)
#set(ROS_BUILD_TYPE RelWithDebInfo)
set(ROS_BUILD_TYPE Debug)
rosbuild_init()
#set the default path for built executables to the "bin" directory
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#set the default path for built libraries to the "lib" directory
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
# Search for dependencies.
ADD_REQUIRED_DEPENDENCY("jrl-dynamics")
rosbuild_add_boost_directories()
#rosbuild_link_boost(${PROJECT_NAME} thread)
rosbuild_add_library(${PROJECT_NAME} src/parser.cc)
#target_link_libraries(${PROJECT_NAME} another_library)
PKG_CONFIG_USE_DEPENDENCY(${PROJECT_NAME} jrl-dynamics)
rosbuild_add_executable(display-robot examples/display-robot.cc)
target_link_libraries(display-robot ${PROJECT_NAME})
add_subdirectory(tests)