C++17/Qt6 application for disk recovery, repair, flashing, formatting, and USB security key creation on Windows. Includes CMake build system, tabbed UI shell with 6 main tabs, core type system with Result<T> monadic error handling, admin elevation, and dark Catppuccin theme.
14 lines
360 B
CMake
14 lines
360 B
CMake
# Compiler warning settings for MSVC and GCC/Clang
|
|
if(MSVC)
|
|
add_compile_options(/W4 /permissive- /utf-8)
|
|
# Treat warnings as errors in CI builds
|
|
if(DEFINED ENV{CI})
|
|
add_compile_options(/WX)
|
|
endif()
|
|
else()
|
|
add_compile_options(-Wall -Wextra -Wpedantic)
|
|
if(DEFINED ENV{CI})
|
|
add_compile_options(-Werror)
|
|
endif()
|
|
endif()
|