audio-river/catkin/CMakeLists.txt

80 lines
2.2 KiB
CMake
Raw Normal View History

2015-03-12 21:33:44 +01:00
cmake_minimum_required(VERSION 2.8.3)
2015-04-14 21:53:14 +02:00
project(audio_river)
2015-03-12 21:33:44 +01:00
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
drain
audio
2015-04-14 21:53:14 +02:00
audio_orchestra
2015-03-12 21:33:44 +01:00
ejson
)
###################################
## 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 ../
LIBRARIES ${PROJECT_NAME}
2015-04-14 21:53:14 +02:00
CATKIN_DEPENDS audio_orchestra audio audio_drain ejson
2015-03-12 21:33:44 +01:00
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 library
add_library(${PROJECT_NAME}
2015-04-14 21:53:14 +02:00
../audio/river/debug.cpp
../audio/river/river.cpp
../audio/river/Manager.cpp
../audio/river/Interface.cpp
../audio/river/io/Group.cpp
../audio/river/io/Node.cpp
../audio/river/io/NodeOrchestra.cpp
../audio/river/io/NodePortAudio.cpp
../audio/river/io/NodeAEC.cpp
../audio/river/io/NodeMuxer.cpp
../audio/river/io/Manager.cpp
2015-03-12 21:33:44 +01:00
)
2015-04-14 21:53:14 +02:00
add_definitions(-DAUDIO_RIVER_BUILD_ORCHESTRA)
2015-03-12 21:33:44 +01:00
## Specify libraries to link a library or executable target against
target_link_libraries(${PROJECT_NAME}
${catkin_LIBRARIES}
)
#############
## Install ##
#############
## Mark executables and/or libraries for installation
install(TARGETS ${PROJECT_NAME}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
)
## Mark cpp header files for installation
2015-04-14 21:53:14 +02:00
install(DIRECTORY ../audio/river/
2015-03-12 21:33:44 +01:00
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h"
)