CMakeLists.txt 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. if(NOT PAL_TRAIT_BUILD_TESTS_SUPPORTED)
  9. return()
  10. endif()
  11. ly_add_target(
  12. NAME LmbrCentral.Mocks HEADERONLY
  13. NAMESPACE Gem
  14. FILES_CMAKE
  15. lmbrcentral_mocks_files.cmake
  16. INCLUDE_DIRECTORIES
  17. INTERFACE
  18. ../Mocks
  19. )
  20. ly_add_target(
  21. NAME LmbrCentral.Tests ${PAL_TRAIT_TEST_TARGET_TYPE}
  22. NAMESPACE Gem
  23. FILES_CMAKE
  24. lmbrcentral_tests_files.cmake
  25. INCLUDE_DIRECTORIES
  26. PRIVATE
  27. ../Source
  28. .
  29. BUILD_DEPENDENCIES
  30. PRIVATE
  31. AZ::AzTest
  32. AZ::AzTestShared
  33. Legacy::CryCommon
  34. AZ::AzFramework
  35. Gem::LmbrCentral.Static
  36. Gem::LmbrCentral.Mocks
  37. )
  38. ly_add_googletest(
  39. NAME Gem::LmbrCentral.Tests
  40. LABELS REQUIRES_tiaf
  41. )
  42. if (PAL_TRAIT_BUILD_HOST_TOOLS)
  43. ly_add_target(
  44. NAME LmbrCentral.Editor.Tests ${PAL_TRAIT_TEST_TARGET_TYPE}
  45. NAMESPACE Gem
  46. FILES_CMAKE
  47. lmbrcentral_editor_tests_files.cmake
  48. INCLUDE_DIRECTORIES
  49. PRIVATE
  50. ..
  51. ../Source
  52. .
  53. COMPILE_DEFINITIONS
  54. PRIVATE
  55. LMBR_CENTRAL_EDITOR
  56. BUILD_DEPENDENCIES
  57. PRIVATE
  58. 3rdParty::Qt::Gui
  59. 3rdParty::Qt::Widgets
  60. Legacy::CryCommon
  61. Legacy::Editor.Headers
  62. AZ::AzTest
  63. AZ::AzCore
  64. AZ::AzTestShared
  65. AZ::AzToolsFramework
  66. AZ::AzToolsFrameworkTestCommon
  67. AZ::AssetBuilderSDK
  68. AZ::AzManipulatorTestFramework.Static
  69. Gem::LmbrCentral.Static
  70. Gem::LmbrCentral.Editor.Static
  71. )
  72. ly_add_googletest(
  73. NAME Gem::LmbrCentral.Editor.Tests
  74. LABELS REQUIRES_tiaf
  75. )
  76. endif()