Motion Matching: Enable test builds in CMakeLists.txt

Signed-off-by: Benjamin Jillich <jillich@amazon.com>
monroegm-disable-blank-issue-2
Benjamin Jillich 4 years ago
parent 1e11df5d92
commit 3e59c10e64

@ -99,9 +99,6 @@ endif()
################################################################################ ################################################################################
# See if globally, tests are supported # See if globally, tests are supported
if(PAL_TRAIT_BUILD_TESTS_SUPPORTED) if(PAL_TRAIT_BUILD_TESTS_SUPPORTED)
# We globally support tests, see if we support tests on this platform for MotionMatching.Static
if(PAL_TRAIT_MOTIONMATCHING_TEST_SUPPORTED)
# We support MotionMatching.Tests on this platform, add MotionMatching.Tests target which depends on MotionMatching.Static
ly_add_target( ly_add_target(
NAME MotionMatching.Tests ${PAL_TRAIT_TEST_TARGET_TYPE} NAME MotionMatching.Tests ${PAL_TRAIT_TEST_TARGET_TYPE}
NAMESPACE Gem NAMESPACE Gem
@ -128,9 +125,6 @@ if(PAL_TRAIT_BUILD_TESTS_SUPPORTED)
# If we are a host platform we want to add tools test like editor tests here # If we are a host platform we want to add tools test like editor tests here
if(PAL_TRAIT_BUILD_HOST_TOOLS) if(PAL_TRAIT_BUILD_HOST_TOOLS)
# We are a host platform, see if Editor tests are supported on this platform
if(PAL_TRAIT_MOTIONMATCHING_EDITOR_TEST_SUPPORTED)
# We support MotionMatching.Editor.Tests on this platform, add MotionMatching.Editor.Tests target which depends on MotionMatching.Editor
ly_add_target( ly_add_target(
NAME MotionMatching.Editor.Tests ${PAL_TRAIT_TEST_TARGET_TYPE} NAME MotionMatching.Editor.Tests ${PAL_TRAIT_TEST_TARGET_TYPE}
NAMESPACE Gem NAMESPACE Gem
@ -151,5 +145,3 @@ if(PAL_TRAIT_BUILD_TESTS_SUPPORTED)
NAME Gem::MotionMatching.Editor.Tests NAME Gem::MotionMatching.Editor.Tests
) )
endif() endif()
endif()
endif()

Loading…
Cancel
Save