diff --git a/cmake/SIOConfig.cmake.in b/cmake/SIOConfig.cmake.in index ea64c46c..26ffc993 100644 --- a/cmake/SIOConfig.cmake.in +++ b/cmake/SIOConfig.cmake.in @@ -4,6 +4,7 @@ # Exported Targets # # SIO::sio : Base sio library +# SIO::sio-dump : sio-dump utility # # returns following variables: # diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 1c95e4cf..26aa4218 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -36,7 +36,9 @@ SIO_INSTALL_DIRECTORY( include/sio DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} ) # build dump binaries ADD_EXECUTABLE( sio-dump main/sio-dump.cc ) TARGET_LINK_LIBRARIES( sio-dump sio ) -INSTALL( TARGETS sio-dump RUNTIME DESTINATION bin ) +INSTALL( TARGETS sio-dump + EXPORT SIOTargets + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) # SIO examples IF( SIO_EXAMPLES )