{"action":"created","issue":{"url":"https://api.github.com/repos/bulletphysics/bullet3/issues/321","labels_url":"https://api.github.com/repos/bulletphysics/bullet3/issues/321/labels{/name}","comments_url":"https://api.github.com/repos/bulletphysics/bullet3/issues/321/comments","events_url":"https://api.github.com/repos/bulletphysics/bullet3/issues/321/events","html_url":"https://github.com/bulletphysics/bullet3/issues/321","id":57395460,"number":321,"title":"Allow #include <bullet/LinearMath/...>","user":{"login":"scpeters","id":3650755,"avatar_url":"https://avatars.githubusercontent.com/u/3650755?v=3","gravatar_id":"","url":"https://api.github.com/users/scpeters","html_url":"https://github.com/scpeters","followers_url":"https://api.github.com/users/scpeters/followers","following_url":"https://api.github.com/users/scpeters/following{/other_user}","gists_url":"https://api.github.com/users/scpeters/gists{/gist_id}","starred_url":"https://api.github.com/users/scpeters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scpeters/subscriptions","organizations_url":"https://api.github.com/users/scpeters/orgs","repos_url":"https://api.github.com/users/scpeters/repos","events_url":"https://api.github.com/users/scpeters/events{/privacy}","received_events_url":"https://api.github.com/users/scpeters/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-11T23:41:22Z","updated_at":"2015-02-12T00:40:32Z","closed_at":null,"body":"Currently the bullet header files are installed to `${CMAKE_INSTALL_PREFIX}/include/bullet`, which is good, but the exported include path points to this exact folder, so that users wishing to include bullet files must use the following:\r\n~~~\r\n#include <LinearMath/btVector3.h>\r\n~~~\r\n\r\nIt would be nice to allow the following:\r\n~~~\r\n#include <bullet/LinearMath/btVector3.h>\r\n~~~\r\n\r\nThis helps indicate where header files are coming from (since LinearMath is a pretty generic name) and helps avoid header file name conflicts (however unlikely they may be).\r\n\r\nThis could be fixed by adding an additional `-I` flag to the pkg-config CFLAGS (keeping the existing one for backwards compatibility)."},"comment":{"url":"https://api.github.com/repos/bulletphysics/bullet3/issues/comments/73996164","html_url":"https://github.com/bulletphysics/bullet3/issues/321#issuecomment-73996164","issue_url":"https://api.github.com/repos/bulletphysics/bullet3/issues/321","id":73996164,"user":{"login":"scpeters","id":3650755,"avatar_url":"https://avatars.githubusercontent.com/u/3650755?v=3","gravatar_id":"","url":"https://api.github.com/users/scpeters","html_url":"https://github.com/scpeters","followers_url":"https://api.github.com/users/scpeters/followers","following_url":"https://api.github.com/users/scpeters/following{/other_user}","gists_url":"https://api.github.com/users/scpeters/gists{/gist_id}","starred_url":"https://api.github.com/users/scpeters/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scpeters/subscriptions","organizations_url":"https://api.github.com/users/scpeters/orgs","repos_url":"https://api.github.com/users/scpeters/repos","events_url":"https://api.github.com/users/scpeters/events{/privacy}","received_events_url":"https://api.github.com/users/scpeters/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T00:40:32Z","updated_at":"2015-02-12T00:40:32Z","body":"Sorry that got a little long-winded. Here's the patch I'm thinking of (I can make a pull request):\r\n~~~\r\ndiff --git a/bullet.pc.cmake b/bullet.pc.cmake\r\nindex a504b1f..8b989fa 100644\r\n--- a/bullet.pc.cmake\r\n+++ b/bullet.pc.cmake\r\n@@ -3,4 +3,4 @@ Description: Bullet Continuous Collision Detection and Physics Library\r\n Requires:\r\n Version: @BULLET_VERSION@\r\n Libs: -L@CMAKE_INSTALL_PREFIX@/@LIB_DESTINATION@ -lBulletSoftBody -lBulletDynamics -lBulletCollision -lLinearMath\r\n-Cflags: @BULLET_DOUBLE_DEF@ -I@CMAKE_INSTALL_PREFIX@/@INCLUDE_INSTALL_DIR@\r\n+Cflags: @BULLET_DOUBLE_DEF@ -I@CMAKE_INSTALL_PREFIX@/@INCLUDE_INSTALL_DIR@ -I@CMAKE_INSTALL_PREFIX@/include\r\n~~~\r\n\r\nOne other reference point, here's an example `#include` from gazebo:\r\n~~~\r\n#include <gazebo/physics/physics.hh>\r\n~~~\r\nFor gazebo 5.0, this is installed to the following location:\r\n~~~\r\n/usr/include/gazebo-5.0/gazebo/physics/physics.hh\r\n~~~\r\nwith the following `-I` flag:\r\n~~~\r\n-I/usr/include/gazebo-5.0\r\n~~~"}}