We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5957432 commit 8b5241dCopy full SHA for 8b5241d
clickhouse/CMakeLists.txt
@@ -156,7 +156,7 @@ IF (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
156
ENDIF ()
157
158
159
-INSTALL (TARGETS clickhouse-cpp-lib
+INSTALL (TARGETS clickhouse-cpp-lib EXPORT clickhouse-cpp
160
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
161
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
162
)
@@ -217,3 +217,9 @@ ENDIF ()
217
IF (WIN32 OR MINGW)
218
TARGET_LINK_LIBRARIES (clickhouse-cpp-lib wsock32 ws2_32)
219
220
+
221
+# export installed library
222
+INSTALL (EXPORT clickhouse-cpp
223
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/clickhouse-cpp
224
+ FILE clickhouse-cpp-config.cmake
225
+)
0 commit comments