This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
CMakeLists.txt
141 lines (117 loc) · 4.6 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
#==========================================================
#
# Project: sick_scan_base
#
#==========================================================
cmake_minimum_required(VERSION 2.8.3)
project(sick_scan_base)
set(CMAKE_BUILD_TYPE Debug)
macro(dump_all)
get_cmake_property(_variableNames VARIABLES)
list (SORT _variableNames)
foreach (_variableName ${_variableNames})
message(STATUS "${_variableName}=${${_variableName}}")
endforeach()
endmacro()
if(WIN32)
FIND_PACKAGE (Boost REQUIRED)
# FIND_PACKAGE (pthread REQUIRED) # pthread is found via boost
# dump_all()
endif()
find_package(Boost COMPONENTS system filesystem thread REQUIRED)
include_directories (${Boost_INCLUDE_DIR})
add_definitions(-DROSSIMU)
# add_definitions(-DHAVE_STRUCT_TIMESPEC -DROSSIMU)
if(WIN32)
# include_directories(roswrap/pthread_win/pthreads-w32-2-9-1-release/pthreads.2 roswrap/helper_win ./include ./include/tinyxml ./include/sick_scan ${Boost_INCLUDE_DIRS} roswrap/src/include roswrap/src/rossimu/kinetic/include roswrap/src/cfgsimu roswrap/src/toojpeg )
include_directories(roswrap/helper_win ./include ./include/tinyxml ./include/sick_scan ${Boost_INCLUDE_DIRS} roswrap/src/include roswrap/src/rossimu/kinetic/include roswrap/src/cfgsimu roswrap/src/toojpeg )
else()
include_directories(./include/sick_scan ./include ./include/tinyxml ../include/sick_scan ${Boost_INCLUDE_DIRS} roswrap/src/include roswrap/src/rossimu/kinetic/include roswrap/src/cfgsimu roswrap/src/toojpeg)
endif()
LINK_DIRECTORIES(${Boost_LIBRARY_DIRS} )
if(WIN32)
file(GLOB SRC_WIN_FILES roswrap/helper_win/usleep/usleep.c)
else()
file(GLOB SRC_WIN_FILES )
endif()
add_executable(sick_generic_caller
roswrap/src/cfgsimu/sick_scan/time_modi.cpp
roswrap/src/rossimu/kinetic/src/rossimu.cpp
roswrap/src/rossimu/kinetic/src/duration.cpp
roswrap/src/rossimu/kinetic/src/rate.cpp
roswrap/src/getopt/getopt.c
roswrap/src/toojpeg/toojpeg.cpp
driver/src/sick_generic_parser.cpp
driver/src/sick_generic_laser.cpp
driver/src/sick_generic_caller.cpp
driver/src/sick_scan_common.cpp
driver/src/sick_scan_common_nw.cpp
driver/src/sick_scan_common_tcp.cpp
driver/src/sick_generic_parser.cpp
driver/src/binScanf.cpp
driver/src/dataDumper.cpp
driver/src/tinyxml/tinystr.cpp
driver/src/tinyxml/tinyxml.cpp
driver/src/tinyxml/tinyxmlerror.cpp
driver/src/tinyxml/tinyxmlparser.cpp
driver/src/tcp/colaa.cpp
driver/src/tcp/colab.cpp
driver/src/tcp/errorhandler.cpp
driver/src/tcp/Mutex.cpp
driver/src/tcp/SickThread.cpp
# driver/src/sick_generic_radar.cpp
driver/src/softwarePLL.cpp
driver/src/sick_generic_imu.cpp
driver/src/tcp/tcp.cpp
driver/src/tcp/toolbox.cpp
driver/src/softwarePLL.cpp
driver/src/helper/angle_compensator.cpp
roswrap/src/launchparser/launchparser.cpp roswrap/src/include/launchparser/launchparser.h
${SRC_WIN_FILES}
)
add_library(sick_scan_generic SHARED
roswrap/src/cfgsimu/sick_scan/time_modi.cpp
roswrap/src/rossimu/kinetic/src/rossimu.cpp
roswrap/src/rossimu/kinetic/src/duration.cpp
roswrap/src/rossimu/kinetic/src/rate.cpp
roswrap/src/getopt/getopt.c
roswrap/src/toojpeg/toojpeg.cpp
driver/src/sick_generic_parser.cpp
driver/src/sick_generic_laser.cpp
driver/src/sick_generic_caller.cpp
driver/src/sick_scan_common.cpp
driver/src/sick_scan_common_nw.cpp
driver/src/sick_scan_common_tcp.cpp
driver/src/sick_generic_parser.cpp
driver/src/binScanf.cpp
driver/src/dataDumper.cpp
driver/src/tinyxml/tinystr.cpp
driver/src/tinyxml/tinyxml.cpp
driver/src/tinyxml/tinyxmlerror.cpp
driver/src/tinyxml/tinyxmlparser.cpp
driver/src/tcp/colaa.cpp
driver/src/tcp/colab.cpp
driver/src/tcp/errorhandler.cpp
driver/src/tcp/Mutex.cpp
driver/src/tcp/SickThread.cpp
# driver/src/sick_generic_radar.cpp
driver/src/softwarePLL.cpp
driver/src/sick_generic_imu.cpp
driver/src/tcp/tcp.cpp
driver/src/tcp/toolbox.cpp
driver/src/softwarePLL.cpp
driver/src/helper/angle_compensator.cpp
roswrap/src/launchparser/launchparser.cpp roswrap/src/include/launchparser/launchparser.h
${SRC_WIN_FILES}
)
if(WIN32)
message("### Compiled for Windows")
message(STATUS "PTHREAD: " ${PThreads_windows_LIBRARY})
target_link_libraries(sick_generic_caller ${Boost_LIBRARIES} ${PThreads_windows_LIBRARY})
else()
target_link_libraries(sick_generic_caller ${Boost_LIBRARIES} pthread)
target_link_libraries(sick_scan_generic ${Boost_LIBRARIES} pthread)
endif()
add_custom_target(python_test_server
SOURCES test/emulator/test_server.py
)