From a46ed0e5aede6d07cb474df118cbfae145c52a7d Mon Sep 17 00:00:00 2001 From: Chris Green Date: Mon, 23 Jun 2025 18:11:02 -0500 Subject: [PATCH 1/4] Optionally build with experimental FORM integration --- CMakeLists.txt | 1 + phlex/CMakeLists.txt | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f50e74e6f..f75dff7d8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,7 @@ project( option(ENABLE_TSAN "Enable Thread Sanitizer" OFF) option(ENABLE_ASAN "Enable Address Sanitizer" OFF) +option(PHLEX_USE_FORM "Enable experimental integration with FORM" OFF) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED True) diff --git a/phlex/CMakeLists.txt b/phlex/CMakeLists.txt index 1b9e92eb4..86884333b 100644 --- a/phlex/CMakeLists.txt +++ b/phlex/CMakeLists.txt @@ -5,6 +5,10 @@ add_subdirectory(metaprogramming) add_subdirectory(model) add_subdirectory(utilities) +if (PHLEX_USE_FORM) + add_subdirectory(form) +endif() + # Interface library add_library(phlex_int INTERFACE) target_include_directories( From 9face257efdd6d8e041c20adb590a9bdbe6178ab Mon Sep 17 00:00:00 2001 From: Chris Green Date: Tue, 24 Jun 2025 09:32:11 -0500 Subject: [PATCH 2/4] Initial `CMakeLists.txt` for FORM integration --- form/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 form/CMakeLists.txt diff --git a/form/CMakeLists.txt b/form/CMakeLists.txt new file mode 100644 index 000000000..8f73cd328 --- /dev/null +++ b/form/CMakeLists.txt @@ -0,0 +1,8 @@ +######################################################################## +# FORM integration +# +# Marshal dependencies with find_package() (and reflect in Spack recipe) +# before building code. +# +# Place tests in /test/form. +######################################################################## From ac4c92f10b6f0534d6993a2d39161489726a32c2 Mon Sep 17 00:00:00 2001 From: Chris Green Date: Tue, 24 Jun 2025 09:31:24 -0500 Subject: [PATCH 3/4] Make `add_subdirectory(test)` conditional on BUILD_TESTING --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f75dff7d8..ab1340106 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,4 +86,6 @@ endif () add_subdirectory(phlex) include(CTest) -add_subdirectory(test) +if (BUILD_TESTING) + add_subdirectory(test) +endif() From bec91cf0327266e3e1fa650053040aab6b224f81 Mon Sep 17 00:00:00 2001 From: Chris Green Date: Tue, 24 Jun 2025 09:33:15 -0500 Subject: [PATCH 4/4] Direcotry and initial `CMakeLists.txt` for tests of FORM integration --- test/CMakeLists.txt | 4 ++++ test/form/CMakeLists.txt | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 test/form/CMakeLists.txt diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index d5cf866cc..a7de04f81 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -93,3 +93,7 @@ add_subdirectory(plugins) add_subdirectory(utilities) add_subdirectory(mock-workflow) add_subdirectory(demo-giantdata) + +if (PHLEX_USE_FORM) + add_subdirectory(form) +endif() diff --git a/test/form/CMakeLists.txt b/test/form/CMakeLists.txt new file mode 100644 index 000000000..312386181 --- /dev/null +++ b/test/form/CMakeLists.txt @@ -0,0 +1,8 @@ +######################################################################## +# Tests of FORM integration +# +# Marshal dependencies with find_package() (and reflect in Spack recipe) +# before building code. +# +# Place tests in /test/form +########################################################################