Replaced deprecated qAsConst usages in built modules and updated QMouseEvent::localPos() to position() per Qt6 deprecation guidance.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
21 lines
640 B
CMake
21 lines
640 B
CMake
cmake_minimum_required(VERSION 3.21)
|
|
project(GTests LANGUAGES CXX)
|
|
|
|
include(FetchContent)
|
|
FetchContent_Declare(
|
|
googletest
|
|
URL https://github.com/google/googletest/archive/refs/tags/release-1.14.0.tar.gz
|
|
)
|
|
FetchContent_MakeAvailable(googletest)
|
|
|
|
# Collect generated test sources
|
|
file(GLOB GTEST_SRCS "${CMAKE_SOURCE_DIR}/Z/*_test.cpp")
|
|
add_executable(gtests_all ${GTEST_SRCS})
|
|
target_compile_features(gtests_all PRIVATE cxx_std_20)
|
|
target_include_directories(gtests_all PRIVATE ${CMAKE_SOURCE_DIR}/../../)
|
|
# link to gtest
|
|
target_link_libraries(gtests_all PRIVATE GTest::gtest_main)
|
|
|
|
include(GoogleTest)
|
|
gtest_discover_tests(gtests_all)
|