# Distributed under the MIT License.
# See LICENSE.txt for details.

add_subdirectory(FunctionsOfTime)
add_subdirectory(Python)
add_subdirectory(Tags)

set(LIBRARY "Test_Domain")

set(LIBRARY_SOURCES
  Test_AreaElement.cpp
  Test_Block.cpp
  Test_BlockAndElementLogicalCoordinates.cpp
  Test_CoordinatesTag.cpp
  Test_CreateInitialElement.cpp
  Test_Domain.cpp
  Test_DomainHelpers.cpp
  Test_DomainTestHelpers.cpp
  Test_ElementDistribution.cpp
  Test_ElementMap.cpp
  Test_ElementToBlockLogicalMap.cpp
  Test_ExcisionSphere.cpp
  Test_FaceNormal.cpp
  Test_FlatLogicalMetric.cpp
  Test_InterfaceHelpers.cpp
  Test_InterfaceItems.cpp
  Test_InterfaceLogicalCoordinates.cpp
  Test_JacobianDiagnostic.cpp
  Test_MinimumGridSpacing.cpp
  Test_RadiallyCompressedCoordinates.cpp
  Test_SizeOfElement.cpp
  Test_StrahlkorperTransformations.cpp
  Test_Tags.cpp
  Test_TagsCharacteristicSpeeds.cpp
  Test_TagsTimeDependent.cpp
)

add_subdirectory(Amr)
add_subdirectory(BoundaryConditions)
add_subdirectory(CoordinateMaps)
add_subdirectory(Creators)
add_subdirectory(Structure)

add_test_library(${LIBRARY} "${LIBRARY_SOURCES}")

target_link_libraries(
  ${LIBRARY}
  PRIVATE
  CoordinateMaps
  Domain
  DomainBoundaryConditionsHelpers
  DomainCreators
  DomainHelpers
  GeneralRelativitySolutions
  H5
  LinearOperators
  SphericalHarmonics
  Utilities
  )
