CMakeLists.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. add_subdirectory(XML)
  10. ly_add_target(
  11. NAME CrySystem.Static STATIC
  12. NAMESPACE Legacy
  13. FILES_CMAKE
  14. crysystem_files.cmake
  15. ${pal_dir}/platform_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake # Required for restricted platforms
  16. PLATFORM_INCLUDE_FILES
  17. ${pal_dir}/platform_${PAL_PLATFORM_NAME_LOWERCASE}.cmake # Required for restricted platforms
  18. INCLUDE_DIRECTORIES
  19. PUBLIC
  20. .
  21. ${pal_dir} # Required for restricted platforms
  22. BUILD_DEPENDENCIES
  23. PRIVATE
  24. 3rdParty::expat
  25. 3rdParty::lz4
  26. 3rdParty::TIFF
  27. 3rdParty::zstd
  28. Legacy::CryCommon
  29. Legacy::CrySystem.XMLBinary
  30. Legacy::RemoteConsoleCore
  31. AZ::AzFramework
  32. PUBLIC
  33. Gem::AudioSystem.API
  34. )
  35. ly_add_source_properties(
  36. SOURCES SystemInit.cpp
  37. PROPERTY COMPILE_DEFINITIONS
  38. VALUES ${LY_PAL_TOOLS_DEFINES}
  39. )
  40. ly_add_target(
  41. NAME CrySystem ${PAL_TRAIT_MONOLITHIC_DRIVEN_LIBRARY_TYPE}
  42. NAMESPACE Legacy
  43. FILES_CMAKE
  44. crysystem_shared_files.cmake
  45. INCLUDE_DIRECTORIES
  46. PUBLIC
  47. .
  48. BUILD_DEPENDENCIES
  49. PRIVATE
  50. Legacy::CrySystem.Static
  51. AZ::AzCore
  52. Legacy::CryCommon
  53. )