light/tools/cmake/preliminary.cmake

11 lines
239 B
CMake
Raw Normal View History

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()