CMakeLists.txt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. ly_add_target(
  9. NAME Atom_Utils.Static STATIC
  10. NAMESPACE Gem
  11. FILES_CMAKE
  12. atom_utils_files.cmake
  13. INCLUDE_DIRECTORIES
  14. PRIVATE
  15. Source
  16. PUBLIC
  17. Include
  18. BUILD_DEPENDENCIES
  19. PRIVATE
  20. AZ::AzCore
  21. Gem::Atom_RHI.Public
  22. AzFramework
  23. PUBLIC
  24. Gem::Atom_RHI.Reflect
  25. Gem::Atom_RPI.Public
  26. Gem::ImGui.imguilib
  27. 3rdParty::PNG
  28. Gem::ProfilerImGui
  29. )
  30. if(PAL_TRAIT_BUILD_HOST_TOOLS)
  31. ly_add_target(
  32. NAME Atom_Utils.TestUtils.Static STATIC
  33. NAMESPACE Gem
  34. FILES_CMAKE
  35. atom_utils_editor_files.cmake
  36. INCLUDE_DIRECTORIES
  37. PRIVATE
  38. Source
  39. PUBLIC
  40. Include
  41. BUILD_DEPENDENCIES
  42. PRIVATE
  43. AZ::AtomCore
  44. AZ::AzCore
  45. AZ::AzFramework
  46. AZ::AzToolsFramework
  47. )
  48. endif()
  49. ################################################################################
  50. # Tests
  51. ################################################################################
  52. if(PAL_TRAIT_BUILD_TESTS_SUPPORTED)
  53. o3de_pal_dir(pal_dir ${CMAKE_CURRENT_LIST_DIR}/Platform/${PAL_PLATFORM_NAME} "${gem_restricted_path}" "${gem_path}" "${gem_parent_relative_path}")
  54. ly_add_target(
  55. NAME Atom_Utils.Tests ${PAL_TRAIT_TEST_TARGET_TYPE}
  56. NAMESPACE Gem
  57. FILES_CMAKE
  58. atom_utils_tests_files.cmake
  59. PLATFORM_INCLUDE_FILES
  60. ${pal_dir}/platform_${PAL_PLATFORM_NAME_LOWERCASE}.cmake
  61. INCLUDE_DIRECTORIES
  62. PRIVATE
  63. Tests
  64. BUILD_DEPENDENCIES
  65. PRIVATE
  66. AZ::AzTest
  67. AZ::AzFramework
  68. Gem::Atom_Utils.Static
  69. )
  70. ly_add_googletest(
  71. NAME Gem::Atom_Utils.Tests
  72. LABELS REQUIRES_tiaf
  73. )
  74. endif()