Add bullet thirdparty library

This commit is contained in:
Dane Johnson 2021-03-15 17:11:19 -05:00
parent f5cefe650d
commit f1d5672818
3 changed files with 7 additions and 9 deletions

View File

@ -27,7 +27,6 @@ target_include_directories(couchlib
if(WIN32)
target_link_libraries(couch glfw3dll)
target_link_libraries(couch ssp)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
endif(WIN32)
install(TARGETS couch couchlib)

View File

@ -5,9 +5,6 @@ find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
find_package(glfw3 3.3 REQUIRED)
## Find Bullet
find_package(Bullet REQUIRED)
if (LUA_ENABLED)
## Find Lua
find_package(Lua REQUIRED)
@ -81,17 +78,12 @@ target_include_directories(couchlib
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories(couchlib
PUBLIC
${BULLET_INCLUDE_DIRS})
target_link_libraries(couchlib glfw)
target_link_libraries(couchlib OpenGL::GL)
target_link_libraries(couchlib GLEW::GLEW)
if (LUA_ENABLED)
target_link_libraries(couchlib_luascripting ${LUA_LIBRARIES})
endif ()
target_link_libraries(couchlib ${BULLET_LIBRARIES})
## Add documentation
find_package(Doxygen REQUIRED

View File

@ -10,3 +10,10 @@ target_include_directories(couchlib
PUBLIC
assimp/include)
target_link_libraries(couchlib assimp::assimp)
## Bullet
add_subdirectory(bullet)
target_include_directories(couchlib
PUBLIC
bullet/src)
target_link_libraries(couchlib LinearMath Bullet3Common BulletCollision BulletDynamics)