{"action":"created","issue":{"url":"https://api.github.com/repos/JetBrains/teamcity-cpp/issues/9","labels_url":"https://api.github.com/repos/JetBrains/teamcity-cpp/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/JetBrains/teamcity-cpp/issues/9/comments","events_url":"https://api.github.com/repos/JetBrains/teamcity-cpp/issues/9/events","html_url":"https://github.com/JetBrains/teamcity-cpp/issues/9","id":99914028,"number":9,"title":"Header-only library","user":{"login":"paul-sh","id":296510,"avatar_url":"https://avatars.githubusercontent.com/u/296510?v=3","gravatar_id":"","url":"https://api.github.com/users/paul-sh","html_url":"https://github.com/paul-sh","followers_url":"https://api.github.com/users/paul-sh/followers","following_url":"https://api.github.com/users/paul-sh/following{/other_user}","gists_url":"https://api.github.com/users/paul-sh/gists{/gist_id}","starred_url":"https://api.github.com/users/paul-sh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paul-sh/subscriptions","organizations_url":"https://api.github.com/users/paul-sh/orgs","repos_url":"https://api.github.com/users/paul-sh/repos","events_url":"https://api.github.com/users/paul-sh/events{/privacy}","received_events_url":"https://api.github.com/users/paul-sh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-08-09T17:06:56Z","updated_at":"2015-10-30T10:43:59Z","closed_at":null,"body":"Consider making the library header-only. It would simplify linking it to the test projects."},"comment":{"url":"https://api.github.com/repos/JetBrains/teamcity-cpp/issues/comments/152489935","html_url":"https://github.com/JetBrains/teamcity-cpp/issues/9#issuecomment-152489935","issue_url":"https://api.github.com/repos/JetBrains/teamcity-cpp/issues/9","id":152489935,"user":{"login":"zaufi","id":548715,"avatar_url":"https://avatars.githubusercontent.com/u/548715?v=3","gravatar_id":"","url":"https://api.github.com/users/zaufi","html_url":"https://github.com/zaufi","followers_url":"https://api.github.com/users/zaufi/followers","following_url":"https://api.github.com/users/zaufi/following{/other_user}","gists_url":"https://api.github.com/users/zaufi/gists{/gist_id}","starred_url":"https://api.github.com/users/zaufi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaufi/subscriptions","organizations_url":"https://api.github.com/users/zaufi/orgs","repos_url":"https://api.github.com/users/zaufi/repos","events_url":"https://api.github.com/users/zaufi/events{/privacy}","received_events_url":"https://api.github.com/users/zaufi/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T10:43:59Z","updated_at":"2015-10-30T10:43:59Z","body":"> And header-only library does not automatically exclude CMake...\r\n\r\nsure, it doesn't, but then you need to provide a path to headers installed in your system and add `#include` to some of your sources. The strange part that you need to do that in *particular translation unit*, where the `BOOST_TEST_MODULE` (or `BOOST_AUTO_TEST_MAIN`) has defined. The other strange thing is that *you actually need nothing* from that `#included` header -- I mean usually header files get included for some reason, like to call some function of be able to make an instance of some class... in case of `teamcity_boost.hpp` you need nothing to call or use from it! :-)\r\n\r\nSo, I prefer to let CMake to take care about it and have my sources clean from useless crap..."}}