CMakeLists.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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_dir ${CMAKE_CURRENT_LIST_DIR}/Platform/${PAL_PLATFORM_NAME} ${O3DE_ENGINE_RESTRICTED_PATH} ${LY_ROOT_FOLDER})
  9. ly_add_target(
  10. NAME CryCommon STATIC
  11. NAMESPACE Legacy
  12. FILES_CMAKE
  13. crycommon_files.cmake
  14. ${pal_dir}/crycommon_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake # Required for restricted platforms
  15. PLATFORM_INCLUDE_FILES
  16. ${pal_dir}/crycommon_${PAL_PLATFORM_NAME_LOWERCASE}.cmake # Required for restricted platforms
  17. INCLUDE_DIRECTORIES
  18. PUBLIC
  19. . # Lots of code without CryCommon/
  20. .. # Dangerous since exports Legacy's path (client code can do CrySystem/ without depending on that target)
  21. ${pal_dir} # Required for restricted platforms
  22. BUILD_DEPENDENCIES
  23. PUBLIC
  24. AZ::AzCore
  25. AZ::AzFramework
  26. )
  27. if(PAL_TRAIT_BUILD_TESTS_SUPPORTED)
  28. ly_add_target(
  29. NAME CryCommonMocks HEADERONLY
  30. NAMESPACE Legacy
  31. FILES_CMAKE
  32. crycommon_testing_files.cmake
  33. INCLUDE_DIRECTORIES
  34. INTERFACE
  35. Mocks
  36. )
  37. endif()