Remove unused packaging function
This commit is contained in:
parent
e836385f33
commit
061489a1ce
1 changed files with 0 additions and 24 deletions
|
|
@ -21,30 +21,6 @@ if(PSEMEK_PACKAGE_MODE)
|
|||
set(PSEMEK_COPY_FILES_RAW)
|
||||
endif()
|
||||
|
||||
function(psemek_add_executable_impl target build link_psemek package)
|
||||
if(${build})
|
||||
add_executable(${target} ${ARGN})
|
||||
|
||||
if(${link_psemek})
|
||||
target_link_libraries(${target} PUBLIC psemek)
|
||||
endif()
|
||||
|
||||
if(${package})
|
||||
target_link_options(${target} PUBLIC ${PSEMEK_PACKAGE_LINK_FLAGS})
|
||||
|
||||
set_target_properties(${target} PROPERTIES
|
||||
BUILD_RPATH "."
|
||||
)
|
||||
|
||||
add_custom_command(TARGET ${target} POST_BUILD
|
||||
COMMAND ${CMAKE_STRIP} $<TARGET_FILE:${target}>
|
||||
COMMAND chrpath -r . $<TARGET_FILE:${target}>
|
||||
COMMAND zip ${CMAKE_CURRENT_SOURCE_DIR}/${target}-${PSEMEK_PACKAGE_SUFFIX}.zip -j $<TARGET_FILE:${target}> ${PSEMEK_PACKAGE_COPY_FILES}
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function(psemek_add_executable target)
|
||||
if((NOT PSEMEK_PACKAGE_MODE) OR PSEMEK_PACKAGE_TARGET)
|
||||
add_executable(${target} ${ARGN})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue