summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2023-05-09 10:49:32 +0200
committerMagneFire <dgriet@gmail.com>2023-05-14 19:38:55 +0200
commitc206053240d39ba1ae3b045566274bde3b40ad3e (patch)
tree373213c31f893740f423fa26ffc8760ac991a7c1 /src
parente78b0968ae9ab48a815319b8f6d87ac0e9df95b7 (diff)
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
Diffstat (limited to '')
-rw-r--r--src/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index ef093a5..c6b802c 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,8 +1,8 @@
add_library(asteroid-helloworld main.cpp resources.qrc)
-set_target_properties(asteroid-helloworld PROPERTIES PREFIX "" SUFFIX "")
+set_target_properties(asteroid-helloworld PROPERTIES PREFIX "")
target_link_libraries(asteroid-helloworld PUBLIC
AsteroidApp)
install(TARGETS asteroid-helloworld
- DESTINATION ${CMAKE_INSTALL_BINDIR})
+ DESTINATION ${CMAKE_INSTALL_LIBDIR})