mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 12:34:37 +03:00
13 lines
341 B
CMake
13 lines
341 B
CMake
# Release
|
|
file(STRINGS nekoray_version.txt NKR_VERSION)
|
|
add_compile_definitions(NKR_VERSION=\"${NKR_VERSION}\")
|
|
|
|
# Debug
|
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DNKR_CPP_DEBUG")
|
|
|
|
# Func
|
|
function(nkr_add_compile_definitions arg)
|
|
message("[add_compile_definitions] ${ARGV}")
|
|
add_compile_definitions(${ARGV})
|
|
endfunction()
|