diff --git a/CMakeLists.txt b/CMakeLists.txt index f50e74e6f..ab1340106 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) @@ -85,4 +86,6 @@ endif () add_subdirectory(phlex) include(CTest) -add_subdirectory(test) +if (BUILD_TESTING) + add_subdirectory(test) +endif() 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. +######################################################################## 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( 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 +########################################################################