libjpeg is required when searching it in CMakeLists.txt.