CMakeLists.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. o3de_pal_dir(pal_dir ${CMAKE_CURRENT_LIST_DIR}/Platform/${PAL_PLATFORM_NAME} ${O3DE_ENGINE_RESTRICTED_PATH} ${LY_ROOT_FOLDER})
  12. ly_add_target(
  13. NAME SceneData SHARED
  14. NAMESPACE AZ
  15. FILES_CMAKE
  16. SceneData_files.cmake
  17. ${pal_dir}/platform_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
  18. COMPILE_DEFINITIONS
  19. PRIVATE
  20. SCENE_DATA_EXPORTS
  21. INCLUDE_DIRECTORIES
  22. PUBLIC
  23. ../..
  24. BUILD_DEPENDENCIES
  25. PRIVATE
  26. AZ::AzCore
  27. AZ::AzFramework
  28. AZ::AzToolsFramework
  29. AZ::SceneCore
  30. )
  31. if(PAL_TRAIT_BUILD_TESTS_SUPPORTED)
  32. ly_add_target(
  33. NAME SceneData.Tests ${PAL_TRAIT_TEST_TARGET_TYPE}
  34. NAMESPACE AZ
  35. FILES_CMAKE
  36. SceneData_testing_files.cmake
  37. INCLUDE_DIRECTORIES
  38. PRIVATE
  39. Tests
  40. BUILD_DEPENDENCIES
  41. PRIVATE
  42. AZ::AzTest
  43. AZ::AzFramework
  44. AZ::AzToolsFramework
  45. AZ::SceneCore
  46. AZ::SceneData
  47. )
  48. ly_add_googletest(
  49. NAME AZ::SceneData.Tests
  50. LABELS REQUIRES_tiaf
  51. )
  52. endif()