59 lines
1.4 KiB
CMake
59 lines
1.4 KiB
CMake
cmake_minimum_required(VERSION 2.8.3)
|
|
project(test_audio_generator)
|
|
|
|
set(CMAKE_VERBOSE_MAKEFILE ON)
|
|
|
|
## Find catkin macros and libraries
|
|
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
|
|
## is used, also find other catkin packages
|
|
find_package(catkin REQUIRED COMPONENTS
|
|
roscpp
|
|
rospy
|
|
std_msgs
|
|
message_generation
|
|
)
|
|
|
|
###################################
|
|
## catkin specific configuration ##
|
|
###################################
|
|
catkin_package(
|
|
CATKIN_DEPENDS roscpp std_msgs
|
|
DEPENDS system_lib
|
|
)
|
|
|
|
###########
|
|
## Build ##
|
|
###########
|
|
|
|
## Specify additional locations of header files
|
|
## Your package locations should be listed before other locations
|
|
include_directories(
|
|
${catkin_INCLUDE_DIRS}
|
|
)
|
|
|
|
## Declare a cpp executable
|
|
add_executable(${PROJECT_NAME}_node
|
|
src/main.cpp
|
|
)
|
|
|
|
target_link_libraries(${PROJECT_NAME}_node ${ALSA_LIBRARIES} pthread)
|
|
|
|
## Specify libraries to link a library or executable target against
|
|
target_link_libraries(${PROJECT_NAME}_node
|
|
${catkin_LIBRARIES}
|
|
)
|
|
|
|
#############
|
|
## Install ##
|
|
#############
|
|
|
|
# all install targets should use catkin DESTINATION variables
|
|
# See http://ros.org/doc/api/catkin/html/adv_user_guide/variables.html
|
|
|
|
## Mark executables and/or libraries for installation
|
|
install(TARGETS ${PROJECT_NAME}_node
|
|
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
|
|
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
|
|
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
|
|
)
|