CMake: Fix xmlstreamlint to use the manual test api
Amends e13b57d06ab6e81cf04c090cc46dd23b4f8daccf Fixes: QTBUG-111774 Task-number: QTBUG-110647 Change-Id: I585cdf20e2e60d4e11170a6e2131b7abc2b7eaf3 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit b3a60e49cdd2ff82bb820be4278cf00298777a37) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
805f40924e
commit
eced0ccefc
@ -1,21 +1,15 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
project(xmlstreamlint LANGUAGES CXX)
|
||||
if (NOT QT_BUILD_STANDALONE_TESTS AND NOT QT_BUILDING_QT)
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
project(xmlstreamlint LANGUAGES CXX)
|
||||
find_package(Qt6BuildInternals COMPONENTS STANDALONE_TEST)
|
||||
endif()
|
||||
|
||||
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
||||
set(INSTALL_EXAMPLESDIR "examples")
|
||||
endif()
|
||||
|
||||
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/xml/xmlstreamlint")
|
||||
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core Xml)
|
||||
|
||||
qt_standard_project_setup()
|
||||
|
||||
qt_add_executable(xmlstreamlint
|
||||
main.cpp
|
||||
qt_internal_add_manual_test(xmlstreamlint
|
||||
SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set_target_properties(xmlstreamlint PROPERTIES
|
||||
@ -24,12 +18,7 @@ set_target_properties(xmlstreamlint PROPERTIES
|
||||
)
|
||||
|
||||
target_link_libraries(xmlstreamlint PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Xml
|
||||
Qt::Core
|
||||
Qt::Xml
|
||||
)
|
||||
|
||||
install(TARGETS xmlstreamlint
|
||||
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user