Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -85,4 +86,6 @@ endif ()
add_subdirectory(phlex)

include(CTest)
add_subdirectory(test)
if (BUILD_TESTING)
add_subdirectory(test)
endif()
8 changes: 8 additions & 0 deletions form/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
########################################################################
# FORM integration
#
# Marshal dependencies with find_package() (and reflect in Spack recipe)
# before building code.
#
# Place tests in <top>/test/form.
########################################################################
4 changes: 4 additions & 0 deletions phlex/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 4 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
8 changes: 8 additions & 0 deletions test/form/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
########################################################################
# Tests of FORM integration
#
# Marshal dependencies with find_package() (and reflect in Spack recipe)
# before building code.
#
# Place tests in <top>/test/form
########################################################################