{"action":"created","issue":{"url":"https://api.github.com/repos/boostorg/gil/issues/167","repository_url":"https://api.github.com/repos/boostorg/gil","labels_url":"https://api.github.com/repos/boostorg/gil/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/boostorg/gil/issues/167/comments","events_url":"https://api.github.com/repos/boostorg/gil/issues/167/events","html_url":"https://github.com/boostorg/gil/issues/167","id":379747322,"node_id":"MDU6SXNzdWUzNzk3NDczMjI=","number":167,"title":"Define CMake target Boost::gil in CMakeLists.txt","user":{"login":"Mike-Devel","id":43199315,"node_id":"MDQ6VXNlcjQzMTk5MzE1","avatar_url":"https://avatars0.githubusercontent.com/u/43199315?v=4","gravatar_id":"","url":"https://api.github.com/users/Mike-Devel","html_url":"https://github.com/Mike-Devel","followers_url":"https://api.github.com/users/Mike-Devel/followers","following_url":"https://api.github.com/users/Mike-Devel/following{/other_user}","gists_url":"https://api.github.com/users/Mike-Devel/gists{/gist_id}","starred_url":"https://api.github.com/users/Mike-Devel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mike-Devel/subscriptions","organizations_url":"https://api.github.com/users/Mike-Devel/orgs","repos_url":"https://api.github.com/users/Mike-Devel/repos","events_url":"https://api.github.com/users/Mike-Devel/events{/privacy}","received_events_url":"https://api.github.com/users/Mike-Devel/received_events","type":"User","site_admin":false},"labels":[{"id":1124754163,"node_id":"MDU6TGFiZWwxMTI0NzU0MTYz","url":"https://api.github.com/repos/boostorg/gil/labels/config/cmake","name":"config/cmake","color":"001f3f","default":false}],"state":"open","locked":false,"assignee":{"login":"mloskot","id":80741,"node_id":"MDQ6VXNlcjgwNzQx","avatar_url":"https://avatars2.githubusercontent.com/u/80741?v=4","gravatar_id":"","url":"https://api.github.com/users/mloskot","html_url":"https://github.com/mloskot","followers_url":"https://api.github.com/users/mloskot/followers","following_url":"https://api.github.com/users/mloskot/following{/other_user}","gists_url":"https://api.github.com/users/mloskot/gists{/gist_id}","starred_url":"https://api.github.com/users/mloskot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mloskot/subscriptions","organizations_url":"https://api.github.com/users/mloskot/orgs","repos_url":"https://api.github.com/users/mloskot/repos","events_url":"https://api.github.com/users/mloskot/events{/privacy}","received_events_url":"https://api.github.com/users/mloskot/received_events","type":"User","site_admin":false},"assignees":[{"login":"mloskot","id":80741,"node_id":"MDQ6VXNlcjgwNzQx","avatar_url":"https://avatars2.githubusercontent.com/u/80741?v=4","gravatar_id":"","url":"https://api.github.com/users/mloskot","html_url":"https://github.com/mloskot","followers_url":"https://api.github.com/users/mloskot/followers","following_url":"https://api.github.com/users/mloskot/following{/other_user}","gists_url":"https://api.github.com/users/mloskot/gists{/gist_id}","starred_url":"https://api.github.com/users/mloskot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mloskot/subscriptions","organizations_url":"https://api.github.com/users/mloskot/orgs","repos_url":"https://api.github.com/users/mloskot/repos","events_url":"https://api.github.com/users/mloskot/events{/privacy}","received_events_url":"https://api.github.com/users/mloskot/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-11-12T12:05:54Z","updated_at":"2018-12-06T11:42:42Z","closed_at":null,"author_association":"NONE","body":"Could you please add a (interface library) cmake target for gil, that specifies the include directory and dependencies.\r\n\r\nE.g something like:\r\n\r\n    add_library(boost_gil INTERFACE)\r\n    target_include_directories(boost_gil INTERFACE include)  \r\n    target_compile_options(boost_gil INTERFACE include ...) \r\n    add_library(Boost::gil ALIAS boost_gil)\r\n\r\n    target_link_libraries(boost_gil INTERFACE\r\n      Boost::filesystem\r\n      Boost::boost\r\n      JPEG::JPEG\r\n      PNG::PNG\r\n      TIFF::TIFF\r\n    )\r\n\r\nCmake 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.\r\n"},"comment":{"url":"https://api.github.com/repos/boostorg/gil/issues/comments/444844212","html_url":"https://github.com/boostorg/gil/issues/167#issuecomment-444844212","issue_url":"https://api.github.com/repos/boostorg/gil/issues/167","id":444844212,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDg0NDIxMg==","user":{"login":"sdebionne","id":4699120,"node_id":"MDQ6VXNlcjQ2OTkxMjA=","avatar_url":"https://avatars1.githubusercontent.com/u/4699120?v=4","gravatar_id":"","url":"https://api.github.com/users/sdebionne","html_url":"https://github.com/sdebionne","followers_url":"https://api.github.com/users/sdebionne/followers","following_url":"https://api.github.com/users/sdebionne/following{/other_user}","gists_url":"https://api.github.com/users/sdebionne/gists{/gist_id}","starred_url":"https://api.github.com/users/sdebionne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdebionne/subscriptions","organizations_url":"https://api.github.com/users/sdebionne/orgs","repos_url":"https://api.github.com/users/sdebionne/repos","events_url":"https://api.github.com/users/sdebionne/events{/privacy}","received_events_url":"https://api.github.com/users/sdebionne/received_events","type":"User","site_admin":false},"created_at":"2018-12-06T11:42:42Z","updated_at":"2018-12-06T11:42:42Z","author_association":"NONE","body":"GIL being a header only library, I guess `Boost::boost` should be enough? Or are you using Boost.GIL standalone (if that is even possible)?"}}
{"actor":{"display_login":"sdebionne"}}