Files
o3de/Gems/Camera/Code/CMakeLists.txt
T
Nicholas Lawson c9d5d7fb77 The new gem registration and usage system
Merge from mainline (Rebase)
2021-05-20 10:47:03 -07:00

73 lines
2.1 KiB
CMake

#
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
# its licensors.
#
# For complete copyright and license terms please see the LICENSE at the root of this
# distribution (the "License"). All use of this software is governed by the License,
# or, if provided, by the license below or the license accompanying this file. Do not
# remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
ly_add_target(
NAME Camera.Static STATIC
NAMESPACE Gem
FILES_CMAKE
camera_files.cmake
INCLUDE_DIRECTORIES
PRIVATE
Source
BUILD_DEPENDENCIES
PUBLIC
Gem::Atom_RPI.Public
AZ::AtomCore
PRIVATE
Legacy::CryCommon
)
ly_add_target(
NAME Camera ${PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE}
NAMESPACE Gem
FILES_CMAKE
camera_shared_files.cmake
INCLUDE_DIRECTORIES
PRIVATE
Source
BUILD_DEPENDENCIES
PRIVATE
Legacy::CryCommon
Gem::Camera.Static
)
# clients and servers use the above module:
ly_create_alias(NAME Camera.Clients NAMESPACE Gem TARGETS Gem::Camera)
ly_create_alias(NAME Camera.Servers NAMESPACE Gem TARGETS Gem::Camera)
if (PAL_TRAIT_BUILD_HOST_TOOLS)
ly_add_target(
NAME Camera.Editor GEM_MODULE
NAMESPACE Gem
FILES_CMAKE
camera_editor_files.cmake
COMPILE_DEFINITIONS
PRIVATE
CAMERA_EDITOR
INCLUDE_DIRECTORIES
PRIVATE
Source
BUILD_DEPENDENCIES
PRIVATE
Legacy::CryCommon
Legacy::Editor.Headers
Legacy::EditorCommon
AZ::AzToolsFramework
Gem::Camera.Static
)
# tools and builders use the above module.
ly_create_alias(NAME Camera.Tools NAMESPACE Gem TARGETS Gem::Camera.Editor)
ly_create_alias(NAME Camera.Builders NAMESPACE Gem TARGETS Gem::Camera.Editor)
endif()