From 8f02d4cc8abcae512f299a8e1a4a5e3b9e61679e Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Sat, 29 Jul 2023 17:15:24 -0400 Subject: [PATCH] cmake init --- .gitmodules | 9 +++++++++ CMakeLists.txt | 2 +- libraries/BLT | 1 + libraries/assimp | 1 + libraries/glfw | 1 + library.cpp | 7 ------- library.h | 6 ------ 7 files changed, 13 insertions(+), 14 deletions(-) create mode 100644 .gitmodules create mode 160000 libraries/BLT create mode 160000 libraries/assimp create mode 160000 libraries/glfw delete mode 100644 library.cpp delete mode 100644 library.h diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..dee4000 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,9 @@ +[submodule "libraries/BLT"] + path = libraries/BLT + url = https://github.com/Tri11Paragon/BLT +[submodule "libraries/glfw"] + path = libraries/glfw + url = https://github.com/glfw/glfw.git +[submodule "libraries/assimp"] + path = libraries/assimp + url = https://github.com/assimp/assimp.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f3ec59..cde406f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ set(OpenGL_GL_PREFERENCE GLVND) find_package(OpenGL) add_subdirectory(libraries/BLT) -add_subdirectory(libraries/glfw/glfw-3.3.8) +add_subdirectory(libraries/glfw) set(OLD_CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE}) set(CMAKE_BUILD_TYPE "Release") diff --git a/libraries/BLT b/libraries/BLT new file mode 160000 index 0000000..0febd6e --- /dev/null +++ b/libraries/BLT @@ -0,0 +1 @@ +Subproject commit 0febd6e8aa29acda9ba825dc1446e8220bc03e94 diff --git a/libraries/assimp b/libraries/assimp new file mode 160000 index 0000000..60989a5 --- /dev/null +++ b/libraries/assimp @@ -0,0 +1 @@ +Subproject commit 60989a598e2eec923612597b1516604b816d404a diff --git a/libraries/glfw b/libraries/glfw new file mode 160000 index 0000000..3eaf125 --- /dev/null +++ b/libraries/glfw @@ -0,0 +1 @@ +Subproject commit 3eaf1255b29fdf5c2895856c7be7d7185ef2b241 diff --git a/library.cpp b/library.cpp deleted file mode 100644 index b9f89d3..0000000 --- a/library.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include "library.h" - -#include - -void hello() { - std::cout << "Hello, World!" << std::endl; -} diff --git a/library.h b/library.h deleted file mode 100644 index ee11c12..0000000 --- a/library.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef BLT_GRAPHICS_LIBRARY_H -#define BLT_GRAPHICS_LIBRARY_H - -void hello(); - -#endif //BLT_GRAPHICS_LIBRARY_H