-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
48 lines (37 loc) · 1.44 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
cmake_minimum_required(VERSION 2.8.3)
project(tue_ethercat_drivers)
add_compile_options(-Wall -Werror=all)
add_compile_options(-Wextra -Werror=extra)
find_package(catkin REQUIRED
soem_master
roscpp
soem_beckhoff_drivers
)
find_package(OROCOS-RTT REQUIRED ${RTT_HINTS} )
include(${OROCOS-RTT_USE_FILE_PATH}/UseOROCOS-RTT.cmake)
find_package(soem REQUIRED)
orocos_use_package(soem_master)
orocos_use_package(soem_beckhoff_drivers)
include_directories(
SYSTEM
${catkin_INCLUDE_DIRS}
${soem_INCLUDE_DIRS}
${USE_OROCOS_INCLUDE_DIRS}
)
file(GLOB_RECURSE HEADER_FILES include/*.hpp)
# TUe EtherCAT print drivers
orocos_plugin(TUeES020 src/soem_beckhoff_drivers.cpp src/TUeES020.cpp ${HEADER_FILES})
target_link_libraries(TUeES020 ${soem_LIBRARIES})
orocos_plugin(TUeES030 src/soem_beckhoff_drivers.cpp src/TUeES030.cpp ${HEADER_FILES})
target_link_libraries(TUeES030 ${soem_LIBRARIES})
# Dummy Drivers
orocos_plugin(TUeEC010 src/soem_beckhoff_drivers.cpp src/TUeEC010_dummy.cpp ${HEADER_FILES})
target_link_libraries(TUeEC010 ${soem_LIBRARIES})
orocos_plugin(EK1100 src/soem_beckhoff_drivers.cpp src/EK1100_dummy.cpp ${HEADER_FILES})
target_link_libraries(EK1100 ${soem_LIBRARIES})
# Wait for message generation
add_dependencies(TUeES020 ${catkin_EXPORTED_TARGETS})
add_dependencies(TUeES030 ${catkin_EXPORTED_TARGETS})
add_dependencies(TUeEC010 ${catkin_EXPORTED_TARGETS})
add_dependencies(EK1100 ${catkin_EXPORTED_TARGETS})
orocos_generate_package()