Jack·Boos·Yu 657d66a6cb
[libraw] Re-fix non-thread-safe library installation, always export pkgconfig files, add usage (#19593)
* [libraw] Re-fix non-thread-safe library installation, always export pkgconfig files, add usage

* format manifest and version

* Update ports/libraw/portfile.cmake

* Update ports/libraw/portfile.cmake

* Update ports/libraw/portfile.cmake

* update version

* version

* Fix wrapper and usage

* version

* apply suggestions

* version

* Fix cmake install path

* version

* Fix usage

* version
2021-10-18 14:22:23 -07:00

12 lines
564 B
Plaintext

The package libraw is compatible with built-in CMake targets:
find_package(LibRaw REQUIRED)
# For non-thread-safe version
target_compile_definitions(main PRIVATE ${LibRaw_DEFINITIONS})
target_include_directories(main PRIVATE ${LibRaw_INCLUDE_DIR})
target_link_libraries(main PRIVATE ${LibRaw_LIBRARIES})
# For thread-safe version
target_compile_definitions(main PRIVATE ${LibRaw_r_DEFINITIONS})
target_include_directories(main PRIVATE ${LibRaw_INCLUDE_DIR})
target_link_libraries(main PRIVATE ${LibRaw_r_LIBRARIES})