Files
o3de/Gems/Camera/Code/CMakeLists.txt
T
hultonha b865d2aec1 Add support for camera reference frames to support camera yaw in certain situations (#4088)
* proof of concept change for fixing camera yaw rotation being ignored

Signed-off-by: hultonha <hultonha@amazon.co.uk>

* updates to fully support camera roll

Signed-off-by: hultonha <hultonha@amazon.co.uk>

* small fixes for PR

Signed-off-by: hultonha <hultonha@amazon.co.uk>

* undo changes in EditorCameraComponent

Signed-off-by: hultonha <hultonha@amazon.co.uk>

* add test to verify interaction between editor viewport view entity change and modular camera controller

Signed-off-by: hultonha <hultonha@amazon.co.uk>

* add additional tests for updated camera behaviors

Signed-off-by: hultonha <hultonha@amazon.co.uk>

* revert change to Camera Gem Output Name

Signed-off-by: hultonha <hultonha@amazon.co.uk>

* move location of new files

Signed-off-by: hultonha <hultonha@amazon.co.uk>

* fix tab/spaces issue

Signed-off-by: hultonha <hultonha@amazon.co.uk>

* remove static from potentially unused functions

Signed-off-by: hultonha <hultonha@amazon.co.uk>

* set camera lib name in CMakeLists.txt file

Signed-off-by: hultonha <hultonha@amazon.co.uk>

* cosmetic CMakeLists.txt change

Signed-off-by: hultonha <hultonha@amazon.co.uk>
2021-09-22 09:08:24 +01:00

72 lines
1.8 KiB
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
#
#
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
AZ::AzCore
AZ::AzFramework
)
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
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
AZ::AzToolsFramework
Gem::Camera.Static
Gem::AtomToolsFramework.Static
RUNTIME_DEPENDENCIES
Legacy::EditorCommon
)
# 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()
# The DefaultPrefab contains an EditorCameraComponent which makes this gem required
ly_enable_gems(GEMS Camera)