{"action":"created","comment":{"url":"https://api.github.com/repos/ruslo/hunter/pulls/comments/119999352","pull_request_review_id":41931838,"id":119999352,"diff_hunk":"@@ -0,0 +1,19 @@\n+cmake_minimum_required(VERSION 3.0)\n+\n+# Emulate HunterGate:\n+# * https://github.com/hunter-packages/gate\n+include(\"../common.cmake\")\n+\n+project(download-Leptonica)\n+\n+# download Leptonica\n+hunter_add_package(Leptonica)\n+find_package(Leptonica CONFIG REQUIRED)\n+add_executable(example example.c)\n+\n+include_directories(${Leptonica_INCLUDE_DIRS})\n+target_link_libraries(example ${Leptonica_LIBRARIES})","path":"examples/Leptonica/CMakeLists.txt","position":15,"original_position":15,"commit_id":"0e8a1c6a55f554b418132dc0e352449b433df3b9","original_commit_id":"0e8a1c6a55f554b418132dc0e352449b433df3b9","user":{"login":"xsacha","id":61218,"avatar_url":"https://avatars0.githubusercontent.com/u/61218?v=3","gravatar_id":"","url":"https://api.github.com/users/xsacha","html_url":"https://github.com/xsacha","followers_url":"https://api.github.com/users/xsacha/followers","following_url":"https://api.github.com/users/xsacha/following{/other_user}","gists_url":"https://api.github.com/users/xsacha/gists{/gist_id}","starred_url":"https://api.github.com/users/xsacha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xsacha/subscriptions","organizations_url":"https://api.github.com/users/xsacha/orgs","repos_url":"https://api.github.com/users/xsacha/repos","events_url":"https://api.github.com/users/xsacha/events{/privacy}","received_events_url":"https://api.github.com/users/xsacha/received_events","type":"User","site_admin":false},"body":"That target is never created so that won't work.\r\n\r\n> CMake Error at CMakeLists.txt:12 (add_executable):\r\n>   Target \"example\" links to target \"Leptonica::Leptonica\" but the target was\r\n>   not found.  Perhaps a find_package() call is missing for an IMPORTED\r\n>   target, or an ALIAS target is missing?\r\n\r\nShould I be doing something special to create that target on the Leptonica side?","created_at":"2017-06-04T02:46:22Z","updated_at":"2017-06-04T02:46:22Z","html_url":"https://github.com/ruslo/hunter/pull/815#discussion_r119999352","pull_request_url":"https://api.github.com/repos/ruslo/hunter/pulls/815","_links":{"self":{"href":"https://api.github.com/repos/ruslo/hunter/pulls/comments/119999352"},"html":{"href":"https://github.com/ruslo/hunter/pull/815#discussion_r119999352"},"pull_request":{"href":"https://api.github.com/repos/ruslo/hunter/pulls/815"}}},"pull_request":{"url":"https://api.github.com/repos/ruslo/hunter/pulls/815","id":123633564,"html_url":"https://github.com/ruslo/hunter/pull/815","diff_url":"https://github.com/ruslo/hunter/pull/815.diff","patch_url":"https://github.com/ruslo/hunter/pull/815.patch","issue_url":"https://api.github.com/repos/ruslo/hunter/issues/815","number":815,"state":"open","locked":false,"title":"WIP: Add Leptonica package and example.","user":{"login":"xsacha","id":61218,"avatar_url":"https://avatars0.githubusercontent.com/u/61218?v=3","gravatar_id":"","url":"https://api.github.com/users/xsacha","html_url":"https://github.com/xsacha","followers_url":"https://api.github.com/users/xsacha/followers","following_url":"https://api.github.com/users/xsacha/following{/other_user}","gists_url":"https://api.github.com/users/xsacha/gists{/gist_id}","starred_url":"https://api.github.com/users/xsacha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xsacha/subscriptions","organizations_url":"https://api.github.com/users/xsacha/orgs","repos_url":"https://api.github.com/users/xsacha/repos","events_url":"https://api.github.com/users/xsacha/events{/privacy}","received_events_url":"https://api.github.com/users/xsacha/received_events","type":"User","site_admin":false},"body":"Work in progress. Awaiting hunter-packages update.","created_at":"2017-06-02T03:09:08Z","updated_at":"2017-06-04T02:46:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f01b2ae9ad511ee322f9a89ee9093e2af525c697","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ruslo/hunter/pulls/815/commits","review_comments_url":"https://api.github.com/repos/ruslo/hunter/pulls/815/comments","review_comment_url":"https://api.github.com/repos/ruslo/hunter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ruslo/hunter/issues/815/comments","statuses_url":"https://api.github.com/repos/ruslo/hunter/statuses/0e8a1c6a55f554b418132dc0e352449b433df3b9","head":{"label":"xsacha:lept","ref":"lept","sha":"0e8a1c6a55f554b418132dc0e352449b433df3b9","user":{"login":"xsacha","id":61218,"avatar_url":"https://avatars0.githubusercontent.com/u/61218?v=3","gravatar_id":"","url":"https://api.github.com/users/xsacha","html_url":"https://github.com/xsacha","followers_url":"https://api.github.com/users/xsacha/followers","following_url":"https://api.github.com/users/xsacha/following{/other_user}","gists_url":"https://api.github.com/users/xsacha/gists{/gist_id}","starred_url":"https://api.github.com/users/xsacha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xsacha/subscriptions","organizations_url":"https://api.github.com/users/xsacha/orgs","repos_url":"https://api.github.com/users/xsacha/repos","events_url":"https://api.github.com/users/xsacha/events{/privacy}","received_events_url":"https://api.github.com/users/xsacha/received_events","type":"User","site_admin":false},"repo":{"id":65790541,"name":"hunter","full_name":"xsacha/hunter","owner":{"login":"xsacha","id":61218,"avatar_url":"https://avatars0.githubusercontent.com/u/61218?v=3","gravatar_id":"","url":"https://api.github.com/users/xsacha","html_url":"https://github.com/xsacha","followers_url":"https://api.github.com/users/xsacha/followers","following_url":"https://api.github.com/users/xsacha/following{/other_user}","gists_url":"https://api.github.com/users/xsacha/gists{/gist_id}","starred_url":"https://api.github.com/users/xsacha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xsacha/subscriptions","organizations_url":"https://api.github.com/users/xsacha/orgs","repos_url":"https://api.github.com/users/xsacha/repos","events_url":"https://api.github.com/users/xsacha/events{/privacy}","received_events_url":"https://api.github.com/users/xsacha/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xsacha/hunter","description":":package: CMake-driven cross-platform package manager for C++. Linux, Mac, Windows, iOS, Android, Raspberry Pi.","fork":true,"url":"https://api.github.com/repos/xsacha/hunter","forks_url":"https://api.github.com/repos/xsacha/hunter/forks","keys_url":"https://api.github.com/repos/xsacha/hunter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xsacha/hunter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xsacha/hunter/teams","hooks_url":"https://api.github.com/repos/xsacha/hunter/hooks","issue_events_url":"https://api.github.com/repos/xsacha/hunter/issues/events{/number}","events_url":"https://api.github.com/repos/xsacha/hunter/events","assignees_url":"https://api.github.com/repos/xsacha/hunter/assignees{/user}","branches_url":"https://api.github.com/repos/xsacha/hunter/branches{/branch}","tags_url":"https://api.github.com/repos/xsacha/hunter/tags","blobs_url":"https://api.github.com/repos/xsacha/hunter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xsacha/hunter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xsacha/hunter/git/refs{/sha}","trees_url":"https://api.github.com/repos/xsacha/hunter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xsacha/hunter/statuses/{sha}","languages_url":"https://api.github.com/repos/xsacha/hunter/languages","stargazers_url":"https://api.github.com/repos/xsacha/hunter/stargazers","contributors_url":"https://api.github.com/repos/xsacha/hunter/contributors","subscribers_url":"https://api.github.com/repos/xsacha/hunter/subscribers","subscription_url":"https://api.github.com/repos/xsacha/hunter/subscription","commits_url":"https://api.github.com/repos/xsacha/hunter/commits{/sha}","git_commits_url":"https://api.github.com/repos/xsacha/hunter/git/commits{/sha}","comments_url":"https://api.github.com/repos/xsacha/hunter/comments{/number}","issue_comment_url":"https://api.github.com/repos/xsacha/hunter/issues/comments{/number}","contents_url":"https://api.github.com/repos/xsacha/hunter/contents/{+path}","compare_url":"https://api.github.com/repos/xsacha/hunter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xsacha/hunter/merges","archive_url":"https://api.github.com/repos/xsacha/hunter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xsacha/hunter/downloads","issues_url":"https://api.github.com/repos/xsacha/hunter/issues{/number}","pulls_url":"https://api.github.com/repos/xsacha/hunter/pulls{/number}","milestones_url":"https://api.github.com/repos/xsacha/hunter/milestones{/number}","notifications_url":"https://api.github.com/repos/xsacha/hunter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xsacha/hunter/labels{/name}","releases_url":"https://api.github.com/repos/xsacha/hunter/releases{/id}","deployments_url":"https://api.github.com/repos/xsacha/hunter/deployments","created_at":"2016-08-16T05:38:29Z","updated_at":"2016-08-16T05:38:31Z","pushed_at":"2017-06-02T03:08:22Z","git_url":"git://github.com/xsacha/hunter.git","ssh_url":"git@github.com:xsacha/hunter.git","clone_url":"https://github.com/xsacha/hunter.git","svn_url":"https://github.com/xsacha/hunter","homepage":"http://goo.gl/wiAG","size":3577,"stargazers_count":0,"watchers_count":0,"language":"CMake","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ruslo:master","ref":"master","sha":"a4e16e4386b03ef0d5ba15487a786b0c6b1a721e","user":{"login":"ruslo","id":4346993,"avatar_url":"https://avatars1.githubusercontent.com/u/4346993?v=3","gravatar_id":"","url":"https://api.github.com/users/ruslo","html_url":"https://github.com/ruslo","followers_url":"https://api.github.com/users/ruslo/followers","following_url":"https://api.github.com/users/ruslo/following{/other_user}","gists_url":"https://api.github.com/users/ruslo/gists{/gist_id}","starred_url":"https://api.github.com/users/ruslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruslo/subscriptions","organizations_url":"https://api.github.com/users/ruslo/orgs","repos_url":"https://api.github.com/users/ruslo/repos","events_url":"https://api.github.com/users/ruslo/events{/privacy}","received_events_url":"https://api.github.com/users/ruslo/received_events","type":"User","site_admin":false},"repo":{"id":14202056,"name":"hunter","full_name":"ruslo/hunter","owner":{"login":"ruslo","id":4346993,"avatar_url":"https://avatars1.githubusercontent.com/u/4346993?v=3","gravatar_id":"","url":"https://api.github.com/users/ruslo","html_url":"https://github.com/ruslo","followers_url":"https://api.github.com/users/ruslo/followers","following_url":"https://api.github.com/users/ruslo/following{/other_user}","gists_url":"https://api.github.com/users/ruslo/gists{/gist_id}","starred_url":"https://api.github.com/users/ruslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruslo/subscriptions","organizations_url":"https://api.github.com/users/ruslo/orgs","repos_url":"https://api.github.com/users/ruslo/repos","events_url":"https://api.github.com/users/ruslo/events{/privacy}","received_events_url":"https://api.github.com/users/ruslo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ruslo/hunter","description":":package: CMake-driven cross-platform package manager for C++. Linux, Mac, Windows, iOS, Android, Raspberry Pi.","fork":false,"url":"https://api.github.com/repos/ruslo/hunter","forks_url":"https://api.github.com/repos/ruslo/hunter/forks","keys_url":"https://api.github.com/repos/ruslo/hunter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ruslo/hunter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ruslo/hunter/teams","hooks_url":"https://api.github.com/repos/ruslo/hunter/hooks","issue_events_url":"https://api.github.com/repos/ruslo/hunter/issues/events{/number}","events_url":"https://api.github.com/repos/ruslo/hunter/events","assignees_url":"https://api.github.com/repos/ruslo/hunter/assignees{/user}","branches_url":"https://api.github.com/repos/ruslo/hunter/branches{/branch}","tags_url":"https://api.github.com/repos/ruslo/hunter/tags","blobs_url":"https://api.github.com/repos/ruslo/hunter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ruslo/hunter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ruslo/hunter/git/refs{/sha}","trees_url":"https://api.github.com/repos/ruslo/hunter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ruslo/hunter/statuses/{sha}","languages_url":"https://api.github.com/repos/ruslo/hunter/languages","stargazers_url":"https://api.github.com/repos/ruslo/hunter/stargazers","contributors_url":"https://api.github.com/repos/ruslo/hunter/contributors","subscribers_url":"https://api.github.com/repos/ruslo/hunter/subscribers","subscription_url":"https://api.github.com/repos/ruslo/hunter/subscription","commits_url":"https://api.github.com/repos/ruslo/hunter/commits{/sha}","git_commits_url":"https://api.github.com/repos/ruslo/hunter/git/commits{/sha}","comments_url":"https://api.github.com/repos/ruslo/hunter/comments{/number}","issue_comment_url":"https://api.github.com/repos/ruslo/hunter/issues/comments{/number}","contents_url":"https://api.github.com/repos/ruslo/hunter/contents/{+path}","compare_url":"https://api.github.com/repos/ruslo/hunter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ruslo/hunter/merges","archive_url":"https://api.github.com/repos/ruslo/hunter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ruslo/hunter/downloads","issues_url":"https://api.github.com/repos/ruslo/hunter/issues{/number}","pulls_url":"https://api.github.com/repos/ruslo/hunter/pulls{/number}","milestones_url":"https://api.github.com/repos/ruslo/hunter/milestones{/number}","notifications_url":"https://api.github.com/repos/ruslo/hunter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ruslo/hunter/labels{/name}","releases_url":"https://api.github.com/repos/ruslo/hunter/releases{/id}","deployments_url":"https://api.github.com/repos/ruslo/hunter/deployments","created_at":"2013-11-07T11:32:19Z","updated_at":"2017-06-02T09:37:49Z","pushed_at":"2017-06-03T16:24:49Z","git_url":"git://github.com/ruslo/hunter.git","ssh_url":"git@github.com:ruslo/hunter.git","clone_url":"https://github.com/ruslo/hunter.git","svn_url":"https://github.com/ruslo/hunter","homepage":"http://goo.gl/wiAG","size":3456,"stargazers_count":750,"watchers_count":750,"language":"CMake","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":154,"mirror_url":null,"open_issues_count":216,"forks":154,"open_issues":216,"watchers":750,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ruslo/hunter/pulls/815"},"html":{"href":"https://github.com/ruslo/hunter/pull/815"},"issue":{"href":"https://api.github.com/repos/ruslo/hunter/issues/815"},"comments":{"href":"https://api.github.com/repos/ruslo/hunter/issues/815/comments"},"review_comments":{"href":"https://api.github.com/repos/ruslo/hunter/pulls/815/comments"},"review_comment":{"href":"https://api.github.com/repos/ruslo/hunter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ruslo/hunter/pulls/815/commits"},"statuses":{"href":"https://api.github.com/repos/ruslo/hunter/statuses/0e8a1c6a55f554b418132dc0e352449b433df3b9"}}}}
{"actor":{"display_login":"xsacha"}}