-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
51 lines (37 loc) · 1.92 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
44
45
46
47
48
49
50
cmake_minimum_required(VERSION 3.0.2)
project(raisim_ros)
set(ENV_VAR $ENV{WORKSPACE}) # WORKSPACE shell variables is set by the Raisim Tutorial (/home/<usrname>)
list(APPEND CMAKE_PREFIX_PATH ${ENV_VAR}/raisim) # Change raisim to the name of the folder where raisim is built
## Compile as C++11, supported in ROS Kinetic and newer
add_compile_options(-std=c++11)
find_package(Boost REQUIRED COMPONENTS system)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
sensor_msgs
nav_msgs
geometry_msgs
)
find_package(raisim CONFIG REQUIRED)
find_package(Eigen3 REQUIRED HINTS ${Eigen3_HINT})
catkin_package(
INCLUDE_DIRS include
LIBRARIES raisim_ros
CATKIN_DEPENDS std_msgs roscpp rospy sensor_msgs nav_msgs geometry_msgs
DEPENDS EIGEN3
)
include_directories (include ${EIGEN3_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS} ${LOCAL_INSTALL})
add_executable(nao_ros src/nao_ros.cpp )
target_link_libraries(nao_ros PUBLIC raisim::raisim pthread ${EIGEN3_LIBRARIES} ${catkin_LIBRARIES} ${EIGEN3_LIBRARIES} ${Boost_LIBRARIES})
add_executable(atlas_ros src/atlas_ros.cpp )
target_link_libraries(atlas_ros PUBLIC raisim::raisim pthread ${EIGEN3_LIBRARIES} ${catkin_LIBRARIES} ${EIGEN3_LIBRARIES} ${Boost_LIBRARIES})
add_executable(talos_ros src/talos_ros.cpp )
target_link_libraries(talos_ros PUBLIC raisim::raisim pthread ${EIGEN3_LIBRARIES} ${catkin_LIBRARIES} ${EIGEN3_LIBRARIES} ${Boost_LIBRARIES})
add_executable(morphLynX_ros src/morphLynX_ros.cpp )
target_link_libraries(morphLynX_ros PUBLIC raisim::raisim pthread ${EIGEN3_LIBRARIES} ${catkin_LIBRARIES} ${EIGEN3_LIBRARIES} ${Boost_LIBRARIES})
add_executable(digit_ros src/digit_ros.cpp )
target_link_libraries(digit_ros PUBLIC raisim::raisim pthread ${EIGEN3_LIBRARIES} ${catkin_LIBRARIES} ${EIGEN3_LIBRARIES} ${Boost_LIBRARIES})