-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·73 lines (59 loc) · 1.98 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
60
61
62
63
64
65
66
67
68
69
70
71
add_compile_options(-std=c++11)
cmake_minimum_required(VERSION 2.8.3)
project(ndr_downscale)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
message_generation
geometry_msgs
)
add_message_files(FILES one.msg two.msg three.msg seven.msg six.msg twentyone.msg trans.msg buttons.msg)
generate_messages(DEPENDENCIES std_msgs geometry_msgs)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS roscpp std_msgs
LIBRARIES ndr_downscale
DEPENDS system_lib
)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
include
${catkin_INCLUDE_DIRS}
/usr/xenomai/include
/opt/etherlab/include
)
link_directories(
/usr/xenomai/lib
/opt/etherlab/lib
)
link_libraries(
native
xenomai
rtdm
pthread
pthread_rt
ethercat
ethercat_rtdm
# -static
)
## Declare a C++ library
# add_library(${PROJECT_NAME}
# src/${PROJECT_NAME}/aidinvi.cpp
# )
## Add cmake target dependencies of the library
## as an example, code may need to be generated before libraries
## either from message generation or dynamic reconfigure
# add_dependencies(${PROJECT_NAME} ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
## sub
add_executable(sub_downscale_POSITION_mode subsrc/sub_downscale_POSITION_mode.cpp)
add_dependencies(sub_downscale_POSITION_mode ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(sub_downscale_POSITION_mode ${catkin_LIBRARIES} )
add_dependencies(sub_downscale_POSITION_mode ndr_downscale_generate_messages_cpp)
add_executable(sub_downscale_POSITION_mode_backup subsrc/sub_downscale_POSITION_mode_backup.cpp)
add_dependencies(sub_downscale_POSITION_mode_backup ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(sub_downscale_POSITION_mode_backup ${catkin_LIBRARIES} )
add_dependencies(sub_downscale_POSITION_mode_backup ndr_downscale_generate_messages_cpp)