mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-26 22:11:54 +00:00
4a87003408
* Vulkan backend updated. * zlib replaced with miniz. * FileReader is now 64 bit capable. * jpeg replaced with stb-image. * CMake project warnings fixed.
18 lines
551 B
CMake
18 lines
551 B
CMake
cmake_minimum_required( VERSION 3.16 )
|
|
|
|
if( NOT CMAKE_CROSSCOMPILING )
|
|
set( CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG" )
|
|
|
|
if (MSVC)
|
|
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4244 /wd4267" )
|
|
endif()
|
|
|
|
add_executable( lemon lemon.c )
|
|
set( CROSS_EXPORTS ${CROSS_EXPORTS} lemon PARENT_SCOPE )
|
|
|
|
# Lemon wants lempar.c in its directory
|
|
add_custom_command( TARGET lemon
|
|
POST_BUILD
|
|
COMMAND echo $<TARGET_FILE_DIR:lemon>
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/lempar.c $<TARGET_FILE_DIR:lemon> )
|
|
endif()
|