cmake_minimum_required(VERSION 3.20)
project(HazeIconTests LANGUAGES CXX RC)
add_executable(HazeIconTests ../test_haze_icon.cpp)
target_compile_features(HazeIconTests PRIVATE cxx_std_20)
if(MSVC)
    target_compile_options(HazeIconTests PRIVATE /UNDEBUG)
endif()
include(../../port/windows-icon.cmake)
haze_local_icon(HazeIconTests)
enable_testing()
add_test(NAME icon_resources COMMAND HazeIconTests)
