forked from patrykcieslak/stonefish_ros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
84 lines (74 loc) · 1.75 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
cmake_minimum_required(VERSION 3.10)
project(stonefish_ros)
find_package(catkin REQUIRED COMPONENTS
message_generation
geometry_msgs
nav_msgs
sensor_msgs
cola2_msgs
std_msgs
std_srvs
roscpp
roslib
tf
tf_conversions
pcl_ros
pcl_conversions
image_transport
controller_manager
)
find_package(Stonefish REQUIRED 1.3.0)
add_message_files(
FILES
DVLBeam.msg
NEDPose.msg
DVL.msg
INS.msg
Int32Stamped.msg
ThrusterState.msg
BeaconInfo.msg
)
add_service_files(
FILES
SonarSettings.srv
SonarSettings2.srv
)
generate_messages(
DEPENDENCIES
std_msgs
geometry_msgs
)
set(CMAKE_CXX_STANDARD 17)
catkin_package(
INCLUDE_DIRS include
LIBRARIES stonefish_ros
CATKIN_DEPENDS geometry_msgs
nav_msgs
sensor_msgs
std_msgs
std_srvs
roscpp
roslib
tf
tf_conversions
message_runtime
pcl_conversions
pcl_ros
image_transport
controller_manager
)
#Library
add_library(stonefish_ros SHARED
src/ROSInterface.cpp
src/ROSSimulationManager.cpp
src/ROSScenarioParser.cpp
src/ROSControlInterface.cpp
)
target_link_libraries(stonefish_ros PUBLIC ${catkin_LIBRARIES} Stonefish::Stonefish)
target_include_directories(stonefish_ros PUBLIC include ${catkin_INCLUDE_DIRS})
add_dependencies(stonefish_ros ${${PROJECT_NAME}_EXPORTED_TARGETS})
#Universal simulators with XML parser
add_executable(parsed_simulator src/parsed_simulator.cpp)
target_link_libraries(parsed_simulator PRIVATE stonefish_ros)
add_executable(parsed_simulator_nogpu src/parsed_simulator_nogpu.cpp)
target_link_libraries(parsed_simulator_nogpu PRIVATE stonefish_ros)