From adfbf84fb43e75c83896bc9d38a39b9efc5989b1 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 10 Jul 2015 22:03:29 +0200 Subject: o Adding support for installing the code. --- apps/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'apps') 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) -- cgit v1.2.3