Created
July 18, 2012 17:54
-
-
Save yuya-oc/3137740 to your computer and use it in GitHub Desktop.
Bullet with cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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