summaryrefslogtreecommitdiffstats
path: root/cmake/MMConfig.cmake.in
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2019-02-22 23:10:07 +0100
committerNao Pross <naopross@thearcway.org>2019-02-22 23:15:47 +0100
commit50ab88d5d37e2af635997fce7b103f366594c511 (patch)
tree123585c0deabc01c96e0aa180353016844f19396 /cmake/MMConfig.cmake.in
parentUndo directory structure change (diff)
parentFix typos and other minor errors (diff)
downloadlibmm-50ab88d5d37e2af635997fce7b103f366594c511.tar.gz
libmm-50ab88d5d37e2af635997fce7b103f366594c511.zip
Merge branch 'master' into matrices
Diffstat (limited to 'cmake/MMConfig.cmake.in')
-rw-r--r--cmake/MMConfig.cmake.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/cmake/MMConfig.cmake.in b/cmake/MMConfig.cmake.in
new file mode 100644
index 0000000..de91981
--- /dev/null
+++ b/cmake/MMConfig.cmake.in
@@ -0,0 +1,13 @@
+get_filename_component(MM_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+include(CMakeFindDependencyMacro)
+
+list(APPEND CMAKE_MODULE_PATH ${MM_CMAKE_DIR})
+# add dependencies if needed
+# add_dependency()
+list(REMOVE_AT CMAKE_MODULE_PATH -1)
+
+if (NOT TARGET MM::MM)
+ include("${MM_CMAKE_DIR}/MMTargets.cmake")
+endif()
+
+set(MM_LIBRARIES MM::MM)