# SPDX-FileCopyrightText: © 2026 Alexandros Theodotou <alex@zrythm.org>
# SPDX-License-Identifier: LicenseRef-ZrythmLicense

add_executable(zrythm_controllers_unit_tests
  project_json_serializer_roundtrip_test.cpp
  project_json_serializer_structure_test.cpp
  project_json_serializer_validation_test.cpp
  project_loader_test.cpp
  project_saver_test.cpp
  recording_coordinator_test.cpp
  recording_materializer_test.cpp
  recording_session_test.cpp
  transport_controller_test.cpp
)

set_target_properties(zrythm_controllers_unit_tests PROPERTIES
  AUTOMOC ON
  UNITY_BUILD ${ZRYTHM_UNITY_BUILD}
)

target_link_libraries(zrythm_controllers_unit_tests PRIVATE
  zrythm::gtest_for_tests
  zrythm_controllers_lib
  zrythm_test_helpers_lib
)

target_precompile_headers(zrythm_controllers_unit_tests REUSE_FROM zrythm_structure_project_unit_tests)

zrythm_discover_tests(zrythm_controllers_unit_tests)
