CMakeLists.txt 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 SceneBuilder.Static STATIC
  13. NAMESPACE AZ
  14. FILES_CMAKE
  15. scenebuilder_files.cmake
  16. Platform/${PAL_PLATFORM_NAME}/platform_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
  17. COMPILE_DEFINITIONS
  18. PRIVATE
  19. SCENE_BUILDER_EXPORTS
  20. INCLUDE_DIRECTORIES
  21. PUBLIC
  22. ../..
  23. BUILD_DEPENDENCIES
  24. PRIVATE
  25. AZ::AzCore
  26. AZ::AzFramework
  27. PUBLIC
  28. AZ::AzToolsFramework
  29. AZ::SceneCore
  30. AZ::SceneData
  31. AZ::SDKWrapper
  32. )
  33. ly_add_target(
  34. NAME SceneBuilder MODULE
  35. NAMESPACE AZ
  36. FILES_CMAKE
  37. scenebuilder_shared_files.cmake
  38. COMPILE_DEFINITIONS
  39. PRIVATE
  40. SCENE_BUILDER_EXPORTS
  41. INCLUDE_DIRECTORIES
  42. PUBLIC
  43. ../..
  44. BUILD_DEPENDENCIES
  45. PUBLIC
  46. AZ::SceneBuilder.Static
  47. PRIVATE
  48. AZ::AzCore
  49. )
  50. ly_add_dependencies(AssetBuilder AZ::SceneBuilder)
  51. if(PAL_TRAIT_BUILD_TESTS_SUPPORTED)
  52. ly_add_target(
  53. NAME SceneBuilder.Tests ${PAL_TRAIT_TEST_TARGET_TYPE}
  54. NAMESPACE AZ
  55. FILES_CMAKE
  56. scenebuilder_testing_files.cmake
  57. INCLUDE_DIRECTORIES
  58. PRIVATE
  59. Tests
  60. BUILD_DEPENDENCIES
  61. PRIVATE
  62. AZ::AzTest
  63. AZ::SceneBuilder
  64. )
  65. ly_add_googletest(
  66. NAME AZ::SceneBuilder.Tests
  67. LABELS REQUIRES_tiaf
  68. )
  69. endif()