Use CMake installation directory

This removes the use of the DESTINATION parameter from install() command and instead rely on default values.
The shared build action file was modified to package installed files in a single folder
This commit is contained in:
smallmodel 2024-11-20 22:06:14 +01:00
parent 864cdf1fc6
commit 120a486aea
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
5 changed files with 36 additions and 33 deletions

View file

@ -18,7 +18,7 @@ function (create_launcher name type)
target_compile_features(openmohaa_launcher_${name} PRIVATE cxx_std_17)
set_target_properties(openmohaa_launcher_${name} PROPERTIES OUTPUT_NAME "launch_openmohaa_${name}${TARGET_BIN_SUFFIX}")
INSTALL(TARGETS openmohaa_launcher_${name} DESTINATION "./")
INSTALL(TARGETS openmohaa_launcher_${name})
#add_executable(omohaaded_launcher_${name} ${LAUNCHER_SOURCES})
#target_include_directories(omohaaded_launcher_${name} PUBLIC "../qcommon")
@ -26,7 +26,7 @@ function (create_launcher name type)
#target_compile_features(omohaaded_launcher_${name} PRIVATE cxx_std_17)
#set_target_properties(omohaaded_launcher_${name} PROPERTIES OUTPUT_NAME "launch_omohaaded_${name}${TARGET_BIN_SUFFIX}")
#
#INSTALL(TARGETS omohaaded_launcher_${name} DESTINATION "./")
#INSTALL(TARGETS omohaaded_launcher_${name})
endfunction()
create_launcher(base 0)