boostorg / boostorg/gil

Define CMake target Boost::gil in CMakeLists.txt

Đang mở
#167 5 bình luận 1 reaction 1 người được giao Được @mloskot nhận Xem trên GitHub
config/cmake status/need-feedback status/work-in-progress
Ngôn ngữ chính
C++
Star
199
Fork
171
Merge trung bình
1 ngày 14 giờ
Pull request đã merge (30 ngày)
10

Mô tả

Could you please add a (interface library) cmake target for gil, that specifies the include directory and dependencies.

E.g something like:

add_library(boost_gil INTERFACE)
target_include_directories(boost_gil INTERFACE include)
target_compile_options(boost_gil INTERFACE include ...)
add_library(Boost::gil ALIAS boost_gil)

target_link_libraries(boost_gil INTERFACE
Boost::filesystem
Boost::boost
JPEG::JPEG
PNG::PNG
TIFF::TIFF
)

Cmake targets depending on Boost.Gil (like your examples and test, or a user progam doing a `add_subdirectory(libs/gil)`) could then just use `target_link_libraries( my_exec Boost::gil)` and automatically get all the relevant information like include directory, transitive dependencies and any required compilation flags.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.