2008-07-25 01:37:44 +00:00
|
|
|
cmake_minimum_required( VERSION 2.4 )
|
2008-07-23 19:11:58 +00:00
|
|
|
|
2008-07-25 01:37:44 +00:00
|
|
|
add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/generated/dehsupp.lmp
|
2008-07-23 19:11:58 +00:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/generated
|
2008-07-25 01:37:44 +00:00
|
|
|
COMMAND ${CMAKE_BINARY_DIR}/tools/dehsupp/dehsupp ${CMAKE_CURRENT_SOURCE_DIR}/sources/dehsupp.txt ${CMAKE_CURRENT_BINARY_DIR}/generated/dehsupp.lmp
|
2008-07-23 19:11:58 +00:00
|
|
|
DEPENDS dehsupp ${CMAKE_CURRENT_SOURCE_DIR}/sources/dehsupp.txt )
|
|
|
|
|
|
|
|
add_custom_command( OUTPUT ${ZDOOM_OUTPUT_DIR}/zdoom.pk3
|
2008-07-25 01:37:44 +00:00
|
|
|
COMMAND ${CMAKE_BINARY_DIR}/tools/zipdir/zipdir ${ZDOOM_OUTPUT_DIR}/zdoom.pk3 ${CMAKE_CURRENT_SOURCE_DIR}/static ${CMAKE_CURRENT_BINARY_DIR}/generated
|
2008-07-23 19:11:58 +00:00
|
|
|
DEPENDS zipdir ${CMAKE_CURRENT_BINARY_DIR}/generated/dehsupp.lmp )
|
|
|
|
|
|
|
|
add_custom_target( pk3 ALL
|
|
|
|
DEPENDS ${ZDOOM_OUTPUT_DIR}/zdoom.pk3 )
|