aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/polyclipping/FindCLIPPER.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/polyclipping/FindCLIPPER.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/polyclipping/FindCLIPPER.cmake')
-rw-r--r--vcpkg/ports/polyclipping/FindCLIPPER.cmake45
1 files changed, 45 insertions, 0 deletions
diff --git a/vcpkg/ports/polyclipping/FindCLIPPER.cmake b/vcpkg/ports/polyclipping/FindCLIPPER.cmake
new file mode 100644
index 0000000..5a1fcab
--- /dev/null
+++ b/vcpkg/ports/polyclipping/FindCLIPPER.cmake
@@ -0,0 +1,45 @@
+# Distributed under the OSI-approved BSD 3-Clause License.
+
+#.rst:
+# FindCLIPPER
+# --------
+#
+# Result Variables
+# ^^^^^^^^^^^^^^^^
+#
+# This module will set the following variables in your project::
+#
+# ``CLIPPER_FOUND``
+# True if CLIPPER found on the local system
+#
+# ``CLIPPER_INCLUDE_DIRS``
+# Location of CLIPPER header files.
+#
+# ``CLIPPER_LIBRARIES``
+# The clipper libraries.
+#
+
+include(FindPackageHandleStandardArgs)
+include(SelectLibraryConfigurations)
+
+if(NOT CLIPPER_INCLUDE_DIR)
+ find_path(CLIPPER_INCLUDE_DIR clipper.hpp
+ PATH_SUFFIXES polyclipping)
+endif()
+
+if(NOT CLIPPER_LIBRARY)
+ find_library(CLIPPER_LIBRARY_RELEASE NAMES polyclipping PATHS "${CMAKE_CURRENT_LIST_DIR}/../../lib" NO_DEFAULT_PATH)
+ find_library(CLIPPER_LIBRARY_DEBUG NAMES polyclipping PATHS "${CMAKE_CURRENT_LIST_DIR}/../../debug/lib" NO_DEFAULT_PATH)
+ select_library_configurations(CLIPPER)
+endif()
+
+mark_as_advanced(CLIPPER_LIBRARY CLIPPER_INCLUDE_DIR)
+
+find_package_handle_standard_args(CLIPPER
+ REQUIRED_VARS CLIPPER_LIBRARY CLIPPER_INCLUDE_DIR
+)
+
+if(CLIPPER_FOUND)
+ set(CLIPPER_LIBRARIES ${CLIPPER_LIBRARY})
+ set(CLIPPER_INCLUDE_DIRS ${CLIPPER_INCLUDE_DIR})
+endif()