Statistics
| Branch: | Revision:

scoutos / scout / scoutsim / CMakeLists.txt @ a2e6bd4c

History | View | Annotate | Download (1.57 KB)

1
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
rosbuild_add_executable(scoutsim_node src/scoutsim.cpp src/scout.cpp src/sim_frame.cpp)
32
rosbuild_link_boost(scoutsim_node thread)
33
target_link_libraries(scoutsim_node ${wxWidgets_LIBRARIES})
34

    
35
# @TODO are these useful or necessary? Determine; add as needed
36
#rosbuild_add_executable(turtle_teleop_key tutorials/teleop_turtle_key.cpp)
37
#rosbuild_add_executable(draw_square tutorials/draw_square.cpp)
38
#rosbuild_add_executable(mimic tutorials/mimic.cpp)
39
rosbuild_add_executable(sonar_viz src/sonar_viz.cpp)
40
rosbuild_add_executable(scout_teleop src/scout_teleop.cpp)
41
rosbuild_add_executable(scout_teleop_userinput src/scout_teleop_userinput.cpp)