CMakeLists.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # Copyright (c) Contributors to the Open 3D Engine Project.
  3. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0 OR MIT
  6. #
  7. #
  8. o3de_pal_dir(pal_dir ${CMAKE_CURRENT_LIST_DIR}/Platform/${PAL_PLATFORM_NAME} ${O3DE_ENGINE_RESTRICTED_PATH} ${LY_ROOT_FOLDER})
  9. include(${pal_dir}/PAL_${PAL_PLATFORM_NAME_LOWERCASE}.cmake)
  10. if(PAL_TRAIT_TEST_IMPACT_FRAMEWORK_SUPPORTED AND PAL_TRAIT_BUILD_TESTS_SUPPORTED AND NOT LY_MONOLITHIC_GAME)
  11. add_subdirectory(Runtime)
  12. add_subdirectory(Frontend)
  13. if(O3DE_TEST_IMPACT_ACTIVE)
  14. # Only add the TIAF unit tests if one or more runtimes is enabled
  15. ly_add_pytest(
  16. NAME TiafToolsTest
  17. PATH ${LY_ROOT_FOLDER}/scripts/build/TestImpactAnalysis/Testing/test_tiaf_tools.py
  18. TEST_SERIAL
  19. COMPONENT
  20. TestImpactFramework
  21. LABELS REQUIRES_tiaf
  22. )
  23. ly_add_pytest(
  24. NAME TiafPythonUnitTest
  25. PATH ${LY_ROOT_FOLDER}/scripts/build/TestImpactAnalysis/Testing/test_tiaf_unit_tests.py
  26. TEST_SERIAL
  27. COMPONENT
  28. TestImpactFramework
  29. LABELS REQUIRES_tiaf
  30. )
  31. endif()
  32. endif()