Skip to content

Commit

Permalink
[CMakeLists] add install
Browse files Browse the repository at this point in the history
  • Loading branch information
sarthou committed Aug 9, 2024
1 parent f82174c commit a4f7944
Showing 1 changed file with 44 additions and 2 deletions.
46 changes: 44 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ generate_messages(
## CATKIN_DEPENDS: catkin_packages dependent projects also need
## DEPENDS: system dependencies of this project that dependent projects also need
catkin_package(
INCLUDE_DIRS include
INCLUDE_DIRS include ${BULLET_INCLUDE_DIRS}
LIBRARIES ${PROJECT_NAME}_bullet_lib ${PROJECT_NAME}_types_lib ${PROJECT_NAME}_utility_lib
CATKIN_DEPENDS ontologenius roscpp std_msgs tf2 tf2_ros roslib
# DEPENDS system_lib
Expand Down Expand Up @@ -307,4 +307,46 @@ add_executable(${PROJECT_NAME}_object_spawn src/TestFiles/object_spawn.cpp )
target_link_libraries(${PROJECT_NAME}_object_spawn PRIVATE
${PROJECT_NAME}_sender_lib
${catkin_LIBRARIES}
${ontologenius_LIBRARIES})
${ontologenius_LIBRARIES})

# ##################################
# # Install ##
# ##################################
install(TARGETS
${PROJECT_NAME}_bullet_lib
${PROJECT_NAME}_types_lib
${PROJECT_NAME}_utility_lib
overworld_reasoner_plugin
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)

install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
FILES_MATCHING PATTERN "*.h"
PATTERN ".svn" EXCLUDE
)

install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
)

install(DIRECTORY config/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/config
)

install(DIRECTORY models/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/models
)

install(DIRECTORY ontologies/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/ontologies
)

install(FILES
modules_plugins.xml
reasoners_plugins.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)

0 comments on commit a4f7944

Please sign in to comment.