set(CPPS debug.cpp $<$: lnxdebug.cpp lnxmono.cpp > $<$: windebug.cpp winmono.cpp > ) add_library(ddebug STATIC ${CPPS}) add_dependencies(ddebug get_git_hash) target_include_directories(ddebug PUBLIC $ PRIVATE ${PROJECT_BINARY_DIR}/lib # For d3_version.h ) target_link_libraries(ddebug PRIVATE mem )