lichao
2021-05-10 77a6c3512a44dfe6540dde71946e6484fe4f173f
src/CMakeLists.txt
@@ -1,8 +1,14 @@
file(GLOB sources "./*.cpp")
file(GLOB sources "./*.cpp" "../log/*.cpp")
set(Target bhshm)
set(Target bhome_shmq)
set(TargetStatic bhome_shmq_static)
add_library(${Target} ${sources})
include_directories(../log)
add_library(${Target} SHARED ${sources})
add_library(${TargetStatic} STATIC ${sources})
target_link_libraries(${Target} pthread rt)
set(LogLibs "boost_log;boost_log_setup;boost_thread;boost_filesystem")
target_link_libraries(${Target} bhome_msg ${LogLibs} pthread rt)
target_link_libraries(${TargetStatic} bhome_msg_static ${LogLibs} pthread rt)