增加test-addr的MESA_handle_logger依赖

This commit is contained in:
Lu Qiuwen
2018-10-22 15:33:24 +08:00
parent 1cf371708a
commit 0f31b948ba
3 changed files with 4 additions and 4 deletions

View File

@@ -1,11 +1,12 @@
add_library(common src/tfe_utils.cpp src/tfe_types.cpp src/tfe_future.cpp src/tfe_http.cpp src/tfe_plugin.cpp src/tfe_rpc.cpp) add_library(common src/tfe_utils.cpp src/tfe_types.cpp src/tfe_future.cpp src/tfe_http.cpp src/tfe_plugin.cpp src/tfe_rpc.cpp)
target_include_directories(common PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include) target_include_directories(common PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)
target_link_libraries(common MESA_handle_logger libevent-static libevent-static-openssl libevent-static-pthreads) target_link_libraries(common PUBLIC libevent-static libevent-static-openssl libevent-static-pthreads)
target_link_libraries(common PUBLIC MESA_handle_logger)
### UNITTEST CASE ### UNITTEST CASE
add_executable(test-addr test/test_addr.cpp src/tfe_types.cpp src/tfe_utils.cpp) add_executable(test-addr test/test_addr.cpp src/tfe_types.cpp src/tfe_utils.cpp)
target_include_directories(test-addr PRIVATE include) target_include_directories(test-addr PRIVATE include)
target_link_libraries(test-addr gtest) target_link_libraries(test-addr PRIVATE gtest MESA_handle_logger)
include(GoogleTest) include(GoogleTest)
gtest_discover_tests(test-addr) gtest_discover_tests(test-addr)

View File

@@ -285,8 +285,6 @@ int main(int argc, char *argv[])
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
future_promise_library_init(); future_promise_library_init();
tango_cache_global_init(); tango_cache_global_init();

View File

@@ -11,6 +11,7 @@ extern "C"
struct http_plugin struct http_plugin
{ {
}; };
TAILQ_HEAD(hs_private_list, http_session_private); TAILQ_HEAD(hs_private_list, http_session_private);