cmake_minimum_required(VERSION 3.26.0)

if (NB_BUILD_TESTS)
    enable_testing()
    include(GoogleTest)
    
    add_executable(TestWindow
        ./TestWindow.cpp
    )
    target_link_libraries(TestWindow
        NBCore
        NBGraphics
    )

    add_executable(TestImages
        ./testImages.cpp
    )
    target_link_libraries(TestImages
        NBCore
        NBGraphics
        GTest::gtest_main
    )

    gtest_discover_tests(TestImages)

endif()