mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-18 20:50:09 +08:00
13 lines
334 B
CMake
13 lines
334 B
CMake
# Release
|
|
set(NKR_VERSION "$ENV{INPUT_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()
|