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

set(LIBRARY "Test_ControlSystem")

set(LIBRARY_SOURCES
  Test_Averager.cpp
  Test_BothHorizons.cpp
  Test_Controller.cpp
  Test_DataVectorHelpers.cpp
  Test_EventTriggerMetafunctions.cpp
  Test_InitialExpirationTimes.cpp
  Test_Measurement.cpp
  Test_Metafunctions.cpp
  Test_Tags.cpp
  Test_TimescaleTuner.cpp
  Test_Trigger.cpp
  Test_UpdateFunctionOfTime.cpp
  Test_WriteData.cpp
  )

add_subdirectory(Actions)
add_subdirectory(ControlErrors)
add_subdirectory(Protocols)
add_subdirectory(Systems)
add_subdirectory(Tags)

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

target_link_libraries(
  ${LIBRARY}
  PRIVATE
  ControlSystem
  EventsAndDenseTriggers
  FunctionsOfTime
  ObserverHelpers
  Utilities
)
