Descent3/ddebug/CMakeLists.txt

36 lines
583 B
CMake
Raw Permalink Normal View History

set(HEADERS
debug.h
2024-09-22 23:03:42 +00:00
mono.h
2024-09-23 00:16:07 +00:00
pserror.h
2024-09-22 23:03:42 +00:00
)
set(CPPS
2024-09-22 23:03:42 +00:00
debug.cpp
2024-09-23 00:16:07 +00:00
error.cpp
2024-08-20 14:03:24 +00:00
$<$<PLATFORM_ID:Darwin,Linux,OpenBSD>:
lnxdebug.cpp
lnxmono.cpp
>
$<$<PLATFORM_ID:Windows>:
windebug.cpp
winmono.cpp
>
)
add_library(ddebug STATIC ${HEADERS} ${CPPS})
add_dependencies(ddebug get_git_hash)
target_include_directories(ddebug PUBLIC
$<BUILD_INTERFACE:
${PROJECT_SOURCE_DIR}/ddebug
>
PRIVATE ${PROJECT_BINARY_DIR}/lib # For d3_version.h
)
target_link_libraries(ddebug PRIVATE
$<$<PLATFORM_ID:Windows>:
2024-09-22 23:03:42 +00:00
mem
misc
>
PUBLIC
SDL2::SDL2
logger
)