mirror of
https://github.com/pineappleEA/pineapple-src.git
synced 2024-12-12 01:28:24 -05:00
12 lines
564 B
Plaintext
Executable File
12 lines
564 B
Plaintext
Executable File
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})
|