-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCMakeLists.txt
59 lines (47 loc) · 1.26 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
51
52
53
54
55
56
57
58
59
cmake_minimum_required(VERSION 2.8.3)
project(force_torque_sensor)
if (CMAKE_VERSION VERSION_LESS "3.1")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
else()
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
endif()
find_package(cmake_modules REQUIRED)
find_package(LibXml2 REQUIRED)
find_package(Eigen REQUIRED)
find_package(catkin REQUIRED COMPONENTS
roscpp
message_generation
std_msgs
geometry_msgs
hardware_interface
force_torque_sensor_controller
cmake_modules
)
catkin_package()
include_directories(include
${LIBXML2_INCLUDE_DIR}
${catkin_INCLUDE_DIRS}
${EIGEN_INCLUDE_DIR}
ATI_FTSensors/include
)
add_library(FTSensor
src/FTSensor.cpp
)
add_executable(ft_sensor_hw
src/ft_sensor_hw.cpp
)
add_dependencies(ft_sensor_hw
FTSensor
)
target_link_libraries(ft_sensor_hw
FTSensor
${LIBXML2_LIBRARIES}
${catkin_LIBRARIES}
${EIGEN_LIBRARIES}
)
add_subdirectory(ATI_FTSensors)
add_executable(ati_sensor_node src/ati_sensor_node.cpp src/ati_ft_sensor_hw.cpp)
add_dependencies(ati_sensor_node FTSensors)
target_link_libraries(ati_sensor_node FTSensors ${catkin_LIBRARIES} ${EIGEN_LIBRARIES})
# target_link_libraries(ati_sensor_node /home/manuelb/manuelb_ws/devel/lib/libFTSensors.so ${catkin_LIBRARIES})