From 170612145de7626b8945caeb006b7cb6e13477f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Kov=C3=A1cs?= Date: Mon, 22 Jan 2024 09:43:14 +0100 Subject: [PATCH] Remove hardcoded paths from installation part --- CMakeLists.txt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c35c4363..c3c51e0a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -178,12 +178,9 @@ endif(OPENGL) # install bundle install(TARGETS XaoS DESTINATION bin) -# install translations -install(FILES DESTINATION bin/XaoS.app/Contents/Resources/translations) - # install catalogs and tutorial -install(DIRECTORY catalogs tutorial DESTINATION bin/XaoS.app/Contents/Resources) +install(DIRECTORY catalogs tutorial DESTINATION .) # install example files -file(GLOB EXAMPLE_FILES ${PROJECT_DIR}/examples/*/*.xpf) -install(FILES ${EXAMPLE_FILES} DESTINATION bin/XaoS.app/Contents/Resources/examples) +file(GLOB EXAMPLE_FILES ${CMAKE_CURRENT_SOURCE_DIR}/examples/*/*.xpf) +install(FILES ${EXAMPLE_FILES} DESTINATION examples)