Statistics
| Branch: | Revision:

root / scout / scoutsim / CMakeLists.txt @ 1057a46d

History | View | Annotate | Download (1.16 KB)

1 266ae7f2 Alex Zirbel
if(ROSBUILD)
2
  include(rosbuild.cmake)
3
  return()
4
endif()
5
cmake_minimum_required(VERSION 2.4.6)
6
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
7
8
# Set the build type.  Options are:
9
#  Coverage       : w/ debug symbols, w/o optimization, w/ code-coverage
10
#  Debug          : w/ debug symbols, w/o optimization
11
#  Release        : w/o debug symbols, w/ optimization
12
#  RelWithDebInfo : w/ debug symbols, w/ optimization
13
#  MinSizeRel     : w/o debug symbols, w/ optimization, stripped binaries
14
#set(ROS_BUILD_TYPE RelWithDebInfo)
15
16
rosbuild_init()
17
18
#set the default path for built executables to the "bin" directory
19
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
20
#set the default path for built libraries to the "lib" directory
21
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
22
23
rosbuild_genmsg()
24
rosbuild_gensrv()
25
26
find_package(wxWidgets REQUIRED)
27
include(${wxWidgets_USE_FILE})
28
include_directories( ${wxWidgets_INCLUDE_DIRS} )
29
30
rosbuild_add_boost_directories()
31 0e0ef125 Priya
rosbuild_add_executable(scoutsim_node src/scoutsim.cpp src/scout.cpp src/ghost_scout.cpp src/sim_frame.cpp)
32 266ae7f2 Alex Zirbel
rosbuild_link_boost(scoutsim_node thread)
33
target_link_libraries(scoutsim_node ${wxWidgets_LIBRARIES})