mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-07 11:22:45 +01:00
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
set(_WIN_NEEDED_VARS
|
|
CMAKE_GENERATOR_BASE
|
|
PLATFORM
|
|
CONFIGURATION
|
|
)
|
|
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)
|
|
if(PLATFORM STREQUAL "win32")
|
|
set(CMAKE_GENERATOR "${CMAKE_GENERATOR_BASE}")
|
|
set(CONAN_ARCH "x86")
|
|
elseif(PLATFORM STREQUAL "x64")
|
|
set(CMAKE_GENERATOR "${CMAKE_GENERATOR_BASE} Win64")
|
|
set(CONAN_ARCH "x86_64")
|
|
else()
|
|
message(FATAL_ERROR "Unknown platform (${PLATFORM})")
|
|
endif()
|
|
|
|
set(CONFIGURE_EXTRA_OPTIONS ";")
|
|
|
|
if(CONFIGURATION STREQUAL "Debug")
|
|
set(DEBUG TRUE)
|
|
elseif(CONFIGURATION STREQUAL "Release")
|
|
set(DEBUG FALSE)
|
|
else()
|
|
message(FATAL_ERROR "Unknown configuration '${CONFIGURATION}'")
|
|
endif()
|
|
|
|
set(CONAN_PROFILE "${CTEST_SOURCE_DIRECTORY}/scripts/conan/windows")
|
|
set(CONAN_ARCH "x86_64")
|
|
|
|
set(BUILD_VIEWER TRUE)
|
|
set(COVERAGE_COMMAND "echo") #FIXME: ENABLE
|
|
set(CHECK_INCLUDES FALSE) #FIXME: ENABLE
|
|
set(ENABLE_SANITIZERS "")
|