2018-02-10 02:07:35 +01:00
|
|
|
set(_WIN_NEEDED_VARS
|
2018-06-07 02:19:53 +02:00
|
|
|
CMAKE_GENERATOR_BASE
|
2018-02-10 02:07:35 +01:00
|
|
|
PLATFORM
|
2018-06-07 02:19:53 +02:00
|
|
|
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()
|
|
|
|
|
2018-06-07 02:19:53 +02:00
|
|
|
string(TOLOWER "${ARCH}" ARCH)
|
2018-02-10 02:07:35 +01:00
|
|
|
if(PLATFORM STREQUAL "win32")
|
2018-06-07 02:19:53 +02:00
|
|
|
set(CMAKE_GENERATOR "${CMAKE_GENERATOR_BASE}")
|
|
|
|
set(CONAN_ARCH "x86")
|
2018-02-10 02:07:35 +01:00
|
|
|
elseif(PLATFORM STREQUAL "x64")
|
2018-06-07 02:19:53 +02:00
|
|
|
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()
|
|
|
|
|
2018-06-07 02:19:53 +02:00
|
|
|
set(CONFIGURE_EXTRA_OPTIONS ";")
|
|
|
|
|
|
|
|
if(CONFIGURATION STREQUAL "Debug")
|
2018-02-10 02:07:35 +01:00
|
|
|
set(DEBUG TRUE)
|
2018-06-07 02:19:53 +02:00
|
|
|
elseif(CONFIGURATION STREQUAL "Release")
|
2018-02-10 02:07:35 +01:00
|
|
|
set(DEBUG FALSE)
|
|
|
|
else()
|
|
|
|
message(FATAL_ERROR "Unknown configuration '${CONFIGURATION}'")
|
|
|
|
endif()
|
|
|
|
|
2018-06-07 02:19:53 +02:00
|
|
|
set(CONAN_PROFILE "${CTEST_SOURCE_DIRECTORY}/scripts/conan/windows")
|
|
|
|
set(CONAN_ARCH "x86_64")
|
2018-02-10 02:07:35 +01:00
|
|
|
|
2018-06-07 02:19:53 +02:00
|
|
|
set(BUILD_VIEWER TRUE)
|
2018-02-10 02:07:35 +01:00
|
|
|
set(COVERAGE_COMMAND "echo") #FIXME: ENABLE
|
|
|
|
set(CHECK_INCLUDES FALSE) #FIXME: ENABLE
|
2018-06-08 10:18:05 +02:00
|
|
|
set(ENABLE_SANITIZERS "")
|