c778606c89
* Templates/Restricted upgrade/fixes: Fixed template storage format: templates now only store true relative paths and no longer save "origin" paths and "optional" has been removed, it was never used. Upgraded all templates to new standard Template system now correctly handles child objects: Child objects no longer have to specify restricted they inherit from parent Restricted now operates at the object level and makes no assumptions about parent Restricted templates can now be combined and seperated on creation ly_get_list_relative_filename has been deprecated for o3de_pal_dir All Gems/Projects/Templates updated to use new code Signed-off-by: byrcolin <byrcolin@amazon.com>
30 lines
960 B
CMake
30 lines
960 B
CMake
#
|
|
# 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
|
|
#
|
|
#
|
|
|
|
if(NOT PROJECT_NAME)
|
|
cmake_minimum_required(VERSION 3.20)
|
|
include(cmake/CompilerSettings.cmake)
|
|
project(AutomatedTesting
|
|
LANGUAGES C CXX
|
|
VERSION 1.0.0.0
|
|
)
|
|
include(cmake/EngineFinder.cmake OPTIONAL)
|
|
find_package(o3de REQUIRED)
|
|
o3de_initialize()
|
|
else()
|
|
# Add the project_name to global LY_PROJECTS_TARGET_NAME property
|
|
file(READ "${CMAKE_CURRENT_LIST_DIR}/project.json" project_json)
|
|
|
|
string(JSON project_target_name ERROR_VARIABLE json_error GET ${project_json} "project_name")
|
|
if(json_error)
|
|
message(FATAL_ERROR "Unable to read key 'project_name' from 'project.json'")
|
|
endif()
|
|
|
|
set_property(GLOBAL APPEND PROPERTY LY_PROJECTS_TARGET_NAME ${project_target_name})
|
|
|
|
endif() |