2012-10-12 17:30:17 +04:00
|
|
|
message(STATUS "Testing configuration ${activeConfig}.")
|
|
|
|
|
|
|
|
macro(TestExists exeName)
|
|
|
|
set(exeFile "${dir}/${activeConfig}/${exeName}.exe")
|
|
|
|
if(${ARGN} EXISTS "${exeFile}")
|
|
|
|
message(STATUS "File ${exeFile} was correctly found ${ARGN} to exist.")
|
|
|
|
else()
|
|
|
|
message(FATAL_ERROR "File ${exeFile} was expected ${ARGN} to exist!")
|
|
|
|
endif()
|
2015-05-01 20:46:17 +03:00
|
|
|
set(exeFile "${dir}/${activeConfig}/install/${exeName}.exe")
|
|
|
|
if(${ARGN} EXISTS "${exeFile}")
|
|
|
|
message(STATUS "File ${exeFile} was correctly found ${ARGN} to exist.")
|
|
|
|
else()
|
|
|
|
message(FATAL_ERROR "File ${exeFile} was expected ${ARGN} to exist!")
|
|
|
|
endif()
|
2012-10-12 17:30:17 +04:00
|
|
|
endmacro()
|
|
|
|
|
|
|
|
TestExists(DefaultBuilt)
|
|
|
|
TestExists(AlwaysBuilt)
|
|
|
|
TestExists(NeverBuilt NOT)
|
|
|
|
foreach(config ${allConfigs})
|
|
|
|
if(config STREQUAL activeConfig)
|
|
|
|
TestExists(BuiltIn${config})
|
|
|
|
TestExists(ExcludedIn${config} NOT)
|
|
|
|
else()
|
|
|
|
TestExists(BuiltIn${config} NOT)
|
|
|
|
TestExists(ExcludedIn${config})
|
|
|
|
endif()
|
|
|
|
endforeach()
|