-
Notifications
You must be signed in to change notification settings - Fork 23
/
CMakeLists.txt
24 lines (18 loc) · 926 Bytes
/
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
cmake_minimum_required(VERSION 3.10)
project(gzmaze)
set(CMAKE_CXX_STANDARD 11)
find_package(Qt5 COMPONENTS Widgets REQUIRED)
find_package(gazebo REQUIRED)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
add_library(regenerate_widget SHARED gui_plugin/regenerate_widget.h gui_plugin/regenerate_widget.cc)
target_include_directories(regenerate_widget PUBLIC ${GAZEBO_INCLUDE_DIRS})
target_link_libraries(regenerate_widget Qt5::Widgets Qt5::Core ${GAZEBO_LIBRARIES})
add_library(maze_plugin SHARED maze_plugin/maze_plugin.cc)
target_include_directories(maze_plugin PUBLIC ${GAZEBO_INCLUDE_DIRS})
target_link_libraries(maze_plugin ${GAZEBO_LIBRARIES})
target_link_directories(maze_plugin PUBLIC ${GAZEBO_LIBRARY_DIRS})
add_library(MousePlugin SHARED mouse_plugin/mouse_plugin.cc)
target_include_directories(MousePlugin PUBLIC ${GAZEBO_INCLUDE_DIRS})
target_link_libraries(MousePlugin ${GAZEBO_LIBRARIES})