CMakeLists.txt 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #
  2. # All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
  3. # its licensors.
  4. #
  5. # For complete copyright and license terms please see the LICENSE at the root of this
  6. # distribution (the "License"). All use of this software is governed by the License,
  7. # or, if provided, by the license below or the license accompanying this file. Do not
  8. # remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
  9. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. #
  11. ly_get_list_relative_pal_filename(pal_dir ${CMAKE_CURRENT_LIST_DIR}/Platform/${PAL_PLATFORM_NAME})
  12. ly_add_target(
  13. NAME CMakeTestbed ${PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE}
  14. NAMESPACE Gem
  15. FILES_CMAKE
  16. cmaketestbed_files.cmake
  17. ${pal_dir}/cmaketestbed_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
  18. INCLUDE_DIRECTORIES
  19. PUBLIC
  20. Include
  21. BUILD_DEPENDENCIES
  22. PRIVATE
  23. AZ::AzGameFramework
  24. )
  25. ################################################################################
  26. # Gem dependencies
  27. ################################################################################
  28. ly_add_project_dependencies(
  29. PROJECT_NAME
  30. CMakeTestbed
  31. TARGETS
  32. CMakeTestbed.GameLauncher
  33. DEPENDENCIES_FILES
  34. runtime_dependencies.cmake
  35. )
  36. if(PAL_TRAIT_BUILD_HOST_TOOLS)
  37. ly_add_project_dependencies(
  38. PROJECT_NAME
  39. CMakeTestbed
  40. TARGETS
  41. AssetBuilder
  42. AssetProcessor
  43. AssetProcessorBatch
  44. Editor
  45. DEPENDENCIES_FILES
  46. tool_dependencies.cmake
  47. )
  48. endif()
  49. if(PAL_TRAIT_BUILD_SERVER_SUPPORTED)
  50. ly_add_project_dependencies(
  51. PROJECT_NAME
  52. CMakeTestbed
  53. TARGETS
  54. CMakeTestbed.ServerLauncher
  55. DEPENDENCIES_FILES
  56. runtime_dependencies.cmake
  57. )
  58. set_property(GLOBAL APPEND PROPERTY LY_LAUNCHER_SERVER_PROJECTS CMakeTestbed)
  59. endif()