liuxiaolong
2021-07-20 13c503b73b4ecc8ce4a6e344f9ac15202985d686
src/CMakeLists.txt
@@ -1,8 +1,12 @@
file(GLOB sources "./*.cpp")
file(GLOB sources "./*.cpp" "../log/*.cpp")
set(Target bhome_shmq)
set(CMAKE_SHARED_LINKER_FLAGS  ${CMAKE_SHARED_LINKER_FLAGS} "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/exported_symbols")
include_directories(../log)
add_library(${Target} ${sources})
add_library(bhcommon STATIC ${sources})
set(LogLibs "boost_log;boost_log_setup;boost_thread;boost_filesystem")
target_link_libraries(bhcommon bhome_msg ${LogLibs} pthread rt)
target_link_libraries(${Target} bhome_msg pthread rt)
add_library(bhome_shmq SHARED bh_api.cc)
target_link_libraries(bhome_shmq bhcommon)