{"action":"created","issue":{"url":"https://api.github.com/repos/Washington-University/CiftiLib/issues/15","repository_url":"https://api.github.com/repos/Washington-University/CiftiLib","labels_url":"https://api.github.com/repos/Washington-University/CiftiLib/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/Washington-University/CiftiLib/issues/15/comments","events_url":"https://api.github.com/repos/Washington-University/CiftiLib/issues/15/events","html_url":"https://github.com/Washington-University/CiftiLib/issues/15","id":188085410,"number":15,"title":"Add example source code for client-side detection of CiftiLib","user":{"login":"ghisvail","id":1964655,"avatar_url":"https://avatars.githubusercontent.com/u/1964655?v=3","gravatar_id":"","url":"https://api.github.com/users/ghisvail","html_url":"https://github.com/ghisvail","followers_url":"https://api.github.com/users/ghisvail/followers","following_url":"https://api.github.com/users/ghisvail/following{/other_user}","gists_url":"https://api.github.com/users/ghisvail/gists{/gist_id}","starred_url":"https://api.github.com/users/ghisvail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghisvail/subscriptions","organizations_url":"https://api.github.com/users/ghisvail/orgs","repos_url":"https://api.github.com/users/ghisvail/repos","events_url":"https://api.github.com/users/ghisvail/events{/privacy}","received_events_url":"https://api.github.com/users/ghisvail/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-08T19:45:22Z","updated_at":"2016-11-09T22:45:41Z","closed_at":null,"body":"Perhaps something that the description in `README` or `USAGE` is currently lacking is a code example for discovering and using the library from a client project.\r\n\r\nI have used the following snippet in my integration tests:\r\n```cmake\r\nfind_package(PkgConfig)\r\npkg_check_modules(PC_CIFTI REQUIRED CiftiLib)\r\nadd_library(PkgConfig::Cifti INTERFACE IMPORTED)\r\nset_target_properties(PkgConfig::Cifti PROPERTIES\r\n\tINTERFACE_INCLUDE_DIRECTORIES \"${PC_CIFTI_INCLUDE_DIRS}\"\r\n\tINTERFACE_LINK_LIBRARIES \"${PC_CIFTI_LIBRARIES}\"\r\n\tINTERFACE_COMPILE_OPTIONS \"${PC_CIFTI_CFLAGS_OTHER}\")\r\n[...]\r\nadd_executable(myexecutable myexecutable.cxx)\r\ntarget_link_libraries(myexecutable PkgConfig::Cifti)\r\n```\r\n\r\nFeel free to copy or adapt this code if you wish."},"comment":{"url":"https://api.github.com/repos/Washington-University/CiftiLib/issues/comments/259548702","html_url":"https://github.com/Washington-University/CiftiLib/issues/15#issuecomment-259548702","issue_url":"https://api.github.com/repos/Washington-University/CiftiLib/issues/15","id":259548702,"user":{"login":"coalsont","id":1513170,"avatar_url":"https://avatars.githubusercontent.com/u/1513170?v=3","gravatar_id":"","url":"https://api.github.com/users/coalsont","html_url":"https://github.com/coalsont","followers_url":"https://api.github.com/users/coalsont/followers","following_url":"https://api.github.com/users/coalsont/following{/other_user}","gists_url":"https://api.github.com/users/coalsont/gists{/gist_id}","starred_url":"https://api.github.com/users/coalsont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coalsont/subscriptions","organizations_url":"https://api.github.com/users/coalsont/orgs","repos_url":"https://api.github.com/users/coalsont/repos","events_url":"https://api.github.com/users/coalsont/events{/privacy}","received_events_url":"https://api.github.com/users/coalsont/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T22:45:41Z","updated_at":"2016-11-09T22:45:41Z","body":"> whereby CiftiLib::Cifti would be imported from a CiftiLibConfig.cmake\r\n\r\nI looked for how QT5 delivers its cmake module, and it has this unnerving quote:\r\n\r\n> The easiest way to use CMake is to set the CMAKE_PREFIX_PATH environment variable to the install prefix of Qt 5.\r\n\r\nhttp://doc.qt.io/qt-5/cmake-manual.html\r\n\r\nAre they doing it wrong, or is that aimed at custom installs from source?  Where do other libraries deliver their cmake modules when installed via debian?\r\n\r\n> FYI, I should be submitting ciftilib v1.5.1 to Debian very soon.\r\n\r\nCool!"}}
{"actor":{"display_login":"coalsont"}}