mirror of
https://github.com/jb55/nostril.git
synced 2024-11-24 08:59:08 -05:00
CMakeLists.txt:make install
This commit is contained in:
parent
f202ebcdde
commit
93c9616d9c
|
@ -71,8 +71,18 @@ target_link_libraries (nostril ${lib_dep})
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET configurator
|
TARGET configurator
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND configurator > config.h
|
COMMAND configurator > config.h
|
||||||
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/config.h" ${CMAKE_SOURCE_DIR}
|
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/config.h" ${CMAKE_SOURCE_DIR}
|
||||||
COMMENT "generating config.h"
|
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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user