summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2024-01-10 14:57:54 +0100
committerJoerg Bornemann <joerg.bornemann@qt.io>2024-01-24 14:16:21 +0100
commit9610f6ddfb3c20b7c95a8c72440a7cd6f9cdc1d2 (patch)
treef451fe83c27ac6dec2e88e8662a7c8ae68305e8d
parent16e0f0063fe2e2f188a843dcf22fa863142b883f (diff)
Enable CMake autotests
Task-number: QTBUG-84884 Change-Id: I1010f3dca690e30f7a7115a0002a97361c411969 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r--tests/auto/CMakeLists.txt4
-rw-r--r--tests/auto/cmake/CMakeLists.txt12
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt
index 17ffc8f..6fd44c1 100644
--- a/tests/auto/CMakeLists.txt
+++ b/tests/auto/CMakeLists.txt
@@ -1,9 +1,7 @@
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
-# Generated from auto.pro.
-
-# add_subdirectory(cmake) special case remove
+add_subdirectory(cmake)
add_subdirectory(oauth1)
add_subdirectory(oauth2)
add_subdirectory(oauth1signature)
diff --git a/tests/auto/cmake/CMakeLists.txt b/tests/auto/cmake/CMakeLists.txt
index 02371b7..10a12a5 100644
--- a/tests/auto/cmake/CMakeLists.txt
+++ b/tests/auto/cmake/CMakeLists.txt
@@ -1,13 +1,15 @@
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause
-
cmake_minimum_required(VERSION 3.16)
-
-project(qmake_cmake_files)
+project(qtnetworkauth_cmake_tests)
enable_testing()
-find_package(Qt5Core REQUIRED)
+find_package(Qt6Core REQUIRED)
+
+include("${_Qt6CTestMacros}")
-include("${_Qt5CTestMacros}")
+_qt_internal_test_module_includes(
+ NetworkAuth QOAuthHttpServerReplyHandler
+)