Browse Source

Add GLFW module

master
C. J. Howard 5 years ago
parent
commit
2d0dfc30b8
Signed by: cjhoward GPG Key ID: 03E1FABA9C3EC195
4 changed files with 21 additions and 1 deletions
  1. +3
    -0
      .gitmodules
  2. +16
    -0
      CMakeLists.txt
  3. +1
    -1
      modules/antkeeper-source
  4. +1
    -0
      modules/glfw

+ 3
- 0
.gitmodules View File

@ -13,3 +13,6 @@
[submodule "modules/SDL2"] [submodule "modules/SDL2"]
path = modules/SDL2 path = modules/SDL2
url = git@cjhoward.org:SDL2.git url = git@cjhoward.org:SDL2.git
[submodule "modules/glfw"]
path = modules/glfw
url = git@cjhoward.org:glfw.git

+ 16
- 0
CMakeLists.txt View File

@ -80,6 +80,22 @@ ExternalProject_Add(SDL2
"-DVIDEO_VULKAN=OFF" "-DVIDEO_VULKAN=OFF"
BUILD_ALWAYS 0) BUILD_ALWAYS 0)
# Build glfw module
ExternalProject_Add(glfw
SOURCE_DIR ${MODULE_SOURCE_DIR}/glfw
BINARY_DIR ${MODULE_BUILD_DIR}/glfw
INSTALL_DIR ${MODULE_INSTALL_DIR}
CMAKE_ARGS
"-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}"
"-DCMAKE_INSTALL_PREFIX=${MODULE_INSTALL_DIR}"
"-DBUILD_SHARED_LIBS=ON"
"-DGLFW_BUILD_EXAMPLES=OFF"
"-DGLFW_BUILD_TESTS=OFF"
"-DGLFW_BUILD_DOCS=OFF"
"-DGLFW_INSTALL=ON"
"-DGLFW_VULKAN_STATIC=OFF"
BUILD_ALWAYS 0)
# Build VMQ module # Build VMQ module
ExternalProject_Add(vmq ExternalProject_Add(vmq
SOURCE_DIR ${MODULE_SOURCE_DIR}/vmq SOURCE_DIR ${MODULE_SOURCE_DIR}/vmq

+ 1
- 1
modules/antkeeper-source

@ -1 +1 @@
Subproject commit d59f0df5b43c33ab932f5da5f9f02b9b7909c586
Subproject commit 8e15f86aef9a90c556c69f1fd5a558acb27527fe

+ 1
- 0
modules/glfw

@ -0,0 +1 @@
Subproject commit 57bf6b2f75e46369e83b6d727541991533b1dc2d

Loading…
Cancel
Save