diff options
Diffstat (limited to 'src/components/protocol_handler/CMakeLists.txt')
-rw-r--r-- | src/components/protocol_handler/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/protocol_handler/CMakeLists.txt b/src/components/protocol_handler/CMakeLists.txt index c1dd9b2769..139d52fc53 100644 --- a/src/components/protocol_handler/CMakeLists.txt +++ b/src/components/protocol_handler/CMakeLists.txt @@ -35,6 +35,7 @@ include_directories( ${COMPONENTS_DIR}/protocol_handler/include/ ${COMPONENTS_DIR}/connection_handler/include/ ${LOG4CXX_INCLUDE_DIRECTORY} + ${BSON_INCLUDE_DIRECTORY} ) set(PATHS @@ -46,6 +47,8 @@ collect_sources(SOURCES "${PATHS}") set(LIBRARIES ProtocolLibrary Utils + bson -L${BSON_LIBS_DIRECTORY} + emhashmap -L${EMHASHMAP_LIBS_DIRECTORY} ) get_property(dirs DIRECTORY "" PROPERTY LIBRARIES) @@ -55,6 +58,7 @@ endforeach() add_library(ProtocolHandler ${SOURCES}) +add_dependencies(ProtocolHandler install-bson_c_lib) target_link_libraries(ProtocolHandler ${LIBRARIES}) if(BUILD_TESTS) |