cmake_minimum_required(VERSION 3.16) project(mg-pngimporter-issue VERSION 0.0.1 LANGUAGES CXX) find_package(Corrade REQUIRED) find_package(Magnum REQUIRED GL Sdl2Application) find_package(MagnumPlugins REQUIRED PngImporter) set_directory_properties(PROPERTIES CORRADE_USE_PEDANTIC_FLAGS ON) add_executable(mg-pngimporter-issue src/main.cpp) target_link_libraries(mg-pngimporter-issue PRIVATE Magnum::Magnum Magnum::Application Magnum::GL MagnumPlugins::PngImporter)