summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPack/DragNDrop/Prerequirements.cmake
diff options
context:
space:
mode:
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()