From a8ab7af9c2672dcd03781688993a1692e6444715 Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Tue, 9 May 2023 10:34:53 +0200 Subject: Move main library file to CMAKE_INSTALL_LIBDIR and add a launch script Previously the main program file was installed to /usr/bin, mistakingly giving the impression it could be executed as is. However it isn't a binary but a library that gets executed through invoker. To prevent confusion move it to /usr/lib and add a launch script to /usr/bin instead which launches it through invoker --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a9ef740..b5930c5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,8 +1,8 @@ add_library(asteroid-compass main.cpp resources.qrc) -set_target_properties(asteroid-compass PROPERTIES PREFIX "" SUFFIX "") +set_target_properties(asteroid-compass PROPERTIES PREFIX "") target_link_libraries(asteroid-compass PUBLIC AsteroidApp) install(TARGETS asteroid-compass - DESTINATION ${CMAKE_INSTALL_BINDIR}) + DESTINATION ${CMAKE_INSTALL_LIBDIR}) -- cgit v1.2.3-70-g09d2