From c206053240d39ba1ae3b045566274bde3b40ad3e Mon Sep 17 00:00:00 2001 From: Bart Ribbers Date: Tue, 9 May 2023 10:49:32 +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 --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index a227e4c..8b7965f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,13 @@ include(AsteroidTranslations) add_subdirectory(src) +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/asteroid-helloworld.in + ${CMAKE_BINARY_DIR}/asteroid-helloworld + @ONLY) + +install(PROGRAMS ${CMAKE_BINARY_DIR}/asteroid-helloworld + DESTINATION ${CMAKE_INSTALL_BINDIR}) + generate_desktop(${CMAKE_SOURCE_DIR} asteroid-helloworld) feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) -- cgit v1.2.3-54-g00ecf