mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Unix: allow adding a prefix to all the puzzle names.
A distro maintainer reminds me that downstreams often want to rename my quite generic executable names to avoid clashes in bin directories. Added a cmake option -DOUTPUT_NAME to make that easy.
This commit is contained in:
@ -58,6 +58,8 @@ function(get_platform_puzzle_extra_source_files OUTVAR NAME)
|
|||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(set_platform_puzzle_target_properties NAME TARGET)
|
function(set_platform_puzzle_target_properties NAME TARGET)
|
||||||
|
set_target_properties(${TARGET} PROPERTIES
|
||||||
|
OUTPUT_NAME ${NAME_PREFIX}${NAME})
|
||||||
install(TARGETS ${TARGET})
|
install(TARGETS ${TARGET})
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user