mirror of https://github.com/microsoft/vcpkg.git
28 lines
848 B
Diff
28 lines
848 B
Diff
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")
|