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

add_executable(zrythm_actions_unit_tests
  arranger_object_creator_test.cpp
  arranger_object_selection_operator_test.h
  arranger_object_selection_operator_test.cpp
  file_importer_test.cpp
  mock_undo_stack.h
  qobject_property_operator_test.cpp
  parameter_operator_test.cpp
  plugin_importer_test.cpp
  plugin_operator_test.cpp
  track_collection_operator_test.cpp
  track_creator_test.cpp
  track_operator_test.cpp
)

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

target_link_libraries(zrythm_actions_unit_tests PRIVATE
  zrythm::gtest_for_tests
  zrythm_actions_lib
  zrythm_test_helpers_lib
)

target_precompile_headers(zrythm_actions_unit_tests REUSE_FROM zrythm_structure_project_unit_tests)

zrythm_discover_tests(zrythm_actions_unit_tests)
