Add cmake support
This commit is contained in:
1 parent
fa5905870d
commit
343f30cdf8
3 files changed
+94
No files matched your search
@@ -0,0 +1,13 @@
|
||||
function(adaptive_brightness_add_compile_flags target)
|
||||
if(MSVC)
|
||||
target_compile_options(${target} PUBLIC /MP)
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
function(adaptive_brightness_enable_warnings target)
|
||||
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang|AppleClang")
|
||||
target_compile_options(${target} PRIVATE -Wall -Wextra -pedantic)
|
||||
elseif(MSVC)
|
||||
target_compile_options(${target} PRIVATE /W3)
|
||||
endif()
|
||||
endfunction()
|
||||
Reference in new issue
Block a user