equal
deleted
inserted
replaced
|
1 |
|
2 configure_file(${hedgewars_SOURCE_DIR}/hedgewars/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc) |
|
3 |
|
4 add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/hwengine.c" |
|
5 COMMAND "${EXECUTABLE_OUTPUT_PATH}/pas2c${CMAKE_EXECUTABLE_SUFFIX}" |
|
6 ARGS -n hwengine -i "${hedgewars_SOURCE_DIR}/hedgewars" -o "${CMAKE_CURRENT_BINARY_DIR}" -a ./ |
|
7 DEPENDS pas2c |
|
8 ) |
|
9 |
|
10 add_custom_target(engine_c ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/hwengine.c") |
|
11 |
|
12 add_subdirectory(rtl) |
|
13 |
|
14 find_package(GLEW REQUIRED) |
|
15 message("${GLEW_INCLUDE_PATH}") |
|
16 |
|
17 include_directories(rtl) |
|
18 file(GLOB engine_src *.c) |
|
19 add_executable(hwengine WIN32 ${engine_src}) |
|
20 add_dependencies(hwengine engine_c fpcrtl) |