CMakeLists.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 AtomCore STATIC
  10. NAMESPACE AZ
  11. FILES_CMAKE
  12. AtomCore/atomcore_files.cmake
  13. INCLUDE_DIRECTORIES
  14. PUBLIC
  15. .
  16. BUILD_DEPENDENCIES
  17. PRIVATE
  18. AZ::AzCore
  19. PUBLIC
  20. 3rdParty::RapidJSON
  21. )
  22. ################################################################################
  23. # Tests
  24. ################################################################################
  25. if(PAL_TRAIT_BUILD_TESTS_SUPPORTED)
  26. ly_add_target(
  27. NAME AtomCore.Tests ${PAL_TRAIT_TEST_TARGET_TYPE}
  28. NAMESPACE AZ
  29. FILES_CMAKE
  30. Tests/atomcore_tests_files.cmake
  31. INCLUDE_DIRECTORIES
  32. PRIVATE
  33. Tests
  34. Source
  35. BUILD_DEPENDENCIES
  36. PRIVATE
  37. AZ::AzTest
  38. AZ::AtomCore
  39. )
  40. ly_add_googletest(
  41. NAME AZ::AtomCore.Tests
  42. LABELS REQUIRES_tiaf
  43. )
  44. endif()