Descent3/misc/CMakeLists.txt
Azamat H. Hackimov c6ab519652 Add plog library as logging facility
Added additional cmake option `USE_SYSTEM_PLOG`.
2024-09-10 03:00:23 +03:00

27 lines
376 B
CMake

set(HEADERS
pserror.h
psglob.h
psrand.h
pstring.h)
set(CPPS
error.cpp
psglob.cpp
psrand.cpp
pstring.cpp
)
add_library(misc STATIC ${HEADERS} ${CPPS})
target_link_libraries(misc PRIVATE
ddebug
SDL2::SDL2
)
target_include_directories(misc PUBLIC
$<BUILD_INTERFACE:
${PROJECT_SOURCE_DIR}/misc
>
)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()