summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/DragNDrop/Prerequirements.cmake
diff options
context:
space:
mode:
authorAndrew Fuller <afuller@teradici.com>2020-01-14 23:26:56 (GMT)
committerAndrew Fuller <afuller@teradici.com>2020-01-16 16:04:35 (GMT)
commitb53230fbeeacd367f392ae5a19bde98fa67986e8 (patch)
tree45fd43c07329324628250d16da8637094492bd6c /Tests/RunCMake/CPack/DragNDrop/Prerequirements.cmake
parent26e9e091c14e3244c7f71a336841190db5f2c363 (diff)
downloadCMake-b53230fbeeacd367f392ae5a19bde98fa67986e8.zip
CMake-b53230fbeeacd367f392ae5a19bde98fa67986e8.tar.gz
CMake-b53230fbeeacd367f392ae5a19bde98fa67986e8.tar.bz2
Tests: Add DragNDrop as a testable CPack generator
Diffstat (limited to 'Tests/RunCMake/CPack/DragNDrop/Prerequirements.cmake')
-rw-r--r--Tests/RunCMake/CPack/DragNDrop/Prerequirements.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/CPack/DragNDrop/Prerequirements.cmake b/Tests/RunCMake/CPack/DragNDrop/Prerequirements.cmake
new file mode 100644
index 0000000..f0aaf2c
--- /dev/null
+++ b/Tests/RunCMake/CPack/DragNDrop/Prerequirements.cmake
@@ -0,0 +1,8 @@
+function(get_test_prerequirements found_var config_file)
+ find_program(HDIUTIL_EXECUTABLE hdiutil)
+
+ if(HDIUTIL_EXECUTABLE)
+ file(WRITE "${config_file}" "set(HDIUTIL_EXECUTABLE \"${HDIUTIL_EXECUTABLE}\")")
+ set(${found_var} true PARENT_SCOPE)
+ endif()
+endfunction()