-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (21 loc) · 966 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
25
26
27
28
cmake_minimum_required(VERSION 2.4.6)
project(p3dx_apps)
# Set the build type. Options are:
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage
# Debug : w/ debug symbols, w/o optimization
# Release : w/o debug symbols, w/ optimization
# RelWithDebInfo : w/ debug symbols, w/ optimization
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries
set(CMAKE_BUILD_TYPE Debug)
# Find and get all the information about the roscpp package
find_package(catkin REQUIRED COMPONENTS roscpp roslaunch)
# Declare the project as a catkin package
catkin_package()
# Check for possible syntax error in our launch files
roslaunch_add_file_check(launch)
# Add header folders
include_directories(include ${catkin_INCLUDE_DIRS})
# Define an executable target called tp1
add_executable(p3dx_demo src/main.cpp)
# Link the target against the libraries used by roscpp
target_link_libraries(p3dx_demo ${catkin_LIBRARIES})