|
@@ -30,10 +30,9 @@ if(build_kafka)
|
|
|
find_package(RDKafka REQUIRED)
|
|
|
include_directories(${RDKAFKA_INCLUDE_DIR})
|
|
|
list(APPEND 3RDPARTY_LIBS ${RDKAFKA_LIBRARIES})
|
|
|
- link_directories(${RDKAFKA_LINK_DIR})
|
|
|
- message(STATUS "RDKafka include: ${RDKAFKA_INCLUDE_DIR}")
|
|
|
- message(STATUS "RDKafka libraries: ${RDKAFKA_LIBRARIES}")
|
|
|
- message(STATUS "RDKafka link dir: ${RDKAFKA_LINK_DIR}")
|
|
|
+ #link_directories(${RDKAFKA_LINK_DIR})
|
|
|
+ message(STATUS "Source: RDKafka include: ${RDKAFKA_INCLUDE_DIR}")
|
|
|
+ message(STATUS "Source: RDKafka libraries: ${RDKAFKA_LIBRARIES}")
|
|
|
endif()
|
|
|
|
|
|
set(ENABLE_MYSQL ON CACHE BOOL "enable mysql")
|
|
@@ -52,12 +51,11 @@ set(CMAKE_MODULE_PATH ${CNSTREAM_ROOT_DIR}/cmake/sanitizers ${CNSTREAM_ROOT_DIR}
|
|
|
|
|
|
# ---[ ZLToolKit
|
|
|
find_package(ZLToolKit REQUIRED)
|
|
|
-link_directories(${ZLTOOLKIT_LINK_DIR})
|
|
|
+#link_directories(${ZLTOOLKIT_LINK_DIR})
|
|
|
include_directories(${ZLTOOLKIT_INCLUDE_DIR})
|
|
|
list(APPEND 3RDPARTY_LIBS ${ZLTOOLKIT_LIBRARIES})
|
|
|
-message(STATUS "ZLToolKit include: ${ZLTOOLKIT_INCLUDE_DIR}")
|
|
|
-message(STATUS "ZLToolKit libraries: ${ZLTOOLKIT_LIBRARIES}")
|
|
|
-message(STATUS "ZLToolKit link dir: ${ZLTOOLKIT_LINK_DIR}")
|
|
|
+message(STATUS "Source: ZLToolKit include: ${ZLTOOLKIT_INCLUDE_DIR}")
|
|
|
+message(STATUS "Source: ZLToolKit libraries: ${ZLTOOLKIT_LIBRARIES}")
|
|
|
|
|
|
# ---[ rapidjson
|
|
|
include_directories(${CNSTREAM_ROOT_DIR}/3rdparty/)
|
|
@@ -90,4 +88,4 @@ aux_source_directory(${CNSTREAM_ROOT_DIR}/source/UserApp/src userApps)
|
|
|
# set(EXECUTABLE_OUTPUT_PATH ${SOURCE_ROOT_DIR}/bin)
|
|
|
|
|
|
add_executable(gsd ${srcs} ${userApps} ${3RDPARTY_LIBS})
|
|
|
-target_link_libraries(gsd gsd_core gsd_modules gsd_plugins pthread dl)
|
|
|
+target_link_libraries(gsd gsd_core gsd_modules gsd_plugins ${3RDPARTY_LIBS} pthread dl)
|