blob: f96e70bc73825423611c77e1a6f95afc6cca10f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
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()
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()
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()
|