forked from jcook3701/teknic_motor_controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
120 lines (97 loc) · 3.35 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
cmake_minimum_required(VERSION 2.8.3)
project(teknic_motor_controller)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
# find_package(CMAKE_DL_LIBS REQUIRED)
# add_compile_options(-pthread)
find_package(catkin REQUIRED
COMPONENTS
roscpp
std_msgs
# message_generation
# sensor_msgs
)
include_directories(
include
include/inc
include/inc/inc-private
include/inc/inc-private/linux
include/inc/inc-private/sFound
include/inc/inc-pub
include/LibINI/inc
include/LibLinuxOS/inc
include/LibXML/inc
${catkin_INCLUDE_DIRS}
${Threads_INCLUDE_DIRS}
)
catkin_package(
# INCLUDE_DIRS include include/inc include/inc/inc-private include/inc/inc-private/linux include/inc/inc-private/sFound include/inc/inc-pub include/LibINI/inc include/LibLinuxOS/inc include/LibXML/inc
CATKIN_DEPENDS roscpp std_msgs # message_runtime std_msgs # sensor_msgs
)
add_executable(one_motor_move_to
src/one_motor_move_to/one_motor_move_to.cpp
)
add_executable(trash_bot_motor_controller
src/trash_bot_motor_controller/trash_bot_motor_controller.cpp
)
add_executable(Example-GPIO
src/SDK_Examples/Example-GPIO/Example-GPIO.cpp
)
add_executable(Example-Homing
src/SDK_Examples/Example-Homing/Example-Homing.cpp
)
add_executable(Example-Motion
src/SDK_Examples/Example-Motion/Example-Motion.cpp
)
add_executable(Example-MultiThreaded
src/SDK_Examples/Example-MultiThreaded/Example-MultiThreaded.cpp
src/SDK_Examples/Example-MultiThreaded/Axis.cpp
src/SDK_Examples/Example-MultiThreaded/Supervisor.cpp
)
add_executable(Example-SingleThreaded
src/SDK_Examples/Example-SingleThreaded/Example-SingleThreaded.cpp
src/SDK_Examples/Example-SingleThreaded/Axis.cpp
)
add_executable(Example-StatusAlerts
src/SDK_Examples/Example-StatusAlerts/Example-StatusAlerts.cpp
)
add_executable(HelloWorld
src/SDK_Examples/HelloWorld/HelloWorld.cpp
)
add_library(LibINI
src/LibINI/src/dictionary.cpp
src/LibINI/src/iniparser.cpp
)
add_library(LibLinuxOS
src/LibLinuxOS/src/tekEventsLinux.cpp
src/LibLinuxOS/src/tekThreadsLinux.cpp
src/LibLinuxOS/src/version.cpp
)
add_library(LibXML
src/LibXML/src/ErrCodeStr.cpp
src/LibXML/src/pugixml.cpp
)
add_library(sFoundation
src/sFoundation/src/converterLib.cpp
src/sFoundation/src/cpmAPI.cpp
src/sFoundation/src/cpmClassImpl.cpp
src/sFoundation/src/iscAPI.cpp
src/sFoundation/src/lnkAccessCommon.cpp
src/sFoundation/src/meridianNet.cpp
src/sFoundation/src/netCmdAPI.cpp
src/sFoundation/src/netCoreFmt.cpp
src/sFoundation/src/SerialEx.cpp
src/sFoundation/src/sysClassImpl.cpp
src/sFoundation/src-linux/lnkAccessLinux.cpp
src/sFoundation/src-linux/SerialLinux.cpp
)
target_link_libraries(sFoundation LibINI LibLinuxOS LibXML ${CMAKE_DL_LIBS})
target_link_libraries(one_motor_move_to sFoundation ${catkin_LIBRARIES})
target_link_libraries(trash_bot_motor_controller sFoundation ${catkin_LIBRARIES})
target_link_libraries(Example-GPIO sFoundation ${catkin_LIBRARIES})
target_link_libraries(Example-Homing sFoundation ${catkin_LIBRARIES})
target_link_libraries(Example-Motion sFoundation ${catkin_LIBRARIES})
target_link_libraries(Example-MultiThreaded sFoundation ${catkin_LIBRARIES})
target_link_libraries(Example-SingleThreaded sFoundation ${catkin_LIBRARIES})
target_link_libraries(Example-StatusAlerts sFoundation ${catkin_LIBRARIES})
target_link_libraries(HelloWorld sFoundation ${catkin_LIBRARIES})