From b9fb0de8cb292674d308e54b8b636055c9056fd3 Mon Sep 17 00:00:00 2001 From: Alan Liddell Date: Wed, 3 Jan 2024 12:57:52 -0500 Subject: [PATCH] Switch out three submodules for one (#188) --- .gitmodules | 15 +++------------ acquire-common | 1 + src/CMakeLists.txt | 2 +- src/acquire-core-libs | 1 - tests/CMakeLists.txt | 4 ++-- tests/acquire-driver-common | 1 - tests/acquire-video-runtime | 1 - 7 files changed, 7 insertions(+), 18 deletions(-) create mode 160000 acquire-common delete mode 160000 src/acquire-core-libs delete mode 160000 tests/acquire-driver-common delete mode 160000 tests/acquire-video-runtime diff --git a/.gitmodules b/.gitmodules index a4a0083..7a9f600 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,12 +1,3 @@ -[submodule "tests/acquire-video-runtime"] - path = tests/acquire-video-runtime - url = ../acquire-video-runtime.git - branch = main -[submodule "tests/acquire-driver-common"] - path = tests/acquire-driver-common - url = ../acquire-driver-common.git - branch = main -[submodule "src/acquire-core-libs"] - path = src/acquire-core-libs - url = ../acquire-core-libs.git - branch = main +[submodule "acquire-common"] + path = acquire-common + url = ../acquire-common.git diff --git a/acquire-common b/acquire-common new file mode 160000 index 0000000..ba689ed --- /dev/null +++ b/acquire-common @@ -0,0 +1 @@ +Subproject commit ba689edb5632e397a95d8d100934b7326ab46814 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3136f16..ba73a0d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,5 @@ if (NOT TARGET acquire-core-libs) - add_subdirectory(acquire-core-libs) + add_subdirectory(../acquire-common/acquire-core-libs ${CMAKE_CURRENT_BINARY_DIR}/acquire-core-libs) endif () set(tgt acquire-driver-hdcam) diff --git a/src/acquire-core-libs b/src/acquire-core-libs deleted file mode 160000 index f2dd747..0000000 --- a/src/acquire-core-libs +++ /dev/null @@ -1 +0,0 @@ -Subproject commit f2dd7475b1e2667e0682baf4034b1a4c07196ac9 diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index a510bbe..cfc5f22 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -2,8 +2,8 @@ if(${NOTEST}) message(STATUS "Skipping test targets") else() set(NOTEST "TRUE") - aq_require(acquire-video-runtime) - aq_require(acquire-driver-common) + add_subdirectory(../acquire-common/acquire-driver-common ${CMAKE_CURRENT_BINARY_DIR}/acquire-driver-common) + add_subdirectory(../acquire-common/acquire-video-runtime ${CMAKE_CURRENT_BINARY_DIR}/acquire-video-runtime) set(NOTEST "FALSE") # diff --git a/tests/acquire-driver-common b/tests/acquire-driver-common deleted file mode 160000 index 337f991..0000000 --- a/tests/acquire-driver-common +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 337f991c1672879047fa25117f098e44b8f0cc34 diff --git a/tests/acquire-video-runtime b/tests/acquire-video-runtime deleted file mode 160000 index 8219f5f..0000000 --- a/tests/acquire-video-runtime +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 8219f5fef4d7751c473178cc2479c2e2ad9c053a