aboutsummaryrefslogtreecommitdiff
path: root/CMake/FindPINKINDEXER.cmake
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-03-12 09:48:00 +0100
committerThomas White <taw@physics.org>2018-03-12 10:17:49 +0100
commit753ceccfb4517ae0aa4445c18ae34ca52171f28d (patch)
treea2928d9de6f10813b97363ea401cc72625ed3ce2 /CMake/FindPINKINDEXER.cmake
parent95bb73d90fed58f61dddc0d1d3e8afeb9879daaa (diff)
Add CMake
Diffstat (limited to 'CMake/FindPINKINDEXER.cmake')
-rw-r--r--CMake/FindPINKINDEXER.cmake26
1 files changed, 26 insertions, 0 deletions
diff --git a/CMake/FindPINKINDEXER.cmake b/CMake/FindPINKINDEXER.cmake
new file mode 100644
index 00000000..6a96786e
--- /dev/null
+++ b/CMake/FindPINKINDEXER.cmake
@@ -0,0 +1,26 @@
+# - Find PINKINDEXER
+# Find the native PINKINDEXER includes and library
+#
+# PINKINDEXER_INCLUDES - where to find IndexerBase.h
+# PINKINDEXER_LIBRARIES - List of libraries when using PINKINDEXER.
+# PINKINDEXER_FOUND - True if PINKINDEXER found.
+
+if (PINKINDEXER_INCLUDES)
+ # Already in cache, be silent
+ set (PINKINDEXER_FIND_QUIETLY TRUE)
+endif (PINKINDEXER_INCLUDES)
+
+find_path (PINKINDEXER_INCLUDES pinkIndexer/PinkIndexer.h
+ PATHS
+ ${CMAKE_INSTALL_PREFIX}/include)
+
+find_library (PINKINDEXER_LIBRARIES pinkIndexer
+ PATHS
+ ${CMAKE_INSTALL_PREFIX}/lib)
+
+# handle the QUIETLY and REQUIRED arguments and set PINKINDEXER_FOUND to TRUE if
+# all listed variables are TRUE
+include (FindPackageHandleStandardArgs)
+find_package_handle_standard_args (PINKINDEXER DEFAULT_MSG PINKINDEXER_LIBRARIES PINKINDEXER_INCLUDES)
+
+mark_as_advanced (PINKINDEXER_LIBRARIES PINKINDEXER_INCLUDES)