mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
8c95516224
- updaterevision for automated revision string generation - re2c as a prerequisite to use sc_man in the future - zipdir to automatically generate an engine resource file.
24 lines
759 B
CMake
24 lines
759 B
CMake
cmake_minimum_required( VERSION 2.8.7 )
|
|
|
|
if( WIN32 )
|
|
if( MSVC_VERSION GREATER 1399 )
|
|
# VC 8+ adds a manifest automatically to the executable. We need to
|
|
# merge ours with it.
|
|
set( MT_MERGE ON )
|
|
else()
|
|
set( TRUSTINFO trustinfo.rc )
|
|
endif()
|
|
else( WIN32 )
|
|
set( TRUSTINFO "" )
|
|
endif()
|
|
|
|
if( NOT CMAKE_CROSSCOMPILING )
|
|
add_executable( updaterevision updaterevision.c ${TRUSTINFO} )
|
|
set( CROSS_EXPORTS ${CROSS_EXPORTS} updaterevision PARENT_SCOPE )
|
|
endif()
|
|
|
|
if( MT_MERGE )
|
|
add_custom_command(TARGET updaterevision POST_BUILD
|
|
COMMAND mt -inputresource:$<TARGET_FILE:updaterevision> -manifest ${CMAKE_CURRENT_SOURCE_DIR}/trustinfo.txt -outputresource:$<TARGET_FILE:updaterevision> -nologo
|
|
COMMENT "Embedding trustinfo into updaterevision" )
|
|
endif()
|