Last change
on this file was
49,
checked in by wcaarls, 11 years ago
|
Reinstated rosbuild shared_serial (catkin version is now on github)
|
File size:
1.2 KB
|
Line | |
---|
1 | cmake_minimum_required(VERSION 2.4.6) |
---|
2 | include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake) |
---|
3 | |
---|
4 | # Set the build type. Options are: |
---|
5 | # Coverage : w/ debug symbols, w/o optimization, w/ code-coverage |
---|
6 | # Debug : w/ debug symbols, w/o optimization |
---|
7 | # Release : w/o debug symbols, w/ optimization |
---|
8 | # RelWithDebInfo : w/ debug symbols, w/ optimization |
---|
9 | # MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries |
---|
10 | #set(ROS_BUILD_TYPE RelWithDebInfo) |
---|
11 | |
---|
12 | rosbuild_init() |
---|
13 | |
---|
14 | #set the default path for built executables to the "bin" directory |
---|
15 | set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin) |
---|
16 | #set the default path for built libraries to the "lib" directory |
---|
17 | set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib) |
---|
18 | |
---|
19 | rosbuild_genmsg() |
---|
20 | rosbuild_gensrv() |
---|
21 | |
---|
22 | #common commands for building c++ executables and libraries |
---|
23 | rosbuild_add_library(${PROJECT_NAME} src/client.cpp) |
---|
24 | #target_link_libraries(${PROJECT_NAME} another_library) |
---|
25 | #rosbuild_add_boost_directories() |
---|
26 | #rosbuild_link_boost(${PROJECT_NAME} thread) |
---|
27 | rosbuild_add_executable(server |
---|
28 | src/server.cpp |
---|
29 | src/watchdog.cpp |
---|
30 | src/LxSerial.cpp) |
---|
31 | #target_link_libraries(example ${PROJECT_NAME}) |
---|
32 | |
---|
33 | rosbuild_make_distribution(0.1.0) |
---|
Note: See
TracBrowser
for help on using the repository browser.