-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libjpeg-turbo] Update usage (#31071)
Co-authored-by: Billy Robert O'Neal III <[email protected]>
- Loading branch information
1 parent
5824411
commit 017bd3f
Showing
4 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
The package libjpeg-turbo is compatible with built-in CMake targets: | ||
libjpeg-turbo is compatible with built-in implementation-agnostic CMake targets: | ||
|
||
find_package(JPEG REQUIRED) | ||
target_link_libraries(main PRIVATE ${JPEG_LIBRARIES}) | ||
target_include_directories(main PRIVATE ${JPEG_INCLUDE_DIR}) | ||
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 libjpeg-turbo::turbojpeg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters