summaryrefslogtreecommitdiffstats
path: root/Tests/VSExcludeFromDefaultBuild/ResultTest.cmake
diff options
context:
space:
mode:
authorRobert Goulet <robert.goulet@autodesk.com>2015-05-01 17:46:17 (GMT)
committerBrad King <brad.king@kitware.com>2015-05-06 14:31:39 (GMT)
commita6e4e73da3de092439b6fcfe884f44a7c8a1ad81 (patch)
treecbffd7b03e181ad6f6f69d09365f435302b26280 /Tests/VSExcludeFromDefaultBuild/ResultTest.cmake
parent562e69dd500f3b1558ab3ffd62679b8b4b0df842 (diff)
downloadCMake-a6e4e73da3de092439b6fcfe884f44a7c8a1ad81.zip
CMake-a6e4e73da3de092439b6fcfe884f44a7c8a1ad81.tar.gz
CMake-a6e4e73da3de092439b6fcfe884f44a7c8a1ad81.tar.bz2
VS: Add option to put INSTALL target in .sln default build
Add a CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD variable to control this behavior.
Diffstat (limited to 'Tests/VSExcludeFromDefaultBuild/ResultTest.cmake')
-rw-r--r--Tests/VSExcludeFromDefaultBuild/ResultTest.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/VSExcludeFromDefaultBuild/ResultTest.cmake b/Tests/VSExcludeFromDefaultBuild/ResultTest.cmake
index 8fb00bf..f96e70b 100644
--- a/Tests/VSExcludeFromDefaultBuild/ResultTest.cmake
+++ b/Tests/VSExcludeFromDefaultBuild/ResultTest.cmake
@@ -7,6 +7,12 @@ macro(TestExists exeName)
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)