2025-03-17 18:50:31 +01:00
|
|
|
set(UTILSLIBNAME pixelariumutilslib)
|
|
|
|
|
|
|
|
|
|
set(UTILSLIBSRC
|
2026-02-08 12:09:02 +01:00
|
|
|
include/ILog.hpp
|
|
|
|
|
include/SpdLogger.hpp
|
|
|
|
|
include/PixelariumLogger.hpp
|
|
|
|
|
include/simple_thread_pool.hpp
|
2026-01-23 23:00:35 +00:00
|
|
|
SpdLogger.cpp
|
2026-02-08 12:09:02 +01:00
|
|
|
PixelariumLogger.cpp)
|
2025-03-17 18:50:31 +01:00
|
|
|
|
|
|
|
|
add_library(${UTILSLIBNAME} STATIC ${UTILSLIBSRC})
|
|
|
|
|
|
2026-02-08 12:09:02 +01:00
|
|
|
add_library(pixelarium::lib::utilities_static ALIAS ${UTILSLIBNAME})
|
|
|
|
|
|
2025-03-18 21:22:41 +01:00
|
|
|
# won't work
|
|
|
|
|
# target_compile_options(${UTILSLIBNAME}
|
|
|
|
|
# PRIVATE
|
|
|
|
|
# "$<$<C_COMPILER_ID:MSVC>:/utf-8>"
|
|
|
|
|
# "$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
|
|
|
|
|
|
2025-03-17 18:50:31 +01:00
|
|
|
target_include_directories(${UTILSLIBNAME}
|
2026-02-08 12:09:02 +01:00
|
|
|
INTERFACE
|
|
|
|
|
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include
|
2025-03-17 18:50:31 +01:00
|
|
|
PRIVATE ${spdlog_DIR}/include)
|
|
|
|
|
|
|
|
|
|
target_link_libraries(${UTILSLIBNAME}
|
2026-02-08 12:09:02 +01:00
|
|
|
PUBLIC spdlog::spdlog_header_only)
|