mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 19:55:23 +00:00
31 lines
540 B
CMake
31 lines
540 B
CMake
set(HEADERS
|
|
debug.h
|
|
debugbreak.h
|
|
mono.h)
|
|
set(CPPS
|
|
debug.cpp
|
|
$<$<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
|
|
mem
|
|
$<$<PLATFORM_ID:Windows>:
|
|
misc
|
|
>
|
|
)
|