1 message(STATUS "=============================================================================")
2 message(STATUS "CTEST_FULL_OUTPUT (Avoid ctest truncation of output)")
5 if(NOT CPackComponents_BINARY_DIR)
6 message(FATAL_ERROR "CPackComponents_BINARY_DIR not set")
7 endif(NOT CPackComponents_BINARY_DIR)
9 set(expected_file_mask "")
12 # Only expect the *.exe installer if it looks like NSIS is
13 # installed on this machine:
15 find_program(NSIS_MAKENSIS_EXECUTABLE NAMES makensis
16 PATHS [HKEY_LOCAL_MACHINE\\SOFTWARE\\NSIS]
17 DOC "makensis.exe location"
19 if(NSIS_MAKENSIS_EXECUTABLE)
20 set(expected_file_mask "${CPackComponents_BINARY_DIR}/MyLib-*.exe")
21 endif(NSIS_MAKENSIS_EXECUTABLE)
25 # Always expect the *.dmg installer - PackageMaker should always
26 # be installed on a development Mac:
28 set(expected_file_mask "${CPackComponents_BINARY_DIR}/MyLib-*.dmg")
31 if(expected_file_mask)
33 file(GLOB expected_file "${expected_file_mask}")
35 message(STATUS "expected_count='${expected_count}'")
36 message(STATUS "expected_file='${expected_file}'")
37 message(STATUS "expected_file_mask='${expected_file_mask}'")
40 message(FATAL_ERROR "error: expected_file does not exist: CPackComponents test fails.")
41 endif(NOT expected_file)
43 list(LENGTH expected_file actual_count)
44 message(STATUS "actual_count='${actual_count}'")
45 if(NOT actual_count EQUAL expected_count)
46 message(FATAL_ERROR "error: expected_count does not match actual_count: CPackComponents test fails.")
47 endif(NOT actual_count EQUAL expected_count)
48 endif(expected_file_mask)