Skip to content

Instantly share code, notes, and snippets.

@yuya-oc
Created July 18, 2012 17:54
Show Gist options
  • Save yuya-oc/3137740 to your computer and use it in GitHub Desktop.
Save yuya-oc/3137740 to your computer and use it in GitHub Desktop.
Bullet with cmake
cmake_minimum_required(VERSION 2.8)
project(bullet-sample)
include(FindPkgConfig)
pkg_check_modules(Bullet REQUIRED bullet)
if(Bullet_FOUND)
message("bullet is found:")
message(" Bullet_INCLUDE_DIRS= ${Bullet_INCLUDE_DIRS}")
message(" Bullet_LIBRARIES= ${Bullet_LIBRARIES}")
message(" Bullet_LIBRARY_DIRS= ${Bullet_LIBRARY_DIRS}")
link_directories(${Bullet_LIBRARY_DIRS})
include_directories(${Bullet_INCLUDE_DIRS})
else()
message("Bullet is NOT found")
endif()
add_executable(bullet-sample
main.cpp
)
target_link_libraries(bullet-sample ${Bullet_LIBRARIES})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment