11 lines
239 B
CMake
11 lines
239 B
CMake
|
macro(add_option option help)
|
||
|
option(${option} ${help})
|
||
|
|
||
|
if(${option})
|
||
|
message(STATUS "${option}: ON")
|
||
|
add_compile_definitions(${option}=1)
|
||
|
else()
|
||
|
message(STATUS "${option}: OFF")
|
||
|
endif()
|
||
|
endmacro()
|