liuxiaolong
2021-07-20 58d904a328c0d849769b483e901a0be9426b8209
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
file(GLOB sources "./*.cpp" "../log/*.cpp")
 
set(CMAKE_SHARED_LINKER_FLAGS  ${CMAKE_SHARED_LINKER_FLAGS} "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/exported_symbols")
include_directories(../log)
include_directories(${CMAKE_SOURCE_DIR}/proto)
include_directories(${CMAKE_SOURCE_DIR}/protobuf/include)
 
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)
 
add_library(bhome_shmq SHARED bh_api.cc)
target_link_libraries(bhome_shmq bhcommon)