2020-11-11 01:28:45 +08:00
|
|
|
diff --git a/libmariadb/CMakeLists.txt b/libmariadb/CMakeLists.txt
|
2020-11-13 02:22:36 +08:00
|
|
|
index 083a863..d911fa7 100644
|
2020-11-11 01:28:45 +08:00
|
|
|
--- a/libmariadb/CMakeLists.txt
|
|
|
|
+++ b/libmariadb/CMakeLists.txt
|
2020-11-13 02:22:36 +08:00
|
|
|
@@ -457,13 +457,25 @@ ENDIF()
|
|
|
|
|
|
|
|
INSTALL(TARGETS mariadbclient
|
|
|
|
COMPONENT Development
|
|
|
|
+ EXPORT unofficial-libmariadb-targets
|
2020-11-11 01:28:45 +08:00
|
|
|
LIBRARY DESTINATION lib)
|
|
|
|
INSTALL(TARGETS libmariadb
|
|
|
|
COMPONENT SharedLibraries
|
|
|
|
+ EXPORT unofficial-libmariadb-targets
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
ARCHIVE DESTINATION lib)
|
|
|
|
|
|
|
|
+install(EXPORT unofficial-libmariadb-targets DESTINATION share/unofficial-libmariadb)
|
|
|
|
+
|
|
|
|
+file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/unofficial-libmariadb-config.cmake"
|
|
|
|
+[[include(CMakeFindDependencyMacro)
|
|
|
|
+find_dependency(ZLIB)
|
|
|
|
+find_dependency(OpenSSL)
|
|
|
|
+include("${CMAKE_CURRENT_LIST_DIR}/unofficial-libmariadb-targets.cmake")
|
|
|
|
+]])
|
|
|
|
+
|
|
|
|
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/unofficial-libmariadb-config.cmake DESTINATION share/unofficial-libmariadb)
|
|
|
|
|
|
|
|
IF(0)
|
|
|
|
# On Windows, install PDB
|