Page MenuHomePhorge

D158.1732441565.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D158.1732441565.diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -91,6 +91,7 @@
endif()
find_package(Olm REQUIRED)
+find_package(vodozemac REQUIRED)
if(libkazv_BUILD_EXAMPLES)
find_package(PkgConfig REQUIRED)
@@ -118,6 +119,10 @@
FILES cmake/libkazvConfig.cmake
DESTINATION ${ConfigPackageLocation})
+install(
+ FILES cmake/Findvodozemac.cmake
+ DESTINATION ${ConfigPackageLocation})
+
# cpr does not install a good config file.
# We use the find module instead.
install(
diff --git a/cmake/Findvodozemac.cmake b/cmake/Findvodozemac.cmake
new file mode 100644
--- /dev/null
+++ b/cmake/Findvodozemac.cmake
@@ -0,0 +1,22 @@
+find_path(vodozemac_INCLUDE_DIR
+ NAMES vodozemac.h
+)
+find_library(vodozemac_LIBRARY
+ NAMES vodozemac
+)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(vodozemac
+ FOUND_VAR vodozemac_FOUND
+ REQUIRED_VARS
+ vodozemac_LIBRARY
+ vodozemac_INCLUDE_DIR
+)
+
+if(vodozemac_FOUND AND NOT TARGET vodozemac::vodozemac)
+ add_library(vodozemac::vodozemac UNKNOWN IMPORTED)
+ set_target_properties(vodozemac::vodozemac PROPERTIES
+ IMPORTED_LOCATION "${vodozemac_LIBRARY}"
+ INTERFACE_INCLUDE_DIRECTORIES "${vodozemac_INCLUDE_DIR}"
+ )
+endif()
diff --git a/cmake/libkazvConfig.cmake b/cmake/libkazvConfig.cmake
--- a/cmake/libkazvConfig.cmake
+++ b/cmake/libkazvConfig.cmake
@@ -5,6 +5,7 @@
find_dependency(Zug)
find_dependency(Lager)
find_dependency(Olm)
+find_dependency(vodozemac)
set(_oldCmakeModulePath ${CMAKE_MODULE_PATH})
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}" ${CMAKE_MODULE_PATH})

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 1:46 AM (10 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39536
Default Alt Text
D158.1732441565.diff (1 KB)

Event Timeline