cmake_minimum_required(VERSION 3.5) project(jungle) FILE (STRINGS "./deps/bullet3/VERSION" BULLET_VERSION) set(BUILD_BULLET3 ON) #set(BULLET_VERSION 3.26) include_directories(jungle PRIVATE ./deps/bullet3/src/) add_subdirectory(./deps/glfw/) add_subdirectory(./deps/bullet3/src/) add_subdirectory(./deps/glm) ##test target## add_executable(jungle ./test/main.cpp ./deps/glad/src/glad.c) target_include_directories(jungle PRIVATE ./test/) #glfw dep add_dependencies(jungle glfw) target_include_directories(jungle PRIVATE ./deps/glfw/include/ ./deps/glad/include/ ./inc) target_link_libraries(jungle glfw) #bullet dep add_dependencies(jungle Bullet3Common) target_include_directories(jungle PRIVATE ./deps/bullet3/src/) target_link_libraries(jungle Bullet3Common) #glm dep add_dependencies(jungle glm) target_include_directories(jungle PRIVATE ./deps/glm/) target_link_libraries(jungle glm)