Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F112123
D158.1732271821.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
987 B
Referenced Files
None
Subscribers
None
D158.1732271821.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)
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()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 2:37 AM (16 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38805
Default Alt Text
D158.1732271821.diff (987 B)
Attached To
Mode
D158: Find vodozemac as a dependency
Attached
Detach File
Event Timeline
Log In to Comment