Descent3/ddebug/CMakeLists.txt
Azamat H. Hackimov 665539dfa6 Move debug functions to own module
This commit is part of efforts to isolate subsystems of project into own modules.
2024-04-30 02:19:20 +03:00

20 lines
376 B
CMake

set(CPPS
$<$<PLATFORM_ID:Darwin,Linux>:
lnxdebug.cpp
lnxmono.cpp
>
$<$<PLATFORM_ID:Windows>:
windebug.cpp
winmono.cpp
>
)
add_library(ddebug STATIC ${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
)