JungleOpenSourceProjectDemo.../CMakeLists.txt

35 lines
1.3 KiB
CMake
Raw Normal View History

2024-04-26 22:14:41 +08:00
cmake_minimum_required(VERSION 3.5)
project(jungle)
add_subdirectory(./deps/glfw/)
add_subdirectory(./deps/bullet3/)
add_subdirectory(./deps/glm)
##jungle target##
#add_executable(opengl_test ./src/main.cpp ./src/callbacks.cpp ./src/settings.cpp ./src/window_init.cpp ./deps/glad/src/glad.c)
#glfw dep
#add_dependencies(opengl_test glfw)
#target_include_directories(opengl_test PRIVATE ./deps/glfw/include/ ./deps/glad/include/ ./inc)
#target_link_libraries(opengl_test glfw)
#bullet dep
#add_dependencies(opengl_test BulletDynamics BulletCollision LinearMath)
#target_include_directories(opengl_test PRIVATE ./deps/bullet3/src/)
#target_link_libraries(opengl_test BulletDynamics BulletCollision LinearMath)
##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 BulletDynamics BulletCollision LinearMath)
target_include_directories(jungle PRIVATE ./deps/bullet3/src/)
target_link_libraries(jungle BulletDynamics BulletCollision LinearMath)
#glm dep
add_dependencies(jungle glm)
target_include_directories(jungle PRIVATE ./deps/glm/)
target_link_libraries(jungle glm)