1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 18:32:44 +01:00
openrw/cmake/ctest/configure_windows.ctest

36 lines
977 B
Plaintext
Raw Normal View History

2018-02-10 02:07:35 +01:00
set(_WIN_NEEDED_VARS
CMAKE_GENERATOR_BASE
2018-02-10 02:07:35 +01:00
PLATFORM
CONFIGURATION
2018-02-10 02:07:35 +01:00
)
foreach(_WIN_NEEDED_VAR ${_WIN_NEEDED_VARS})
set("${_WIN_NEEDED_VAR}" "$ENV{${_WIN_NEEDED_VAR}}")
message(STATUS "configure_windows: script argument: ${_WIN_NEEDED_VAR} = '${${_WIN_NEEDED_VAR}}'")
if("${${_WIN_NEEDED_VAR}}" STREQUAL "")
message(FATAL_ERROR "${_WIN_NEEDED_VAR} is empty")
endif()
endforeach()
string(TOLOWER "${ARCH}" ARCH)
2018-02-10 02:07:35 +01:00
if(PLATFORM STREQUAL "win32")
set(CMAKE_GENERATOR "${CMAKE_GENERATOR_BASE}")
set(CONAN_ARCH "x86")
2018-02-10 02:07:35 +01:00
elseif(PLATFORM STREQUAL "x64")
set(CMAKE_GENERATOR "${CMAKE_GENERATOR_BASE} Win64")
set(CONAN_ARCH "x86_64")
2018-02-10 02:07:35 +01:00
else()
message(FATAL_ERROR "Unknown platform (${PLATFORM})")
endif()
set(CONFIGURE_EXTRA_OPTIONS ";")
2018-08-29 15:52:59 +02:00
set(BUILD_EXTRA_FLAGS "")
2018-09-01 18:23:10 +02:00
set(BUILD_TYPE "${CONFIGURATION}")
2018-02-10 02:07:35 +01:00
set(CONAN_ARCH "x86_64")
2018-02-10 02:07:35 +01:00
2018-08-09 23:08:07 +02:00
set(BUILD_TOOLS TRUE)
set(BUILD_VIEWER TRUE)
2018-06-14 16:08:49 +02:00
set(CHECK_IWYU FALSE) #FIXME: ENABLE
2018-06-08 10:18:05 +02:00
set(ENABLE_SANITIZERS "")