CMakeLists.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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_HOST_TOOLS)
  9. return()
  10. endif()
  11. ly_add_target(
  12. NAME SerializeContextTools.Private.Object OBJECT
  13. NAMESPACE AZ
  14. FILES_CMAKE
  15. serializecontexttools_object_files.cmake
  16. INCLUDE_DIRECTORIES
  17. PUBLIC
  18. .
  19. BUILD_DEPENDENCIES
  20. PRIVATE
  21. AZ::AzCore
  22. AZ::AzFramework
  23. AZ::AzToolsFramework
  24. )
  25. ly_add_target(
  26. NAME SerializeContextTools EXECUTABLE
  27. NAMESPACE AZ
  28. FILES_CMAKE
  29. serializecontexttools_files.cmake
  30. INCLUDE_DIRECTORIES
  31. PUBLIC
  32. .
  33. BUILD_DEPENDENCIES
  34. PRIVATE
  35. AZ::AzCore
  36. AZ::AzFramework
  37. AZ::AzToolsFramework
  38. SerializeContextTools.Private.Object
  39. )
  40. if(PAL_TRAIT_BUILD_TESTS_SUPPORTED)
  41. ly_add_target(
  42. NAME SerializeContextTools.Tests EXECUTABLE
  43. NAMESPACE AZ
  44. FILES_CMAKE
  45. serializecontexttools_tests_files.cmake
  46. INCLUDE_DIRECTORIES
  47. PRIVATE
  48. .
  49. BUILD_DEPENDENCIES
  50. PRIVATE
  51. AZ::AzCore
  52. AZ::AzFramework
  53. AZ::AzToolsFramework
  54. AZ::AzToolsFrameworkTestCommon
  55. AZ::AzTest
  56. SerializeContextTools.Private.Object
  57. )
  58. ly_add_googletest(
  59. NAME AZ::SerializeContextTools.Tests
  60. TEST_COMMAND $<TARGET_FILE:AZ::SerializeContextTools.Tests> AzRunUnitTests
  61. )
  62. endif()