12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #
- # Copyright (c) Contributors to the Open 3D Engine Project.
- # For complete copyright and license terms please see the LICENSE at the root of this distribution.
- #
- # SPDX-License-Identifier: Apache-2.0 OR MIT
- #
- #
- o3de_pal_dir(pal_dir ${CMAKE_CURRENT_LIST_DIR}/Platform/${PAL_PLATFORM_NAME} ${O3DE_ENGINE_RESTRICTED_PATH} ${LY_ROOT_FOLDER})
- ly_add_target(
- NAME CryCommon STATIC
- NAMESPACE Legacy
- FILES_CMAKE
- crycommon_files.cmake
- ${pal_dir}/crycommon_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake # Required for restricted platforms
- PLATFORM_INCLUDE_FILES
- ${pal_dir}/crycommon_${PAL_PLATFORM_NAME_LOWERCASE}.cmake # Required for restricted platforms
- INCLUDE_DIRECTORIES
- PUBLIC
- . # Lots of code without CryCommon/
- .. # Dangerous since exports Legacy's path (client code can do CrySystem/ without depending on that target)
- ${pal_dir} # Required for restricted platforms
- BUILD_DEPENDENCIES
- PUBLIC
- AZ::AzCore
- AZ::AzFramework
- )
- if(PAL_TRAIT_BUILD_TESTS_SUPPORTED)
- ly_add_target(
- NAME CryCommonMocks HEADERONLY
- NAMESPACE Legacy
- FILES_CMAKE
- crycommon_testing_files.cmake
- INCLUDE_DIRECTORIES
- INTERFACE
- Mocks
- )
- endif()
|