From 54987058ea92107e043e5c1f97ae60524ec4aa36 Mon Sep 17 00:00:00 2001 From: William Woodall Date: Wed, 9 Jan 2013 10:53:58 -0800 Subject: [PATCH] install headers --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e9b1215..862d01d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,12 +48,15 @@ target_link_libraries(serial_example ${PROJECT_NAME}) include_directories(include) ## Install executable -install( - TARGETS ${PROJECT_NAME} +install(TARGETS ${PROJECT_NAME} ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} ) +## Install headers +install(FILES include/serial/serial.h include/serial/v8stdint.h + DESTINATION ${CATKIN_GLOBAL_INCLUDE_DESTINATION}/serial) + ## Tests catkin_add_gtest(${PROJECT_NAME}-test tests/serial_tests.cc) target_link_libraries(${PROJECT_NAME}-test ${PROJECT_NAME})