mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-22 16:32:13 -07:00
Permit building GUI helper tools.
These look like puzzles, in that they link against a frontend and provide the usual 'struct game', but they don't count as a puzzle for purposes of shipping, or even having to have descriptions and icons. There's one of these buried in the code already under an ifdef, which I'll re-enable in the next commit.
This commit is contained in:
@ -37,11 +37,14 @@ function(get_platform_puzzle_extra_source_files OUTVAR NAME)
|
||||
set(${OUTVAR} ${CMAKE_SOURCE_DIR}/puzzles.rc PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
function(set_platform_gui_target_properties TARGET)
|
||||
set_target_properties(${TARGET} PROPERTIES WIN32_EXECUTABLE ON)
|
||||
endfunction()
|
||||
|
||||
function(set_platform_puzzle_target_properties NAME TARGET)
|
||||
if(DEFINED ICO_DIR AND EXISTS ${ICO_DIR}/${NAME}.ico)
|
||||
target_compile_definitions(${TARGET} PRIVATE ICON_FILE=\"${ICO_DIR}/${NAME}.ico\")
|
||||
endif()
|
||||
set_target_properties(${TARGET} PROPERTIES WIN32_EXECUTABLE ON)
|
||||
endfunction()
|
||||
|
||||
function(build_platform_extras)
|
||||
|
Reference in New Issue
Block a user