以下をCMakeLists.txt
に追記
find_package(PNG REQUIRED)
include_directories(${PNG_INCLUDE_DIR})
target_link_libraries(RAY ${PNG_LIBRARY})
png_malloc
でエラー...
assigning to 'png_bytepp' (aka 'unsigned char **') from incompatible type 'png_voidp' (aka 'void *')
datap = png_malloc(png, sizeof(png_bytep) * bitmapData->height);
コメントは日本語にしよう🇯🇵 エラーメッセージは英語