CMakeLists.txt:make install

This commit is contained in:
randymcmillan 2023-08-01 20:25:13 -04:00
parent f202ebcdde
commit 93c9616d9c
No known key found for this signature in database
GPG Key ID: 85495A938B7F78DF
1 changed files with 11 additions and 1 deletions

View File

@ -71,8 +71,18 @@ target_link_libraries (nostril ${lib_dep})
add_custom_command(
TARGET configurator
POST_BUILD
COMMAND configurator > config.h
COMMAND configurator > config.h
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/config.h" ${CMAKE_SOURCE_DIR}
COMMENT "generating config.h"
)
#//////////////////////////
# Install
#//////////////////////////
install(TARGETS nostril
CONFIGURATIONS Debug
RUNTIME DESTINATION ${CMAKE_SOURCE_DIR}/bin)
install(TARGETS nostril
CONFIGURATIONS Release
RUNTIME DESTINATION /usr/local/bin)