CMakeLists.txt 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. o3de_pal_dir(pal_source_dir ${CMAKE_CURRENT_LIST_DIR}/source/Platform/${PAL_PLATFORM_NAME} ${O3DE_ENGINE_RESTRICTED_PATH} ${LY_ROOT_FOLDER})
  9. ly_add_target(
  10. NAME AWSNativeSDKInit STATIC
  11. NAMESPACE AZ
  12. FILES_CMAKE
  13. aws_native_sdk_init_files.cmake
  14. ${pal_source_dir}/platform_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
  15. INCLUDE_DIRECTORIES
  16. PUBLIC
  17. include
  18. PRIVATE
  19. ${pal_dir}
  20. BUILD_DEPENDENCIES
  21. PRIVATE
  22. 3rdParty::AWSNativeSDK::AWSCore
  23. AZ::AzCore
  24. )
  25. ################################################################################
  26. # Tests
  27. ################################################################################
  28. if(PAL_TRAIT_BUILD_TESTS_SUPPORTED)
  29. ly_add_target(
  30. NAME AWSNativeSDKTestLibs STATIC
  31. NAMESPACE AZ
  32. FILES_CMAKE
  33. aws_native_sdk_test_files.cmake
  34. INCLUDE_DIRECTORIES
  35. PUBLIC
  36. include
  37. tests/libs
  38. PRIVATE
  39. source
  40. BUILD_DEPENDENCIES
  41. PRIVATE
  42. 3rdParty::AWSNativeSDK::Core
  43. AZ::AzCore
  44. AZ::AzTest
  45. )
  46. ly_add_target(
  47. NAME AWSNativeSDKInit.Tests ${PAL_TRAIT_TEST_TARGET_TYPE}
  48. NAMESPACE AZ
  49. FILES_CMAKE
  50. aws_native_sdk_init_tests_files.cmake
  51. INCLUDE_DIRECTORIES
  52. PRIVATE
  53. include
  54. tests
  55. source
  56. BUILD_DEPENDENCIES
  57. PRIVATE
  58. AZ::AzCore
  59. AZ::AzFramework
  60. AZ::AzTest
  61. AZ::AWSNativeSDKInit
  62. 3rdParty::AWSNativeSDK::Core
  63. )
  64. ly_add_googletest(
  65. NAME AZ::AWSNativeSDKInit.Tests
  66. LABELS REQUIRES_tiaf
  67. )
  68. endif()