From 0b1187b1e16c859c625b9c97a74037b41e729e7b Mon Sep 17 00:00:00 2001 From: tmadlener Date: Wed, 13 Jan 2021 14:11:53 +0100 Subject: [PATCH] Also export the sio-dump target in the SIO:: namespace --- cmake/SIOConfig.cmake.in | 1 + source/CMakeLists.txt | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 )