From f3dc43c00396740b401ba18c57d5d5e64fb3f0ea Mon Sep 17 00:00:00 2001 From: resserops Date: Mon, 11 May 2026 18:55:01 +0800 Subject: [PATCH] build: add glob as git submodule --- .gitmodules | 3 +++ third_party/cmake/glob.cmake | 7 +++++++ third_party/glob | 1 + 3 files changed, 11 insertions(+) create mode 100644 third_party/cmake/glob.cmake create mode 160000 third_party/glob diff --git a/.gitmodules b/.gitmodules index d6f4366..6e1ca9c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,3 +10,6 @@ [submodule "third_party/scnlib"] path = third_party/scnlib url = https://github.com/eliaskosunen/scnlib.git +[submodule "third_party/glob"] + path = third_party/glob + url = https://github.com/p-ranav/glob.git diff --git a/third_party/cmake/glob.cmake b/third_party/cmake/glob.cmake new file mode 100644 index 0000000..5abee54 --- /dev/null +++ b/third_party/cmake/glob.cmake @@ -0,0 +1,7 @@ +# glob-0.0.1 (46fb9fc9) +set(lib_dir ${oops_3rd_dir}/glob) +if(NOT EXISTS "${lib_dir}/CMakeLists.txt") + execute_process(COMMAND git submodule update --init --recursive ${lib_dir}) +endif() + +add_subdirectory(${lib_dir}) diff --git a/third_party/glob b/third_party/glob new file mode 160000 index 0000000..46fb9fc --- /dev/null +++ b/third_party/glob @@ -0,0 +1 @@ +Subproject commit 46fb9fc92d2fd8b41f536b2ccb371a6ea212e606