aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/evpp/Export-unofficial-target.patch
blob: a7e01846b4311a2c1099112d212179c8f7de77e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7a054b3..fa6da0e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -107,3 +107,22 @@ include (packages)
 
 include (CPack)
 include (CTest)
+
+install(EXPORT evpp-targets
+        FILE unofficial-evpp-targets.cmake
+        NAMESPACE unofficial::evpp::
+        DESTINATION share/unofficial-evpp
+)
+
+file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/unofficial-evpp-config.cmake" [[
+include(CMakeFindDependencyMacro)
+find_dependency(glog CONFIG)
+find_dependency(Libevent CONFIG)
+if(UNIX)
+    set(THREADS_PREFER_PTHREAD_FLAG ON)
+    find_dependency(Threads)
+    find_dependency(unofficial-concurrentqueue)
+endif()
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-evpp-targets.cmake")
+]])
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/unofficial-evpp-config.cmake DESTINATION "share/unofficial-evpp")