Commit 740412ac authored by Vaastav Anand's avatar Vaastav Anand

Add xtrace + protobuf dependencies to media microservices makefile

parent 7e3d66ca
......@@ -5,9 +5,10 @@ find_package(libmongoc-1.0 1.13 REQUIRED)
find_package(nlohmann_json 3.5.0 REQUIRED)
find_package(Threads)
find_package(OpenSSL REQUIRED)
find_package(Protobuf REQUIRED)
set(Boost_USE_STATIC_LIBS ON)
find_package(Boost 1.54.0 REQUIRED COMPONENTS log log_setup)
find_package(Boost 1.54.0 REQUIRED COMPONENTS system log log_setup)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
......
......@@ -10,6 +10,7 @@ target_include_directories(
${LIBMEMCACHED_INCLUDE_DIR}
${MONGOC_INCLUDE_DIRS}
/usr/local/include/jaegertracing
/usr/local/include/xtrace
)
target_link_libraries(
......@@ -20,9 +21,12 @@ target_link_libraries(
${THRIFT_LIB}
${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES}
Boost::system
Boost::log
Boost::log_setup
jaegertracing
xtrace
protobuf
)
target_compile_definitions (
......
......@@ -12,6 +12,7 @@ target_include_directories(
ComposeReviewService PRIVATE
${LIBMEMCACHED_INCLUDE_DIR}
/usr/local/include/jaegertracing
/usr/local/include/xtrace
)
target_link_libraries(
......@@ -21,9 +22,12 @@ target_link_libraries(
${THRIFT_LIB}
${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES}
Boost::system
Boost::log
Boost::log_setup
jaegertracing
xtrace
protobuf
)
install(TARGETS ComposeReviewService DESTINATION ./)
\ No newline at end of file
......@@ -12,6 +12,7 @@ target_include_directories(
${LIBMEMCACHED_INCLUDE_DIR}
${MONGOC_INCLUDE_DIRS}
/usr/local/include/jaegertracing
/usr/local/include/xtrace
)
target_link_libraries(
......@@ -22,9 +23,12 @@ target_link_libraries(
${THRIFT_LIB}
${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES}
Boost::system
Boost::log
Boost::log_setup
jaegertracing
xtrace
protobuf
)
target_compile_definitions (
......
......@@ -10,6 +10,7 @@ target_include_directories(
${LIBMEMCACHED_INCLUDE_DIR}
${MONGOC_INCLUDE_DIRS}
/usr/local/include/jaegertracing
/usr/local/include/xtrace
)
target_link_libraries(
......@@ -20,9 +21,12 @@ target_link_libraries(
${THRIFT_LIB}
${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES}
Boost::system
Boost::log
Boost::log_setup
jaegertracing
xtrace
protobuf
)
target_compile_definitions (
......
......@@ -11,6 +11,7 @@ target_include_directories(
${MONGOC_INCLUDE_DIRS}
/usr/local/include/jaegertracing
/usr/local/include/cpp_redis
/usr/local/include/xtrace
)
target_link_libraries(
......@@ -19,9 +20,12 @@ target_link_libraries(
nlohmann_json::nlohmann_json
${THRIFT_LIB}
${Boost_LIBRARIES}
Boost::system
Boost::log
Boost::log_setup
jaegertracing
xtrace
protobuf
/usr/local/lib/libcpp_redis.a
/usr/local/lib/libtacopie.a
)
......
......@@ -13,6 +13,7 @@ add_executable(
target_include_directories(
PageService PRIVATE
/usr/local/include/jaegertracing
/usr/local/include/xtrace
)
target_link_libraries(
......@@ -21,9 +22,12 @@ target_link_libraries(
${THRIFT_LIB}
${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES}
Boost::system
Boost::log
Boost::log_setup
jaegertracing
xtrace
protobuf
)
install(TARGETS PageService DESTINATION ./)
\ No newline at end of file
......@@ -10,6 +10,7 @@ target_include_directories(
${LIBMEMCACHED_INCLUDE_DIR}
${MONGOC_INCLUDE_DIRS}
/usr/local/include/jaegertracing
/usr/local/include/xtrace
)
target_link_libraries(
......@@ -20,9 +21,12 @@ target_link_libraries(
${THRIFT_LIB}
${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES}
Boost::system
Boost::log
Boost::log_setup
jaegertracing
xtrace
protobuf
)
target_compile_definitions (
......
......@@ -10,6 +10,7 @@ target_include_directories(
RatingService PRIVATE
/usr/local/include/jaegertracing
/usr/local/include/cpp_redis
/usr/local/include/xtrace
)
target_link_libraries(
......@@ -18,9 +19,12 @@ target_link_libraries(
${THRIFT_LIB}
${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES}
Boost::system
Boost::log
Boost::log_setup
jaegertracing
xtrace
protobuf
/usr/local/lib/libcpp_redis.a
/usr/local/lib/libtacopie.a
)
......
......@@ -10,6 +10,7 @@ target_include_directories(
${LIBMEMCACHED_INCLUDE_DIR}
${MONGOC_INCLUDE_DIRS}
/usr/local/include/jaegertracing
/usr/local/include/xtrace
)
target_link_libraries(
......@@ -20,9 +21,12 @@ target_link_libraries(
${THRIFT_LIB}
${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES}
Boost::system
Boost::log
Boost::log_setup
jaegertracing
xtrace
protobuf
)
install(TARGETS ReviewStorageService DESTINATION ./)
\ No newline at end of file
......@@ -9,6 +9,7 @@ add_executable(
target_include_directories(
TextService PRIVATE
/usr/local/include/jaegertracing
/usr/local/include/xtrace
)
target_link_libraries(
......@@ -17,9 +18,12 @@ target_link_libraries(
${THRIFT_LIB}
${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES}
Boost::system
Boost::log
Boost::log_setup
jaegertracing
xtrace
protobuf
)
install(TARGETS TextService DESTINATION ./)
\ No newline at end of file
......@@ -9,6 +9,7 @@ add_executable(
target_include_directories(
UniqueIdService PRIVATE
/usr/local/include/jaegertracing
/usr/local/include/xtrace
)
target_link_libraries(
......@@ -17,9 +18,12 @@ target_link_libraries(
${THRIFT_LIB}
${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES}
Boost::system
Boost::log
Boost::log_setup
jaegertracing
xtrace
protobuf
)
install(TARGETS UniqueIdService DESTINATION ./)
\ No newline at end of file
......@@ -11,6 +11,7 @@ target_include_directories(
${MONGOC_INCLUDE_DIRS}
/usr/local/include/jaegertracing
/usr/local/include/cpp_redis
/usr/local/include/xtrace
)
target_link_libraries(
......@@ -20,9 +21,12 @@ target_link_libraries(
${THRIFT_LIB}
${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES}
Boost::system
Boost::log
Boost::log_setup
jaegertracing
xtrace
protobuf
/usr/local/lib/libcpp_redis.a
/usr/local/lib/libtacopie.a
)
......
......@@ -13,6 +13,7 @@ target_include_directories(
${MONGOC_INCLUDE_DIRS}
/usr/local/include/jwt
/usr/local/include/jaegertracing
/usr/local/include/xtrace
)
target_link_libraries(
......@@ -23,9 +24,12 @@ target_link_libraries(
${THRIFT_LIB}
${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES}
Boost::system
Boost::log
Boost::log_setup
jaegertracing
xtrace
protobuf
OpenSSL::SSL
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment