librdkafka由静态连接改为动态连接

This commit is contained in:
Lu Qiuwen
2018-10-23 14:36:03 +08:00
parent d963a6ccdc
commit e44159a5dc
2 changed files with 22 additions and 18 deletions

View File

@@ -1,11 +1,11 @@
add_library(pangu-http src/pangu_logger.cpp src/pangu_http.cpp src/pattern_replace.cpp src/pangu_web_cache.cpp)
target_link_libraries(pangu-http common http tango-cache-client)
target_link_libraries(pangu-http librdkafka-static ctemplate-static cjson pcre2-static)
target_link_libraries(pangu-http maatframe)
target_link_libraries(pangu-http PUBLIC common http tango-cache-client)
target_link_libraries(pangu-http PUBLIC librdkafka ctemplate-static cjson pcre2-static pthread)
target_link_libraries(pangu-http PUBLIC maatframe)
add_executable(test_pattern_replace src/test_pattern_replace.cpp src/pattern_replace.cpp)
target_link_libraries(test_pattern_replace common gtest pcre2-static)
file(COPY test_data DESTINATION ./)
add_executable(replace_tool src/replace_tool.cpp src/pattern_replace.cpp)
target_link_libraries(replace_tool common pcre2-static)
target_link_libraries(replace_tool common pcre2-static)