Skip to content

How to use BulletConfig.cmake and UseBullet.cmake in CMakeLists.txt #4670

Answered by 8Observer8
8Observer8 asked this question in Q&A
Discussion options

You must be logged in to vote

This works:

target_include_directories(app PRIVATE ${BULLET_INCLUDE_DIR})
find_package(Bullet REQUIRED)
find_package(SDL3)
target_link_libraries(app PRIVATE ${BULLET_DYNAMICS_LIBRARY} ${BULLET_COLLISION_LIBRARY} ${BULLET_MATH_LIBRARY} SDL3::SDL3)

config-win.bat

set BULLET_ROOT=E:/libs/bullet3-2.83.7-prefix/win
cmake -G "MinGW Makefiles" -S . -B dist/win -DSDL3_DIR=E:/libs/sdl-3.1.3-prefix/win/lib/cmake/SDL3

build-win.bat

cd dist\win
cmake --build .

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 8Observer8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant