Skip to content

Commit

Permalink
Install segwayrmp_gui when it is built
Browse files Browse the repository at this point in the history
  • Loading branch information
wjwwood committed Dec 10, 2013
1 parent 2f8df3d commit 63ef31d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cmake/segwayrmp_targets.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
## This file setups the targets like install and uninstall

set(${PROJECT_NAME}_targets_to_install segwayrmp)
# If the GUI is built, install it
if (TARGET segwayrmp_gui)
list(APPEND ${PROJECT_NAME}_targets_to_install segwayrmp_gui)
endif()

install(
TARGETS segwayrmp
TARGETS ${${PROJECT_NAME}_targets_to_install}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
Expand All @@ -18,7 +24,7 @@ configure_file(
@ONLY
)
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/cmake/libsegwayrmpConfig.cmake
FILES ${CMAKE_CURRENT_BINARY_DIR}/cmake/libsegwayrmpConfig.cmake
DESTINATION share/libsegwayrmp
)

Expand Down

0 comments on commit 63ef31d

Please sign in to comment.