CMakeLists.txt 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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} ${gem_restricted_path} ${gem_path} ${gem_parent_relative_path})
  9. ly_add_target(
  10. NAME AutomatedTesting ${PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE}
  11. NAMESPACE Gem
  12. FILES_CMAKE
  13. automatedtesting_files.cmake
  14. ${pal_dir}/platform_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
  15. automatedtesting_autogen_files.cmake
  16. INCLUDE_DIRECTORIES
  17. PRIVATE
  18. Source
  19. PUBLIC
  20. Include
  21. BUILD_DEPENDENCIES
  22. PUBLIC
  23. AZ::AzNetworking
  24. Gem::Multiplayer
  25. PRIVATE
  26. AZ::AzCore
  27. Gem::Atom_AtomBridge.Static
  28. Gem::Multiplayer.Static
  29. AUTOGEN_RULES
  30. *.AutoComponent.xml,AutoComponent_Header.jinja,$path/$fileprefix.AutoComponent.h
  31. *.AutoComponent.xml,AutoComponent_Source.jinja,$path/$fileprefix.AutoComponent.cpp
  32. *.AutoComponent.xml,AutoComponentTypes_Header.jinja,$path/AutoComponentTypes.h
  33. *.AutoComponent.xml,AutoComponentTypes_Source.jinja,$path/AutoComponentTypes.cpp
  34. )
  35. # if enabled, AutomatedTesting is used by all kinds of applications
  36. ly_create_alias(NAME AutomatedTesting.Builders NAMESPACE Gem TARGETS Gem::AutomatedTesting)
  37. ly_create_alias(NAME AutomatedTesting.Tools NAMESPACE Gem TARGETS Gem::AutomatedTesting)
  38. ly_create_alias(NAME AutomatedTesting.Clients NAMESPACE Gem TARGETS Gem::AutomatedTesting)
  39. ly_create_alias(NAME AutomatedTesting.Servers NAMESPACE Gem TARGETS Gem::AutomatedTesting)
  40. ################################################################################
  41. # Gem dependencies
  42. ################################################################################
  43. # Enable the enabled_gems for the Project:
  44. ly_enable_gems(PROJECT_NAME AutomatedTesting GEM_FILE enabled_gems.cmake)
  45. # Add project to the list server projects to create the AutomatedTesting.ServerLauncher
  46. if(PAL_TRAIT_BUILD_SERVER_SUPPORTED)
  47. set_property(GLOBAL APPEND PROPERTY LY_LAUNCHER_SERVER_PROJECTS AutomatedTesting)
  48. endif()