diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-07-10 22:03:29 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-07-10 22:18:46 +0200 |
commit | adfbf84fb43e75c83896bc9d38a39b9efc5989b1 (patch) | |
tree | 51891dba1d64a2960dc2a4442c6f80fb2054fe90 /apps | |
parent | af63bd5688731b57551ac161c0dad26a0b4557d7 (diff) | |
download | ble-toys-adfbf84fb43e75c83896bc9d38a39b9efc5989b1.tar.gz ble-toys-adfbf84fb43e75c83896bc9d38a39b9efc5989b1.tar.bz2 ble-toys-adfbf84fb43e75c83896bc9d38a39b9efc5989b1.tar.xz ble-toys-adfbf84fb43e75c83896bc9d38a39b9efc5989b1.zip |
o Adding support for installing the code.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt index 01252cf..8ba5a0a 100644 --- a/apps/CMakeLists.txt +++ b/apps/CMakeLists.txt @@ -69,5 +69,11 @@ target_link_libraries(launcher ${CMAKE_THREAD_LIBS_INIT}) foreach(app ${APPS}) add_custom_command( TARGET launcher POST_BUILD - COMMAND ln -sf launcher ${app}) + COMMAND ln -sf ../libexec/launcher ${app}) + + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${app} DESTINATION bin) endforeach() + +set_target_properties(launcher PROPERTIES INSTALL_RPATH "\\$ORIGIN/../lib/trygvis") +install(TARGETS launcher + RUNTIME DESTINATION libexec) |