From eb1805b9b5124d01320c4395a7cced6bc9cb2ced Mon Sep 17 00:00:00 2001 From: Paul Baksic Date: Fri, 20 Dec 2024 11:58:08 +0100 Subject: [PATCH] Add way to pull and build Sofa.Qt plugin --- applications/plugins/CMakeLists.txt | 1 + .../plugins/Sofa.Qt/ExternalProjectConfig.cmake.in | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 applications/plugins/Sofa.Qt/ExternalProjectConfig.cmake.in diff --git a/applications/plugins/CMakeLists.txt b/applications/plugins/CMakeLists.txt index cfd74c7f771..aceedfd3d66 100644 --- a/applications/plugins/CMakeLists.txt +++ b/applications/plugins/CMakeLists.txt @@ -53,6 +53,7 @@ sofa_add_subdirectory(plugin CSparseSolvers CSparseSolvers EXTERNAL GIT_REF mast sofa_add_subdirectory(plugin ModelOrderReduction ModelOrderReduction EXTERNAL GIT_REF master) sofa_add_subdirectory(plugin Sofa.Metis Sofa.Metis EXTERNAL GIT_REF master) sofa_add_subdirectory(plugin SofaValidation SofaValidation EXTERNAL GIT_REF master) +sofa_add_subdirectory(plugin Sofa.Qt Sofa.Qt EXTERNAL GIT_REF master) diff --git a/applications/plugins/Sofa.Qt/ExternalProjectConfig.cmake.in b/applications/plugins/Sofa.Qt/ExternalProjectConfig.cmake.in new file mode 100644 index 00000000000..7f6c3d1162f --- /dev/null +++ b/applications/plugins/Sofa.Qt/ExternalProjectConfig.cmake.in @@ -0,0 +1,14 @@ +cmake_minimum_required(VERSION 3.22) + +include(ExternalProject) +ExternalProject_Add(Sofa.Qt + GIT_REPOSITORY https://github.com/sofa-framework/Sofa.Qt + GIT_TAG origin/@ARG_GIT_REF@ + SOURCE_DIR "${CMAKE_SOURCE_DIR}/applications/plugins/Sofa.Qt" + BINARY_DIR "" + CONFIGURE_COMMAND "" + BUILD_COMMAND "" + INSTALL_COMMAND "" + TEST_COMMAND "" + GIT_CONFIG "remote.origin.fetch=+refs/pull/*:refs/remotes/origin/pr/*" +)