Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F113300
D158.1732441565.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D158.1732441565.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 1:46 AM (20 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39536
Default Alt Text
D158.1732441565.diff (1 KB)
Attached To
Mode
D158: Find vodozemac as a dependency
Attached
Detach File
Event Timeline
Log In to Comment