You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
144 lines
4.1 KiB
CMake
144 lines
4.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 FastNoise.Static STATIC
|
|
NAMESPACE Gem
|
|
FILES_CMAKE
|
|
fastnoise_files.cmake
|
|
INCLUDE_DIRECTORIES
|
|
PUBLIC
|
|
Source
|
|
. # To give acess to External/FastNoise
|
|
Include
|
|
BUILD_DEPENDENCIES
|
|
PUBLIC
|
|
Legacy::CryCommon
|
|
Gem::GradientSignal
|
|
PRIVATE
|
|
Gem::LmbrCentral
|
|
)
|
|
|
|
ly_add_target(
|
|
NAME FastNoise ${PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE}
|
|
NAMESPACE Gem
|
|
FILES_CMAKE
|
|
fastnoise_shared_files.cmake
|
|
INCLUDE_DIRECTORIES
|
|
PUBLIC
|
|
Include
|
|
BUILD_DEPENDENCIES
|
|
PRIVATE
|
|
Gem::FastNoise.Static
|
|
RUNTIME_DEPENDENCIES
|
|
Gem::LmbrCentral
|
|
Gem::GradientSignal
|
|
)
|
|
|
|
# Clients and Servers use the above module
|
|
ly_create_alias(NAME FastNoise.Clients NAMESPACE Gem TARGETS FastNoise)
|
|
ly_create_alias(NAME FastNoise.Servers NAMESPACE Gem TARGETS FastNoise)
|
|
|
|
if(PAL_TRAIT_BUILD_HOST_TOOLS)
|
|
ly_add_target(
|
|
NAME FastNoise.Editor.Static STATIC
|
|
NAMESPACE Gem
|
|
FILES_CMAKE
|
|
fastnoise_editor_files.cmake
|
|
COMPILE_DEFINITIONS
|
|
PUBLIC
|
|
FASTNOISE_EDITOR
|
|
INCLUDE_DIRECTORIES
|
|
PRIVATE
|
|
Source
|
|
PUBLIC
|
|
Include
|
|
BUILD_DEPENDENCIES
|
|
PRIVATE
|
|
Gem::LmbrCentral.Editor
|
|
PUBLIC
|
|
Gem::FastNoise.Static
|
|
AZ::AzToolsFramework
|
|
Gem::SurfaceData
|
|
)
|
|
|
|
ly_add_target(
|
|
NAME FastNoise.Editor GEM_MODULE
|
|
NAMESPACE Gem
|
|
FILES_CMAKE
|
|
fastnoise_editor_shared_files.cmake
|
|
INCLUDE_DIRECTORIES
|
|
PRIVATE
|
|
Source
|
|
PUBLIC
|
|
Include
|
|
BUILD_DEPENDENCIES
|
|
PRIVATE
|
|
Gem::FastNoise.Editor.Static
|
|
Gem::LmbrCentral.Editor
|
|
RUNTIME_DEPENDENCIES
|
|
Gem::LmbrCentral.Editor
|
|
Gem::SurfaceData.Editor
|
|
)
|
|
|
|
# builders and tools load the above tool module.
|
|
ly_create_alias(NAME FastNoise.Builders NAMESPACE Gem TARGETS FastNoise.Editor)
|
|
ly_create_alias(NAME FastNoise.Tools NAMESPACE Gem TARGETS FastNoise.Editor)
|
|
|
|
|
|
endif()
|
|
|
|
################################################################################
|
|
# Tests
|
|
################################################################################
|
|
if(PAL_TRAIT_BUILD_TESTS_SUPPORTED)
|
|
if(PAL_TRAIT_BUILD_HOST_TOOLS)
|
|
ly_add_target(
|
|
NAME FastNoise.Editor.Tests ${PAL_TRAIT_TEST_TARGET_TYPE}
|
|
NAMESPACE Gem
|
|
FILES_CMAKE
|
|
fastnoise_tests_files.cmake
|
|
COMPILE_DEFINITIONS
|
|
PUBLIC
|
|
FASTNOISE_EDITOR
|
|
INCLUDE_DIRECTORIES
|
|
PRIVATE
|
|
Tests
|
|
BUILD_DEPENDENCIES
|
|
PRIVATE
|
|
AZ::AzTest
|
|
FastNoise.Editor.Static
|
|
Gem::LmbrCentral.Editor
|
|
)
|
|
ly_add_googletest(
|
|
NAME Gem::FastNoise.Editor.Tests
|
|
)
|
|
else()
|
|
ly_add_target(
|
|
NAME FastNoise.Tests ${PAL_TRAIT_TEST_TARGET_TYPE}
|
|
NAMESPACE Gem
|
|
FILES_CMAKE
|
|
fastnoise_tests_files.cmake
|
|
INCLUDE_DIRECTORIES
|
|
PRIVATE
|
|
Tests
|
|
BUILD_DEPENDENCIES
|
|
PRIVATE
|
|
AZ::AzTest
|
|
Gem::FastNoise.Static
|
|
Gem::LmbrCentral
|
|
)
|
|
ly_add_googletest(
|
|
NAME Gem::FastNoise.Tests
|
|
)
|
|
endif()
|
|
endif()
|