mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-10-15 05:20:26 +02:00
port of RPM building and gitea workflows (#1601)
Build and Deploy on local RHEL9 / build (push) Successful in 2m0s
Build on RHEL9 docker image / build (push) Successful in 3m57s
Build on RHEL8 docker image / build (push) Successful in 5m7s
Build and Deploy on local RHEL8 / build (push) Successful in 5m14s
Run Simulator Tests on local RHEL9 / build (push) Successful in 20m43s
Run Simulator Tests on local RHEL8 / build (push) Successful in 24m4s
Build and Deploy on local RHEL9 / build (push) Successful in 2m0s
Build on RHEL9 docker image / build (push) Successful in 3m57s
Build on RHEL8 docker image / build (push) Successful in 5m7s
Build and Deploy on local RHEL8 / build (push) Successful in 5m14s
Run Simulator Tests on local RHEL9 / build (push) Successful in 20m43s
Run Simulator Tests on local RHEL8 / build (push) Successful in 24m4s
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# SPDX-License-Identifier: LGPL-3.0-or-other
|
||||
# Copyright (C) 2026 Contributors to the SLS Detector Package
|
||||
|
||||
function(sls_install_executable target)
|
||||
cmake_parse_arguments(ARG "" "DESTINATION;COMPONENT;EXPORT" "" ${ARGN})
|
||||
if(NOT ARG_DESTINATION)
|
||||
set(ARG_DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
||||
endif()
|
||||
|
||||
set(install_args DESTINATION "${ARG_DESTINATION}")
|
||||
if(ARG_COMPONENT)
|
||||
list(APPEND install_args COMPONENT "${ARG_COMPONENT}")
|
||||
endif()
|
||||
|
||||
if(SLS_INSTALL_VERSIONED_BINARIES)
|
||||
install(PROGRAMS "$<TARGET_FILE:${target}>"
|
||||
${install_args}
|
||||
RENAME "$<TARGET_FILE_BASE_NAME:${target}>-${PROJECT_VERSION}${CMAKE_EXECUTABLE_SUFFIX}"
|
||||
)
|
||||
else()
|
||||
set(export_args)
|
||||
if(ARG_EXPORT)
|
||||
list(APPEND export_args EXPORT "${ARG_EXPORT}")
|
||||
endif()
|
||||
install(TARGETS ${target}
|
||||
${export_args}
|
||||
RUNTIME ${install_args}
|
||||
)
|
||||
endif()
|
||||
endfunction()
|
||||
Reference in New Issue
Block a user