aboutsummaryrefslogtreecommitdiff
path: root/cmake/OlmConfig.cmake.in
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2018-10-22 11:32:33 -0400
committerGitHub <noreply@github.com>2018-10-22 11:32:33 -0400
commit1aafac2874affafd8c8fc7e3022c6ca6d2d078d6 (patch)
tree60d1d3f8e44d8c0672ad81a9afbb9bc0b27e3966 /cmake/OlmConfig.cmake.in
parent2784e495957ee96c7ce2e44eea77e02085868680 (diff)
parent46f80e71be37b8f98ed03dd8a7fae72b5887a3b4 (diff)
Merge pull request #67 from matrix-org/cmake
CMake support
Diffstat (limited to 'cmake/OlmConfig.cmake.in')
-rw-r--r--cmake/OlmConfig.cmake.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/OlmConfig.cmake.in b/cmake/OlmConfig.cmake.in
new file mode 100644
index 0000000..a7541f7
--- /dev/null
+++ b/cmake/OlmConfig.cmake.in
@@ -0,0 +1,11 @@
+get_filename_component(Olm_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
+include(CMakeFindDependencyMacro)
+
+list(APPEND CMAKE_MODULE_PATH ${Olm_CMAKE_DIR})
+list(REMOVE_AT CMAKE_MODULE_PATH -1)
+
+if(NOT TARGET Olm::olm)
+ include("${Olm_CMAKE_DIR}/OlmTargets.cmake")
+endif()
+
+set(Olm_LIBRARIES Olm::olm)