mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-06-10 11:59:05 +02:00
Beautify cmake files.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
14
cmake/options.cmake
Normal file
14
cmake/options.cmake
Normal file
@@ -0,0 +1,14 @@
|
||||
macro(configure_bool_option option_name define_name enabled_msg disabled_msg)
|
||||
if(${option_name})
|
||||
if(NOT "${define_name}" STREQUAL "")
|
||||
add_compile_definitions(${define_name}=1)
|
||||
endif()
|
||||
message(STATUS "${enabled_msg}")
|
||||
else()
|
||||
if(NOT "${define_name}" STREQUAL "")
|
||||
add_compile_definitions(${define_name}=0)
|
||||
endif()
|
||||
message(STATUS "${disabled_msg}")
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
Reference in New Issue
Block a user