Kylin/Universal/CMakeLists.txt
2023-12-25 16:31:42 +08:00

26 lines
787 B
CMake

find_package(Boost REQUIRED COMPONENTS log log_setup program_options)
add_library(Universal
BoostLog.h BoostLog.inl BoostLog.cpp
BufferUtility.h BufferUtility.cpp
DateTime.h DateTime.cpp
FunctionTraits.h
IoContext.h IoContext.cpp
MessageManager.h MessageManager.inl MessageManager.cpp
ProcessUtility.h ProcessUtility.inl ProcessUtility.cpp
Singleton.h
SingletonProcess.h SingletonProcess.cpp
StreamFormat.h StreamFormat.inl StreamFormat.cpp
StringUtility.h StringUtility.cpp
)
cmake_path(GET CMAKE_CURRENT_SOURCE_DIR PARENT_PATH KYLIN_CORE_INCLUDE_PATH)
target_include_directories(Universal
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
INTERFACE ${KYLIN_CORE_INCLUDE_PATH}
)
target_link_libraries(Universal
PUBLIC ${Boost_LIBRARIES}
)