wx is built with png as a dependency, wxpng is disabled.
Make building in release and debug in one cmake run on msvc with the prusaslicer_add_cmake_project function.