2023-07-21 10:47:31 +08:00
|
|
|
find_package(Boost REQUIRED COMPONENTS log log_setup)
|
|
|
|
|
|
|
|
add_library(Universal
|
|
|
|
BoostLog.h BoostLog.inl BoostLog.cpp
|
2023-07-21 11:21:16 +08:00
|
|
|
IoContext.h IoContext.cpp
|
|
|
|
MessageManager.h MessageManager.inl MessageManager.cpp
|
|
|
|
Singleton.h
|
2023-07-21 10:47:31 +08:00
|
|
|
StreamFormat.h StreamFormat.inl StreamFormat.cpp
|
|
|
|
)
|
|
|
|
|
2023-07-21 11:21:16 +08:00
|
|
|
target_include_directories(Universal
|
|
|
|
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|
|
|
|
|
2023-07-21 10:47:31 +08:00
|
|
|
target_link_libraries(Universal
|
2023-07-21 11:21:16 +08:00
|
|
|
PUBLIC ${Boost_LIBRARIES}
|
2023-07-21 10:47:31 +08:00
|
|
|
)
|