cmake_minimum_required(VERSION 3.20)
project(LanoarcUpdate LANGUAGES CXX RC)
add_executable(LanoarcUpdate WIN32 main.cpp "${BOOTSTRAP_RESOURCE}")
target_compile_features(LanoarcUpdate PRIVATE cxx_std_17)
target_compile_options(LanoarcUpdate PRIVATE /utf-8 /W4 /EHsc)
set_property(TARGET LanoarcUpdate PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
target_link_libraries(LanoarcUpdate PRIVATE shell32 ole32 bcrypt advapi32 userenv)
target_link_options(LanoarcUpdate PRIVATE "/MANIFESTUAC:level='asInvoker' uiAccess='false'")
add_executable(BootstrapTests tests.cpp)
target_compile_features(BootstrapTests PRIVATE cxx_std_17)
target_compile_options(BootstrapTests PRIVATE /utf-8 /W4 /EHsc /UNDEBUG)
set_property(TARGET BootstrapTests PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
target_link_libraries(BootstrapTests PRIVATE shell32 ole32 bcrypt advapi32 userenv)
