{"action":"created","issue":{"url":"https://api.github.com/repos/jrl-umi3218/jrl-cmakemodules/issues/56","labels_url":"https://api.github.com/repos/jrl-umi3218/jrl-cmakemodules/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/jrl-umi3218/jrl-cmakemodules/issues/56/comments","events_url":"https://api.github.com/repos/jrl-umi3218/jrl-cmakemodules/issues/56/events","html_url":"https://github.com/jrl-umi3218/jrl-cmakemodules/pull/56","id":92557270,"number":56,"title":"Add a file to generate python swig bindings","user":{"login":"haudren","id":4352562,"avatar_url":"https://avatars.githubusercontent.com/u/4352562?v=3","gravatar_id":"","url":"https://api.github.com/users/haudren","html_url":"https://github.com/haudren","followers_url":"https://api.github.com/users/haudren/followers","following_url":"https://api.github.com/users/haudren/following{/other_user}","gists_url":"https://api.github.com/users/haudren/gists{/gist_id}","starred_url":"https://api.github.com/users/haudren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haudren/subscriptions","organizations_url":"https://api.github.com/users/haudren/orgs","repos_url":"https://api.github.com/users/haudren/repos","events_url":"https://api.github.com/users/haudren/events{/privacy}","received_events_url":"https://api.github.com/users/haudren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-02T06:07:00Z","updated_at":"2015-07-02T06:16:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jrl-umi3218/jrl-cmakemodules/pulls/56","html_url":"https://github.com/jrl-umi3218/jrl-cmakemodules/pull/56","diff_url":"https://github.com/jrl-umi3218/jrl-cmakemodules/pull/56.diff","patch_url":"https://github.com/jrl-umi3218/jrl-cmakemodules/pull/56.patch"},"body":"It adds the files, generates a custom target and compiles it\r\nIt needs more work to support more languages and less configuration.\r\n\r\nFor now, you need to specifiy \"by hand\" the python version... It also relies on a \"hack\" to find all previously defined includes.\r\nBasic usage is as follows :\r\n```cmake\r\nSET(Python_ADDITIONAL_VERSIONS 2.7)\r\nFINDPYTHON()\r\nINCLUDE_DIRECTORIES(SYSTEM ${PYTHON_INCLUDE_DIRS})\r\nADD_SWIG_PYTHON_BINDING(${source} ${directory})\r\nGENERATE_SWIG_BINDINGS()\r\nBUILD_SWIG_BINDINGS(${DEPENDENCIES})\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/jrl-umi3218/jrl-cmakemodules/issues/comments/117922257","html_url":"https://github.com/jrl-umi3218/jrl-cmakemodules/pull/56#issuecomment-117922257","issue_url":"https://api.github.com/repos/jrl-umi3218/jrl-cmakemodules/issues/56","id":117922257,"user":{"login":"florent-lamiraux","id":436546,"avatar_url":"https://avatars.githubusercontent.com/u/436546?v=3","gravatar_id":"","url":"https://api.github.com/users/florent-lamiraux","html_url":"https://github.com/florent-lamiraux","followers_url":"https://api.github.com/users/florent-lamiraux/followers","following_url":"https://api.github.com/users/florent-lamiraux/following{/other_user}","gists_url":"https://api.github.com/users/florent-lamiraux/gists{/gist_id}","starred_url":"https://api.github.com/users/florent-lamiraux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florent-lamiraux/subscriptions","organizations_url":"https://api.github.com/users/florent-lamiraux/orgs","repos_url":"https://api.github.com/users/florent-lamiraux/repos","events_url":"https://api.github.com/users/florent-lamiraux/events{/privacy}","received_events_url":"https://api.github.com/users/florent-lamiraux/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T06:16:02Z","updated_at":"2015-07-02T06:16:02Z","body":"+1: I am not a big fan of swig, but adding a separate file does not hurt."}}