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.
61 lines
1.4 KiB
CMake
61 lines
1.4 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
|
|
#
|
|
#
|
|
|
|
if(NOT PAL_TRAIT_BUILD_HOST_TOOLS)
|
|
return()
|
|
endif()
|
|
|
|
ly_add_target(
|
|
NAME PrefabBuilder.Static STATIC
|
|
NAMESPACE Gem
|
|
FILES_CMAKE
|
|
prefabbuilder_files.cmake
|
|
BUILD_DEPENDENCIES
|
|
PUBLIC
|
|
AZ::AzCore
|
|
AZ::AzToolsFramework
|
|
AZ::AssetBuilderSDK
|
|
)
|
|
|
|
ly_add_target(
|
|
NAME PrefabBuilder.Builders GEM_MODULE
|
|
NAMESPACE Gem
|
|
INCLUDE_DIRECTORIES
|
|
PRIVATE
|
|
.
|
|
FILES_CMAKE
|
|
prefabbuilder_module_files.cmake
|
|
BUILD_DEPENDENCIES
|
|
PRIVATE
|
|
Gem::PrefabBuilder.Static
|
|
)
|
|
|
|
# the prefab builder only needs to be active in builders
|
|
|
|
# we automatically add this gem, if it is present, to all our known set of builder applications:
|
|
ly_enable_gems(GEMS PrefabBuilder)
|
|
|
|
if(PAL_TRAIT_BUILD_TESTS_SUPPORTED)
|
|
ly_add_target(
|
|
NAME PrefabBuilder.Tests ${PAL_TRAIT_TEST_TARGET_TYPE}
|
|
NAMESPACE Gem
|
|
FILES_CMAKE
|
|
prefabbuilder_tests_files.cmake
|
|
INCLUDE_DIRECTORIES
|
|
PRIVATE
|
|
.
|
|
BUILD_DEPENDENCIES
|
|
PRIVATE
|
|
AZ::AzTest
|
|
Gem::PrefabBuilder.Static
|
|
)
|
|
ly_add_googletest(
|
|
NAME Gem::PrefabBuilder.Tests
|
|
)
|
|
endif()
|