2024-08-09 15:00:30 +00:00
|
|
|
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
|
|
|
)
|
2024-04-27 16:22:29 +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>:
|
2024-04-27 16:22:29 +00:00
|
|
|
lnxdebug.cpp
|
|
|
|
lnxmono.cpp
|
|
|
|
>
|
|
|
|
$<$<PLATFORM_ID:Windows>:
|
|
|
|
windebug.cpp
|
|
|
|
winmono.cpp
|
|
|
|
>
|
|
|
|
)
|
|
|
|
|
2024-08-09 15:00:30 +00:00
|
|
|
add_library(ddebug STATIC ${HEADERS} ${CPPS})
|
2024-04-27 16:22:29 +00:00
|
|
|
add_dependencies(ddebug get_git_hash)
|
|
|
|
target_include_directories(ddebug PUBLIC
|
|
|
|
$<BUILD_INTERFACE:
|
|
|
|
${PROJECT_SOURCE_DIR}/ddebug
|
|
|
|
>
|
2024-04-29 23:19:20 +00:00
|
|
|
PRIVATE ${PROJECT_BINARY_DIR}/lib # For d3_version.h
|
2024-04-27 16:22:29 +00:00
|
|
|
)
|
2024-06-19 21:31:58 +00:00
|
|
|
target_link_libraries(ddebug PRIVATE
|
2024-06-26 21:09:50 +00:00
|
|
|
$<$<PLATFORM_ID:Windows>:
|
2024-09-22 23:03:42 +00:00
|
|
|
mem
|
2024-06-26 21:09:50 +00:00
|
|
|
misc
|
|
|
|
>
|
2024-09-23 01:16:34 +00:00
|
|
|
PUBLIC
|
2024-09-23 14:01:28 +00:00
|
|
|
SDL2::SDL2
|
2024-09-23 01:16:34 +00:00
|
|
|
logger
|
2024-06-19 21:31:58 +00:00
|
|
|
)
|