mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-23 03:58:59 +00:00
db8aa64d2f
Properly define MEM_USE_RTL definition only for mem library. Link other dependant modules with mem.
24 lines
433 B
CMake
24 lines
433 B
CMake
set(CPPS
|
|
debug.cpp
|
|
$<$<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
|
|
)
|
|
target_link_libraries(ddebug PRIVATE
|
|
mem
|
|
)
|