Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortamasmeszaros <meszaros.q@gmail.com>2018-08-13 19:23:49 +0300
committertamasmeszaros <meszaros.q@gmail.com>2018-08-13 19:23:49 +0300
commitfbe415f88e7affbc6664bda54f9269267d3a467b (patch)
treed1daa3567c7667d9a98da201837b2991ed065fd8 /cmake/modules
parente8616b6a3513ee26fb18902dc54c44b83f7a6312 (diff)
Rough base pool geometry can be generated from convex hull or from the ground slice itself.
Diffstat (limited to 'cmake/modules')
-rw-r--r--cmake/modules/FindFlann.cmake28
1 files changed, 28 insertions, 0 deletions
diff --git a/cmake/modules/FindFlann.cmake b/cmake/modules/FindFlann.cmake
new file mode 100644
index 000000000..98674d230
--- /dev/null
+++ b/cmake/modules/FindFlann.cmake
@@ -0,0 +1,28 @@
+###############################################################################
+# Find Flann
+#
+# This sets the following variables:
+# FLANN_FOUND - True if FLANN was found.
+# FLANN_INCLUDE_DIRS - Directories containing the FLANN include files.
+# FLANN_LIBRARIES - Libraries needed to use FLANN.
+# FLANN_DEFINITIONS - Compiler flags for FLANN.
+
+find_package(PkgConfig)
+pkg_check_modules(PC_FLANN flann)
+set(FLANN_DEFINITIONS ${PC_FLANN_CFLAGS_OTHER})
+
+find_path(FLANN_INCLUDE_DIR flann/flann.hpp
+ HINTS ${PC_FLANN_INCLUDEDIR} ${PC_FLANN_INCLUDE_DIRS})
+
+find_library(FLANN_LIBRARY flann_cpp
+ HINTS ${PC_FLANN_LIBDIR} ${PC_FLANN_LIBRARY_DIRS})
+
+set(FLANN_INCLUDE_DIRS ${FLANN_INCLUDE_DIR})
+set(FLANN_LIBRARIES ${FLANN_LIBRARY})
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(Flann DEFAULT_MSG
+ FLANN_LIBRARY FLANN_INCLUDE_DIR)
+
+mark_as_advanced(FLANN_LIBRARY FLANN_INCLUDE_DIR)
+