[DEV] add basic catkin

This commit is contained in:
Edouard DUPIN 2015-03-12 21:33:44 +01:00
parent 893cf1d5c0
commit ec4eae4242
4 changed files with 171 additions and 0 deletions

81
catkin/CMakeLists.txt Normal file
View File

@ -0,0 +1,81 @@
cmake_minimum_required(VERSION 2.8.3)
project(river)
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
airtaudio
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}
CATKIN_DEPENDS airtaudio audio drain ejson
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}
../${PROJECT_NAME}/debug.cpp
../${PROJECT_NAME}/Manager.cpp
../${PROJECT_NAME}/Interface.cpp
../${PROJECT_NAME}/CircularBuffer.cpp
../${PROJECT_NAME}/io/Group.cpp
../${PROJECT_NAME}/io/Node.cpp
../${PROJECT_NAME}/io/NodeAirTAudio.cpp
../${PROJECT_NAME}/io/NodePortAudio.cpp
../${PROJECT_NAME}/io/NodeAEC.cpp
../${PROJECT_NAME}/io/NodeMuxer.cpp
../${PROJECT_NAME}/io/Manager.cpp
)
set(CMAKE_CXX_FLAGS "-std=c++11 -DDEBUG_LEVEL=3 -DDEBUG=1 -D__CPP_VERSION__=2011")
add_definitions(-D__AIRTAUDIO_INFERFACE__)
## 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
install(DIRECTORY ../${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h"
)

17
catkin/package.xml Normal file
View File

@ -0,0 +1,17 @@
<?xml version="1.0"?>
<package>
<name>river</name>
<version>0.3.0</version>
<description>Ewol River Intrerface : Is to multiple acces on different format on Audio IO</description>
<maintainer email="yui.heero@gmail.com">Edouard DUPIN</maintainer>
<license>Apache-2.0</license>
<build_depend>drain</build_depend>
<build_depend>audio</build_depend>
<build_depend>ejson</build_depend>
<build_depend>airtaudio</build_depend>
<buildtool_depend>catkin</buildtool_depend>
<run_depend>drain</run_depend>
<run_depend>audio</run_depend>
<run_depend>ejson</run_depend>
<run_depend>airtaudio</run_depend>
</package>

View File

@ -0,0 +1,60 @@
cmake_minimum_required(VERSION 2.8.3)
project(river_test)
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
river
)
###################################
## 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()
###########
## 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
catkin_add_gtest(${PROJECT_NAME}
../debug.cpp
../main.cpp
)
set(CMAKE_CXX_FLAGS "-std=c++11 -DDEBUG_LEVEL=3 -DDEBUG=1 -D__CPP_VERSION__=2011")
## 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}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(DIRECTORY ../../data/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
FILES_MATCHING PATTERN "*.json")

13
test/catkin/package.xml Normal file
View File

@ -0,0 +1,13 @@
<?xml version="1.0"?>
<package>
<name>river_test</name>
<version>0.3.0</version>
<description>Ewol River test</description>
<maintainer email="yui.heero@gmail.com">Edouard DUPIN</maintainer>
<license>Apache-2.0</license>
<build_depend>gtest</build_depend>
<build_depend>river</build_depend>
<buildtool_depend>catkin</buildtool_depend>
<run_depend>river</run_depend>
<run_depend>gtest</run_depend>
</package>