mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-06 17:25:24 +08:00
qt 6.5.1 original
This commit is contained in:
15
tests/auto/cmake/test_interface/widget_test/CMakeLists.txt
Normal file
15
tests/auto/cmake/test_interface/widget_test/CMakeLists.txt
Normal file
@ -0,0 +1,15 @@
|
||||
# Copyright (C) 2022 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
project(test_interface_try_compile)
|
||||
|
||||
find_package(Qt6Widgets)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
add_executable(test_interface_try_compile_exe main.cpp)
|
||||
target_link_libraries(test_interface_try_compile_exe Qt::Widgets)
|
||||
|
4
tests/auto/cmake/test_interface/widget_test/main.cpp
Normal file
4
tests/auto/cmake/test_interface/widget_test/main.cpp
Normal file
@ -0,0 +1,4 @@
|
||||
#include <QString>
|
||||
#include <QWidget>
|
||||
|
||||
int main(int, char**) { QWidget w; w.show(); return 0; }
|
Reference in New Issue
Block a user