jim wang ad5baff2b6
[libjpeg-turbo] Fix usage of libjpeg-turbo (#33459)
* Generate Imath.pc

* update version

* add dependency imath minizip-ng

* updata version

* update version

* fix usage

* update version
2023-08-31 12:54:40 -07:00

10 lines
436 B
Plaintext

libjpeg-turbo is compatible with built-in implementation-agnostic CMake targets:
find_package(JPEG REQUIRED)
target_include_directories(main PRIVATE JPEG::JPEG)
libjpeg-turbo provides CMake targets for the TurboJPEG C API:
find_package(libjpeg-turbo CONFIG REQUIRED)
target_link_libraries(main PRIVATE $<IF:$<TARGET_EXISTS:libjpeg-turbo::turbojpeg>,libjpeg-turbo::turbojpeg,libjpeg-turbo::turbojpeg-static>)