CMakeLists.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 SceneCore SHARED
  13. NAMESPACE AZ
  14. FILES_CMAKE
  15. scenecore_files.cmake
  16. COMPILE_DEFINITIONS
  17. PRIVATE
  18. SCENE_CORE_EXPORTS
  19. INCLUDE_DIRECTORIES
  20. PUBLIC
  21. ../..
  22. BUILD_DEPENDENCIES
  23. PRIVATE
  24. AZ::AzCore
  25. AZ::AzFramework
  26. AZ::AzToolsFramework
  27. )
  28. if(PAL_TRAIT_BUILD_TESTS_SUPPORTED)
  29. ly_add_target(
  30. NAME SceneCore.Tests ${PAL_TRAIT_TEST_TARGET_TYPE}
  31. NAMESPACE AZ
  32. FILES_CMAKE
  33. scenecore_testing_files.cmake
  34. INCLUDE_DIRECTORIES
  35. PRIVATE
  36. Tests
  37. BUILD_DEPENDENCIES
  38. PRIVATE
  39. AZ::AzTest
  40. AZ::SceneCore
  41. AZ::AzFramework
  42. AZ::AzToolsFramework
  43. )
  44. ly_add_googletest(
  45. NAME AZ::SceneCore.Tests
  46. LABELS REQUIRES_tiaf
  47. )
  48. endif()