Add logging switches to cmake

This commit is contained in:
BlackMark committed 2020-07-05 11:38:48 +02:00
1 parent 564e5798a5
commit fb37433057
2 files changed
+11

No files matched your search

+8
View File
@@ -12,3 +12,11 @@ function(adaptive_brightness_enable_warnings target)
target_compile_options(${target} PRIVATE /W3)
endif()
endfunction()
function(adaptive_brightness_enable_source_file_log target)
target_compile_definitions(${target} PUBLIC LOG_SOURCE_LOCATION)
endfunction()
function(adaptive_brightness_enable_function_name_log target)
target_compile_definitions(${target} PUBLIC LOG_FUNCTION_LOCATION)
endfunction()