summaryrefslogtreecommitdiff
path: root/cmake/modules/FindCoreFoundation.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/FindCoreFoundation.cmake')
-rw-r--r--cmake/modules/FindCoreFoundation.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/cmake/modules/FindCoreFoundation.cmake b/cmake/modules/FindCoreFoundation.cmake
new file mode 100644
index 0000000..d998e89
--- /dev/null
+++ b/cmake/modules/FindCoreFoundation.cmake
@@ -0,0 +1,17 @@
+# CoreFoundation_INCLUDE_DIR
+# CoreFoundation_LIBRARIES
+# CoreFoundation_FOUND
+include(LibFindMacros)
+
+find_path(CoreFoundation_INCLUDE_DIR
+ CoreFoundation.h
+ PATH_SUFFIXES CoreFoundation
+)
+
+find_library(CoreFoundation_LIBRARY
+ NAMES CoreFoundation
+)
+
+set(CoreFoundation_PROCESS_INCLUDES CoreFoundation_INCLUDE_DIR)
+set(CoreFoundation_PROCESS_LIBS CoreFoundation_LIBRARY)
+libfind_process(CoreFoundation)