CMakeLists.txt 1.86 KB
Newer Older
Sydney Speckle's avatar
Sydney Speckle committed
1 2 3
cmake_minimum_required(VERSION 2.8.3)
project(emros_teleop)

4
## Add support for C++11
Sydney Speckle's avatar
Sydney Speckle committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
add_definitions(-std=c++11)

## Find catkin macros and libraries
find_package(catkin REQUIRED COMPONENTS
  roscpp
#  message_generation
   geometry_msgs
   sensor_msgs
   roslib
)


###################################
## catkin specific configuration ##
###################################
## The catkin_package macro generates cmake config files for your package
## Declare things to be passed to dependent projects
## INCLUDE_DIRS: uncomment this if you package contains header files
## LIBRARIES: libraries you create in this project that dependent projects also need
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
  INCLUDE_DIRS include
#  LIBRARIES teleop
#  CATKIN_DEPENDS roscpp
#  DEPENDS system_lib
31
  CATKIN_DEPENDS message_runtime roscpp 
Sydney Speckle's avatar
Sydney Speckle committed
32 33
)

34

Sydney Speckle's avatar
Sydney Speckle committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
###########
## Build ##
###########

## Specify additional locations of header files
include_directories(
  ${catkin_INCLUDE_DIRS}
)

add_executable(calib_teleop src/calib_teleop.cpp )
add_dependencies(calib_teleop ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(calib_teleop ${catkin_LIBRARIES} )

add_executable(teleop src/teleop.cpp )
add_dependencies(teleop ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
target_link_libraries(teleop ${catkin_LIBRARIES} )


#############
## Install ##
#############

## Mark executables and/or libraries for installation
58 59 60
install(TARGETS calib_teleop teleop
  RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
Sydney Speckle's avatar
Sydney Speckle committed
61 62

## Mark cpp header files for installation
63 64 65
install(DIRECTORY include/
  DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
)
Sydney Speckle's avatar
Sydney Speckle committed
66

67 68 69 70
## Mark launch files for installation
install(DIRECTORY launch
  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)