-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
executable file
·118 lines (80 loc) · 4.04 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
cmake_minimum_required(VERSION 2.6)
# ADD_DEFINITIONS( -ggdb -Wall -O3 -fno-stack-protector )
ADD_DEFINITIONS( -ggdb -Wall )
INCLUDE_DIRECTORIES(
${CMAKE_HOME_DIRECTORY}/cmt
${CMAKE_HOME_DIRECTORY}/eposlib
${CMAKE_HOME_DIRECTORY}/include
/usr/local/include
)
LINK_DIRECTORIES(
${CMAKE_HOME_DIRECTORY}/lib ${CMAKE_HOME_DIRECTORY}/cmt /usr/local/lib
)
SUBDIRS(eposlib cmt)
ADD_EXECUTABLE(windsensor windsensor.cpp)
TARGET_LINK_LIBRARIES(windsensor ddxx ddx rtx pthread rt )
ADD_EXECUTABLE(keepalive keepalive.cpp)
TARGET_LINK_LIBRARIES(keepalive rtx pthread rt )
ADD_EXECUTABLE(gps gps.cpp)
TARGET_LINK_LIBRARIES(gps ddxx ddx rtx pthread rt )
ADD_EXECUTABLE(system-state system-state.cpp)
TARGET_LINK_LIBRARIES(system-state ddxx ddx rtx pthread rt )
ADD_EXECUTABLE(remotecontrol remotecontrol.cpp)
TARGET_LINK_LIBRARIES(remotecontrol ddxx ddx rtx pthread rt )
ADD_EXECUTABLE(ruddermain ruddermain.cpp RudderMotor.cpp)
TARGET_LINK_LIBRARIES(ruddermain ddxx ddx rtx epos can pthread rt )
ADD_EXECUTABLE(porttracker porttracker.cpp RudderMotor.cpp)
TARGET_LINK_LIBRARIES(porttracker ddxx ddx rtx epos can pthread rt )
ADD_EXECUTABLE(eposdebug eposdebug.cpp RudderMotor.cpp SailMotor.cpp)
TARGET_LINK_LIBRARIES(eposdebug ddxx ddx rtx epos can pthread rt )
# ADD_EXECUTABLE(ais ais.cpp)
# TARGET_LINK_LIBRARIES(ais ddxx ddx rtx can epos pthread rt )
ADD_EXECUTABLE(aisEval aisEval.cpp)
TARGET_LINK_LIBRARIES(aisEval ddxx ddx rtx epos can pthread rt )
ADD_EXECUTABLE(sailor_transitions sailor_transitions.cpp Ship.cpp)
TARGET_LINK_LIBRARIES(sailor_transitions ddxx ddx rtx pthread rt )
# ADD_EXECUTABLE(sailor_statemachine sailor_statemachine.cpp Ship.cpp sailor_main_iter_fn.cpp sailor_rudder_iter_fn.cpp)
# TARGET_LINK_LIBRARIES(sailor_statemachine gsl gslcblas ddxx ddx rtx pthread rt )
ADD_EXECUTABLE(sailor_statemachine sailor_statemachine.cpp Ship.cpp sailor_inverted_linear_model.cpp)
TARGET_LINK_LIBRARIES(sailor_statemachine ddxx ddx rtx pthread rt)
#ADD_EXECUTABLE(sailor_statemachine_testGB sailor_statemachine_testGB.cpp Ship.cpp)
#TARGET_LINK_LIBRARIES(sailor_statemachine_testGB ddxx ddx rtx pthread rt )
ADD_EXECUTABLE(sailmain sailmain.cpp SailMotor.cpp)
TARGET_LINK_LIBRARIES(sailmain ddxx ddx rtx epos can-serial pthread rt )
# Commented out while I don't have cmt
ADD_EXECUTABLE(imu imu.cpp)
TARGET_LINK_LIBRARIES(imu ddxx ddx rtx pthread rt cmt -fno-stack-protector)
ADD_EXECUTABLE(windcleaner windcleaner.cpp)
TARGET_LINK_LIBRARIES(windcleaner ddxx ddx rtx pthread rt )
ADD_EXECUTABLE(imucleaner imucleaner.cpp)
TARGET_LINK_LIBRARIES(imucleaner ddxx ddx rtx pthread rt )
ADD_EXECUTABLE(flag-checker flag-checker.cpp)
TARGET_LINK_LIBRARIES(flag-checker ddxx ddx rtx pthread rt )
# ADD_EXECUTABLE(failure failure.cpp)
# TARGET_LINK_LIBRARIES(failure ddxx ddx rtx pthread rt )
# ADD_EXECUTABLE(skippertest skippertest.cpp)
# TARGET_LINK_LIBRARIES(skippertest ddxx ddx rtx pthread rt )
ADD_EXECUTABLE(skipper skipper.cpp)
TARGET_LINK_LIBRARIES(skipper ddxx ddx rtx pthread rt )
ADD_EXECUTABLE(global_skipper global_skipper.cpp)
TARGET_LINK_LIBRARIES(global_skipper ddxx ddx rtx pthread rt)
#TARGET_LINK_LIBRARIES(global_skipper ddxx ddx rtx pthread rt efence )
## new files with Dijkstra:
ADD_EXECUTABLE(navigator navigator.cpp)
TARGET_LINK_LIBRARIES(navigator ddxx ddx rtx pthread rt )
ADD_EXECUTABLE(wind_faker wind_faker.cpp)
TARGET_LINK_LIBRARIES(wind_faker ddxx ddx rtx pthread rt )
#ADD_EXECUTABLE(obstacle_converter obstacle_converter.cpp)
#TARGET_LINK_LIBRARIES(obstacle_converter)
ADD_EXECUTABLE(destination_converter destination_converter.cpp)
TARGET_LINK_LIBRARIES(destination_converter ddxx ddx rtx pthread rt)
#ADD_EXECUTABLE(dtom dtom.cpp)
#TARGET_LINK_LIBRARIES(dtom)
#ADD_EXECUTABLE(mtod mtod.cpp)
#TARGET_LINK_LIBRARIES(mtod)
#ADD_EXECUTABLE(rootsolver_test rootsolver_test.cpp sailor_main_iter_fn.cpp sailor_rudder_iter_fn.cpp)
#TARGET_LINK_LIBRARIES(rootsolver_test gsl gslcblas rtx)
ADD_EXECUTABLE(poti poti.cpp)
TARGET_LINK_LIBRARIES(poti ddxx ddx rtx epos can-serial pthread rt )
# ADD_EXECUTABLE(poti poti.cpp)
# TARGET_LINK_LIBRARIES(poti can-serial epos)