diff --git a/CMakeLists.txt b/CMakeLists.txt index 774507d..af20343 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,4 +77,7 @@ endif() adaptive_brightness_add_compile_flags(AdaptiveBrightness) adaptive_brightness_enable_warnings(AdaptiveBrightness) +# adaptive_brightness_enable_source_file_log(AdaptiveBrightness) +# adaptive_brightness_enable_function_name_log(AdaptiveBrightness) + set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT AdaptiveBrightness) diff --git a/cmake/compile_flags.cmake b/cmake/compile_flags.cmake index 30b2e8a..1a324aa 100644 --- a/cmake/compile_flags.cmake +++ b/cmake/compile_flags.cmake @@ -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()