mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-21 01:41:01 +00:00
01fed92920
SVN r4166 (trunk)
17 lines
No EOL
566 B
CMake
17 lines
No EOL
566 B
CMake
cmake_minimum_required( VERSION 2.4 )
|
|
|
|
set( CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG" )
|
|
|
|
add_executable( lemon lemon.c )
|
|
|
|
# Lemon wants lempar.c in its directory
|
|
if( MSVC )
|
|
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> )
|
|
else( MSVC )
|
|
add_custom_command( TARGET lemon
|
|
POST_BUILD
|
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/lempar.c ${CMAKE_CURRENT_BINARY_DIR} )
|
|
endif( MSVC ) |