equal
deleted
inserted
replaced
10 |
10 |
11 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules") |
11 set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules") |
12 include(${CMAKE_MODULE_PATH}/utils.cmake) |
12 include(${CMAKE_MODULE_PATH}/utils.cmake) |
13 |
13 |
14 #possible cmake configuration |
14 #possible cmake configuration |
15 option(NOSERVER "Disable gameServer build (off)]" OFF) |
15 option(NOSERVER "Disable gameServer build (off)" OFF) |
16 option(NOPNG "Disable screenshoot compression (off)" OFF) |
16 option(NOPNG "Disable screenshoot compression (off)" OFF) |
17 option(NOVIDEOREC "Disable video recording (off)" OFF) |
17 option(NOVIDEOREC "Disable video recording (off)" OFF) |
18 |
18 |
19 #libraries are built shared unless explicitly added as a static |
19 #libraries are built shared unless explicitly added as a static |
20 option(BUILD_SHARED_LIBS "Build libraries as shared modules (on)" ON) |
20 option(BUILD_SHARED_LIBS "Build libraries as shared modules (on)" ON) |
31 option(ANDROID "Enable Android build (off)" OFF) |
31 option(ANDROID "Enable Android build (off)" OFF) |
32 |
32 |
33 option(MINIMAL_FLAGS "Respect system flags as much as possible (off)" OFF) |
33 option(MINIMAL_FLAGS "Respect system flags as much as possible (off)" OFF) |
34 option(NOAUTOUPDATE "Disable OS X Sparkle update checking (off)" OFF) |
34 option(NOAUTOUPDATE "Disable OS X Sparkle update checking (off)" OFF) |
35 |
35 |
36 option(BUILD_ENGINE_C "Compile hwengine as native C [default: off]" OFF) |
36 option(BUILD_ENGINE_C "Compile hwengine as native C (off)" OFF) |
37 option(GL2 "Enable OpenGL 2 rendering [default: off]" OFF) |
37 option(GL2 "Enable OpenGL 2 rendering !!!EXPERIMENTAL - DO NOT USE!!! [default: off)" OFF) |
38 |
38 |
39 set(GHFLAGS "" CACHE STRING "Additional Haskell flags") |
39 set(GHFLAGS "" CACHE STRING "Additional Haskell flags") |
40 if(UNIX AND NOT APPLE) |
40 if(UNIX AND NOT APPLE) |
41 set(DATA_INSTALL_DIR "share/hedgewars" CACHE STRING "Resource folder path") |
41 set(DATA_INSTALL_DIR "share/hedgewars" CACHE STRING "Resource folder path") |
42 endif() |
42 endif() |
228 add_subdirectory(tools) |
228 add_subdirectory(tools) |
229 endif(ANDROID) |
229 endif(ANDROID) |
230 |
230 |
231 include(${CMAKE_MODULE_PATH}/cpackvars.cmake) |
231 include(${CMAKE_MODULE_PATH}/cpackvars.cmake) |
232 |
232 |
|
233 if(NOT BUILD_ENGINE_C) |
233 enable_testing() |
234 enable_testing() |
|
235 endif(NOT BUILD_ENGINE_C) |
|
236 add_custom_target(test COMMAND ${CMAKE_CTEST_COMMAND} -E '^todo/' --timeout 300 --schedule-random) |
|
237 add_custom_target(test_verbose COMMAND ${CMAKE_CTEST_COMMAND} -E '^todo/' --timeout 300 --schedule-random -V) |
234 |
238 |
235 set(LUATESTS_DIR "${CMAKE_SOURCE_DIR}/tests/lua") |
239 set(LUATESTS_DIR "${CMAKE_SOURCE_DIR}/tests/lua") |
236 set(TESTSDATA_DIR "${CMAKE_SOURCE_DIR}/share/hedgewars/Data") |
240 set(TESTSDATA_DIR "${CMAKE_SOURCE_DIR}/share/hedgewars/Data") |
237 |
241 |
238 # set set this to "" if you want to see what's going on |
242 # set set this to "" if you want to see what's going on |