81 lines
1.4 KiB
CMake
81 lines
1.4 KiB
CMake
cmake_minimum_required(VERSION 2.8.3)
|
|
project(hos_cosgi_testwebapp)
|
|
|
|
## Find catkin macros and libraries
|
|
find_package(catkin REQUIRED COMPONENTS
|
|
hos_celix
|
|
hos_cosgi_webserver
|
|
hos_deps
|
|
)
|
|
|
|
## System dependencies are found with CMake's conventions
|
|
find_package(APR REQUIRED)
|
|
find_package(CELIX REQUIRED)
|
|
find_package(Boost REQUIRED)
|
|
find_package(Poco REQUIRED COMPONENTS Net NetSSL)
|
|
|
|
|
|
###################################
|
|
## catkin specific configuration ##
|
|
###################################
|
|
|
|
catkin_package(
|
|
# INCLUDE_DIRS include
|
|
# LIBRARIES hos_cosgi_testwebapp
|
|
# CATKIN_DEPENDS hos_celix hos_cosgi_webserver
|
|
# DEPENDS system_lib
|
|
)
|
|
|
|
|
|
###########
|
|
## Build ##
|
|
###########
|
|
|
|
add_definitions(
|
|
-std=c++11
|
|
)
|
|
|
|
include_directories(
|
|
${catkin_INCLUDE_DIRS}
|
|
${APR_INCLUDE_DIR}
|
|
${APR_INCLUDE_DIR}/apr-1.0
|
|
${Poco_INCLUDE_DIRS}
|
|
)
|
|
|
|
set(BUNDLE_SYMBOLICNAME "hos.hos_testwebapp")
|
|
set(BUNDLE_VERSION "1.0.0")
|
|
set(BUNDLE_NAME "hos_testwebapp")
|
|
|
|
bundle(hos_cosgi_testwebapp
|
|
SOURCES
|
|
${PROJECT_SOURCE_DIR}/src/BundleActivator
|
|
DIRECTORIES
|
|
${PROJECT_SOURCE_DIR}/webroot
|
|
)
|
|
|
|
target_link_libraries(hos_cosgi_testwebapp
|
|
${catkin_LIBRARIES}
|
|
${APR_LIBRARIES}
|
|
)
|
|
|
|
|
|
#############
|
|
## Install ##
|
|
#############
|
|
|
|
install(FILES
|
|
${CMAKE_BINARY_DIR}/hos_cosgi_testwebapp.zip
|
|
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/bundles
|
|
)
|
|
|
|
|
|
###################
|
|
## Documentation ##
|
|
###################
|
|
|
|
find_package(Doxygen)
|
|
if(DOXYGEN_FOUND)
|
|
add_custom_target(doc)
|
|
endif(DOXYGEN_FOUND)
|
|
|