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.
o3de/Code/Framework/AzToolsFramework/CMakeLists.txt

97 lines
2.9 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.
#
if(NOT PAL_TRAIT_BUILD_HOST_TOOLS)
return()
endif()
ly_add_target(
NAME AzToolsFramework STATIC
NAMESPACE AZ
AUTOMOC
AUTOUIC
AUTORCC
FILES_CMAKE
AzToolsFramework/aztoolsframework_files.cmake
AzToolsFramework/aztoolsframework_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
Platform/${PAL_PLATFORM_NAME}/platform_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
Platform/Common/${PAL_TRAIT_COMPILER_ID}/aztoolsframework_${PAL_TRAIT_COMPILER_ID_LOWERCASE}.cmake
INCLUDE_DIRECTORIES
PUBLIC
.
AzToolsFramework
Platform/${PAL_PLATFORM_NAME}
COMPILE_DEFINITIONS
PRIVATE
$<$<CONFIG:debug>:ENABLE_UNDOCACHE_CONSISTENCY_CHECKS>
BUILD_DEPENDENCIES
PRIVATE
3rdParty::SQLite
AZ::AzCore
PUBLIC
3rdParty::Qt::Core
3rdParty::Qt::Gui
3rdParty::Qt::Widgets
AZ::AzFramework
AZ::AzQtComponents
)
################################################################################
# Tests
################################################################################
if(PAL_TRAIT_BUILD_TESTS_SUPPORTED)
ly_add_target(
NAME AzToolsFrameworkTestCommon STATIC
NAMESPACE AZ
FILES_CMAKE
AzToolsFramework/aztoolsframeworktestcommon_files.cmake
INCLUDE_DIRECTORIES
PRIVATE
.
BUILD_DEPENDENCIES
PUBLIC
AZ::AzTestShared
PRIVATE
3rdParty::googletest::GMock
3rdParty::GoogleBenchmark
AZ::AzToolsFramework
AZ::AzTest
)
ly_add_target(
NAME AzToolsFramework.Tests ${PAL_TRAIT_TEST_TARGET_TYPE}
NAMESPACE AZ
FILES_CMAKE
Tests/aztoolsframeworktests_files.cmake
INCLUDE_DIRECTORIES
PRIVATE
Tests
BUILD_DEPENDENCIES
PRIVATE
AZ::AzTestShared
3rdParty::Qt::Test
AZ::AzToolsFramework
AZ::AzToolsFrameworkTestCommon
AZ::AzManipulatorTestFramework.Static
AZ::AzTest
AZ::AzQtComponents
)
ly_add_googletest(
NAME AZ::AzToolsFramework.Tests
)
ly_add_googlebenchmark(
NAME AZ::AzToolsFramework.Benchmarks
TARGET AZ::AzToolsFramework.Tests
)
endif()