Cmake support for openjpeg2

With some tweaks from Albert
2 files changed