mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-01 02:57:53 +00:00
Add install target
This commit is contained in:
@@ -46,6 +46,7 @@ configure_file(
|
||||
)
|
||||
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(include)
|
||||
# Make sure we build googletest before anything else
|
||||
add_dependencies(cppkafka googletest)
|
||||
enable_testing()
|
||||
|
||||
1
include/CMakeLists.txt
Normal file
1
include/CMakeLists.txt
Normal file
@@ -0,0 +1 @@
|
||||
add_subdirectory(cppkafka)
|
||||
7
include/cppkafka/CMakeLists.txt
Normal file
7
include/cppkafka/CMakeLists.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
file(GLOB INCLUDE_FILES "*.h")
|
||||
install(
|
||||
FILES ${INCLUDE_FILES}
|
||||
DESTINATION include/cppkafka
|
||||
COMPONENT Headers
|
||||
)
|
||||
add_subdirectory(zookeeper)
|
||||
6
include/cppkafka/zookeeper/CMakeLists.txt
Normal file
6
include/cppkafka/zookeeper/CMakeLists.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
file(GLOB INCLUDE_FILES "*.h")
|
||||
install(
|
||||
FILES ${INCLUDE_FILES}
|
||||
DESTINATION include/cppkafka/zookeeper
|
||||
COMPONENT Headers
|
||||
)
|
||||
@@ -26,4 +26,11 @@ if (ENABLE_ZOOKEEPER)
|
||||
set(SOURCES ${SOURCES} ${ZOOKEEPER_SOURCES})
|
||||
endif()
|
||||
|
||||
add_library(cppkafka ${SOURCES})
|
||||
add_library(cppkafka ${SOURCES})
|
||||
|
||||
install(
|
||||
TARGETS cppkafka
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
COMPONENT dev
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user