GLAD & GLFW linking

pull/2/head
E. Almqvist 2 years ago
parent 03a838b659
commit 05b3e7bcc6
  1. 3
      .gitmodules
  2. 11
      CMakeLists.txt
  3. 1
      lib/glad
  4. 1833
      src/glad.c

3
.gitmodules vendored

@ -1,3 +1,6 @@
[submodule "lib/glfw"]
path = lib/glfw
url = https://github.com/glfw/glfw.git
[submodule "lib/glad"]
path = lib/glad
url = https://github.com/Dav1dde/glad.git

@ -5,10 +5,19 @@ project(Hohmann VERSION 1.0)
set(SOURCES src/main.cpp)
add_executable(Hohmann ${SOURCES})
# Includes
set(LIB_INCLUDE_DIRS include/glad/ include/GLFW/ include/KHR/)
include_directories(${LIB_INCLUDE_DIRS})
# GLFW submodule
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
add_subdirectory(lib/glfw)
target_link_libraries(Hohmann glfw)
# GLAD
add_subdirectory(lib/glad)
# Linking
target_link_libraries(Hohmann PRIVATE glfw glad)

@ -0,0 +1 @@
Subproject commit ea756f7cc5e11dcef3cafdab87d45b3b528c875d

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save