1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
cmake_minimum_required(VERSION 3.9)
project(dolfinx-demos)
# Find DOLFINX config file
find_package(DOLFINX REQUIRED)
# Enable testing
enable_testing()
# Macro to add demos. Some subdirectories might be skipped because demos may
# not be running in both real and complex modes.
macro(add_demo_subdirectory subdir)
if (IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${subdir})
add_subdirectory(${subdir})
endif()
endmacro(add_demo_subdirectory)
# Add demos
add_demo_subdirectory(poisson)
add_demo_subdirectory(hyperelasticity)
|