From 09392f99b62dd6c7d4d3b848b18719af60c315c1 Mon Sep 17 00:00:00 2001 From: Liang Qi Date: Wed, 18 Sep 2019 07:27:43 +0200 Subject: cmake: Initial CMake build system support ntddmodm part need port to configure.json way first. Task-number: QTBUG-78165 Change-Id: I4b2f8102b349a4b77378f0e7dc5b397beb91d92c Reviewed-by: Qt CMake Build Bot Reviewed-by: Alexandru Croitor --- CMakeLists.txt | 21 +++++++ coin/module_config.yaml | 13 ++++ examples/CMakeLists.txt | 9 +++ examples/serialport/CMakeLists.txt | 15 +++++ examples/serialport/blockingmaster/CMakeLists.txt | 35 +++++++++++ examples/serialport/blockingslave/CMakeLists.txt | 35 +++++++++++ examples/serialport/cenumerator/CMakeLists.txt | 29 +++++++++ examples/serialport/creaderasync/CMakeLists.txt | 30 +++++++++ examples/serialport/creadersync/CMakeLists.txt | 29 +++++++++ examples/serialport/cwriterasync/CMakeLists.txt | 30 +++++++++ examples/serialport/cwritersync/CMakeLists.txt | 29 +++++++++ examples/serialport/enumerator/CMakeLists.txt | 33 ++++++++++ examples/serialport/master/CMakeLists.txt | 30 +++++++++ examples/serialport/slave/CMakeLists.txt | 30 +++++++++ examples/serialport/terminal/CMakeLists.txt | 53 ++++++++++++++++ src/CMakeLists.txt | 3 + src/serialport/CMakeLists.txt | 76 +++++++++++++++++++++++ tests/CMakeLists.txt | 11 ++++ tests/auto/CMakeLists.txt | 8 +++ tests/auto/qserialport/CMakeLists.txt | 13 ++++ tests/auto/qserialportinfo/CMakeLists.txt | 16 +++++ tests/auto/qserialportinfoprivate/CMakeLists.txt | 15 +++++ 22 files changed, 563 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 coin/module_config.yaml create mode 100644 examples/CMakeLists.txt create mode 100644 examples/serialport/CMakeLists.txt create mode 100644 examples/serialport/blockingmaster/CMakeLists.txt create mode 100644 examples/serialport/blockingslave/CMakeLists.txt create mode 100644 examples/serialport/cenumerator/CMakeLists.txt create mode 100644 examples/serialport/creaderasync/CMakeLists.txt create mode 100644 examples/serialport/creadersync/CMakeLists.txt create mode 100644 examples/serialport/cwriterasync/CMakeLists.txt create mode 100644 examples/serialport/cwritersync/CMakeLists.txt create mode 100644 examples/serialport/enumerator/CMakeLists.txt create mode 100644 examples/serialport/master/CMakeLists.txt create mode 100644 examples/serialport/slave/CMakeLists.txt create mode 100644 examples/serialport/terminal/CMakeLists.txt create mode 100644 src/CMakeLists.txt create mode 100644 src/serialport/CMakeLists.txt create mode 100644 tests/CMakeLists.txt create mode 100644 tests/auto/CMakeLists.txt create mode 100644 tests/auto/qserialport/CMakeLists.txt create mode 100644 tests/auto/qserialportinfo/CMakeLists.txt create mode 100644 tests/auto/qserialportinfoprivate/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..02f9e73 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,21 @@ +# Generated from qtserialport.pro. + +cmake_minimum_required(VERSION 3.15.0) + +project(QtSerialPort + VERSION 6.0.0 + DESCRIPTION "Qt SerialPort Libraries" + HOMEPAGE_URL "https://qt.io/" + LANGUAGES CXX C +) + +find_package(Qt6 ${PROJECT_VERSION} CONFIG REQUIRED COMPONENTS BuildInternals Core) # special case +find_package(Qt6 ${PROJECT_VERSION} CONFIG OPTIONAL_COMPONENTS Xml) # special case + +# special case begin +if (INTEGRITY OR WINRT OR APPLE_UIKIT OR VXWORKS OR WASM) + return() +endif() +# special case end + +qt_build_repo() diff --git a/coin/module_config.yaml b/coin/module_config.yaml new file mode 100644 index 0000000..9f29e11 --- /dev/null +++ b/coin/module_config.yaml @@ -0,0 +1,13 @@ +version: 1 +accept_configuration: + condition: property + property: host.os + equals_property: target.os + +build_instructions: + - !include "{{qt/qtbase}}/prepare_building_env.yaml" + - !include "{{qt/qtbase}}/cmake_module_build_instructions.yaml" + - !include "{{qt/qtbase}}/cmake_build_and_upload_test_artifacts.yaml" + +test_instructions: + - !include "{{qt/qtbase}}/cmake_regular_test_instructions.yaml" diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt new file mode 100644 index 0000000..d86d093 --- /dev/null +++ b/examples/CMakeLists.txt @@ -0,0 +1,9 @@ +# Generated from examples.pro. + +qt_examples_build_begin() + +if(NOT QNX) + add_subdirectory(serialport) +endif() + +qt_examples_build_end() diff --git a/examples/serialport/CMakeLists.txt b/examples/serialport/CMakeLists.txt new file mode 100644 index 0000000..8c874b0 --- /dev/null +++ b/examples/serialport/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from serialport.pro. + +add_subdirectory(cenumerator) +add_subdirectory(creaderasync) +add_subdirectory(creadersync) +add_subdirectory(cwriterasync) +add_subdirectory(cwritersync) +if (TARGET Qt6::Widgets) # special case + add_subdirectory(enumerator) + add_subdirectory(terminal) + add_subdirectory(blockingmaster) + add_subdirectory(blockingslave) + add_subdirectory(master) + add_subdirectory(slave) +endif() diff --git a/examples/serialport/blockingmaster/CMakeLists.txt b/examples/serialport/blockingmaster/CMakeLists.txt new file mode 100644 index 0000000..dbcd935 --- /dev/null +++ b/examples/serialport/blockingmaster/CMakeLists.txt @@ -0,0 +1,35 @@ +# Generated from blockingmaster.pro. + +cmake_minimum_required(VERSION 3.14) +project(blockingmaster LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Widgets) +find_package(Qt6 COMPONENTS SerialPort) + +add_qt_gui_executable(blockingmaster + dialog.cpp dialog.h + main.cpp + masterthread.cpp masterthread.h +) +target_link_libraries(blockingmaster PUBLIC + Qt::Core + Qt::Gui + Qt::SerialPort + Qt::Widgets +) + +install(TARGETS blockingmaster + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/serialport/blockingslave/CMakeLists.txt b/examples/serialport/blockingslave/CMakeLists.txt new file mode 100644 index 0000000..4b63a3c --- /dev/null +++ b/examples/serialport/blockingslave/CMakeLists.txt @@ -0,0 +1,35 @@ +# Generated from blockingslave.pro. + +cmake_minimum_required(VERSION 3.14) +project(blockingslave LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Widgets) +find_package(Qt6 COMPONENTS SerialPort) + +add_qt_gui_executable(blockingslave + dialog.cpp dialog.h + main.cpp + slavethread.cpp slavethread.h +) +target_link_libraries(blockingslave PUBLIC + Qt::Core + Qt::Gui + Qt::SerialPort + Qt::Widgets +) + +install(TARGETS blockingslave + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/serialport/cenumerator/CMakeLists.txt b/examples/serialport/cenumerator/CMakeLists.txt new file mode 100644 index 0000000..6e53189 --- /dev/null +++ b/examples/serialport/cenumerator/CMakeLists.txt @@ -0,0 +1,29 @@ +# Generated from cenumerator.pro. + +cmake_minimum_required(VERSION 3.14) +project(cenumerator LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS SerialPort) + +add_executable(cenumerator + main.cpp +) +target_link_libraries(cenumerator PUBLIC + Qt::Core + Qt::SerialPort +) + +install(TARGETS cenumerator + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/serialport/creaderasync/CMakeLists.txt b/examples/serialport/creaderasync/CMakeLists.txt new file mode 100644 index 0000000..10f2690 --- /dev/null +++ b/examples/serialport/creaderasync/CMakeLists.txt @@ -0,0 +1,30 @@ +# Generated from creaderasync.pro. + +cmake_minimum_required(VERSION 3.14) +project(creaderasync LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS SerialPort) + +add_executable(creaderasync + main.cpp + serialportreader.cpp serialportreader.h +) +target_link_libraries(creaderasync PUBLIC + Qt::Core + Qt::SerialPort +) + +install(TARGETS creaderasync + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/serialport/creadersync/CMakeLists.txt b/examples/serialport/creadersync/CMakeLists.txt new file mode 100644 index 0000000..a00386e --- /dev/null +++ b/examples/serialport/creadersync/CMakeLists.txt @@ -0,0 +1,29 @@ +# Generated from creadersync.pro. + +cmake_minimum_required(VERSION 3.14) +project(creadersync LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS SerialPort) + +add_executable(creadersync + main.cpp +) +target_link_libraries(creadersync PUBLIC + Qt::Core + Qt::SerialPort +) + +install(TARGETS creadersync + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/serialport/cwriterasync/CMakeLists.txt b/examples/serialport/cwriterasync/CMakeLists.txt new file mode 100644 index 0000000..0a0fc1e --- /dev/null +++ b/examples/serialport/cwriterasync/CMakeLists.txt @@ -0,0 +1,30 @@ +# Generated from cwriterasync.pro. + +cmake_minimum_required(VERSION 3.14) +project(cwriterasync LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS SerialPort) + +add_executable(cwriterasync + main.cpp + serialportwriter.cpp serialportwriter.h +) +target_link_libraries(cwriterasync PUBLIC + Qt::Core + Qt::SerialPort +) + +install(TARGETS cwriterasync + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/serialport/cwritersync/CMakeLists.txt b/examples/serialport/cwritersync/CMakeLists.txt new file mode 100644 index 0000000..7f31b78 --- /dev/null +++ b/examples/serialport/cwritersync/CMakeLists.txt @@ -0,0 +1,29 @@ +# Generated from cwritersync.pro. + +cmake_minimum_required(VERSION 3.14) +project(cwritersync LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS SerialPort) + +add_executable(cwritersync + main.cpp +) +target_link_libraries(cwritersync PUBLIC + Qt::Core + Qt::SerialPort +) + +install(TARGETS cwritersync + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/serialport/enumerator/CMakeLists.txt b/examples/serialport/enumerator/CMakeLists.txt new file mode 100644 index 0000000..7fc5358 --- /dev/null +++ b/examples/serialport/enumerator/CMakeLists.txt @@ -0,0 +1,33 @@ +# Generated from enumerator.pro. + +cmake_minimum_required(VERSION 3.14) +project(enumerator LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Widgets) +find_package(Qt6 COMPONENTS SerialPort) + +add_qt_gui_executable(enumerator + main.cpp +) +target_link_libraries(enumerator PUBLIC + Qt::Core + Qt::Gui + Qt::SerialPort + Qt::Widgets +) + +install(TARGETS enumerator + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/serialport/master/CMakeLists.txt b/examples/serialport/master/CMakeLists.txt new file mode 100644 index 0000000..5b36d92 --- /dev/null +++ b/examples/serialport/master/CMakeLists.txt @@ -0,0 +1,30 @@ +# Generated from master.pro. + +cmake_minimum_required(VERSION 3.14) +project(master LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) + +add_qt_gui_executable(master + dialog.cpp dialog.h + main.cpp +) +target_link_libraries(master PUBLIC + Qt::Core + Qt::Gui +) + +install(TARGETS master + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/serialport/slave/CMakeLists.txt b/examples/serialport/slave/CMakeLists.txt new file mode 100644 index 0000000..ce86337 --- /dev/null +++ b/examples/serialport/slave/CMakeLists.txt @@ -0,0 +1,30 @@ +# Generated from slave.pro. + +cmake_minimum_required(VERSION 3.14) +project(slave LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) + +add_qt_gui_executable(slave + dialog.cpp dialog.h + main.cpp +) +target_link_libraries(slave PUBLIC + Qt::Core + Qt::Gui +) + +install(TARGETS slave + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/serialport/terminal/CMakeLists.txt b/examples/serialport/terminal/CMakeLists.txt new file mode 100644 index 0000000..0130a0a --- /dev/null +++ b/examples/serialport/terminal/CMakeLists.txt @@ -0,0 +1,53 @@ +# Generated from terminal.pro. + +cmake_minimum_required(VERSION 3.14) +project(terminal LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Widgets) +find_package(Qt6 COMPONENTS SerialPort) + +add_qt_gui_executable(terminal + console.cpp console.h + main.cpp + mainwindow.cpp mainwindow.h mainwindow.ui + settingsdialog.cpp settingsdialog.h settingsdialog.ui +) +target_link_libraries(terminal PUBLIC + Qt::Core + Qt::Gui + Qt::SerialPort + Qt::Widgets +) + +# Resources: +set(terminal_resource_files + "images/application-exit.png" + "images/clear.png" + "images/connect.png" + "images/disconnect.png" + "images/settings.png" +) + +QT6_ADD_RESOURCES(terminal "terminal" + PREFIX + "/" + FILES + ${terminal_resource_files} +) + + +install(TARGETS terminal + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..70a40f1 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,3 @@ +# Generated from src.pro. + +add_subdirectory(serialport) diff --git a/src/serialport/CMakeLists.txt b/src/serialport/CMakeLists.txt new file mode 100644 index 0000000..9f360a0 --- /dev/null +++ b/src/serialport/CMakeLists.txt @@ -0,0 +1,76 @@ +# Generated from serialport.pro. + +qt_find_package(Libudev PROVIDED_TARGETS PkgConfig::Libudev) # special case + +##################################################################### +## SerialPort Module: +##################################################################### + +add_qt_module(SerialPort + SOURCES + qserialport.cpp qserialport.h qserialport_p.h + qserialportglobal.h + qserialportinfo.cpp qserialportinfo.h qserialportinfo_p.h + LIBRARIES + Qt::CorePrivate + PUBLIC_LIBRARIES + Qt::Core +) + +#### Keys ignored in scope 1:.:.:serialport.pro:: +# _LOADED = "qt_module" + +## Scopes: +##################################################################### + +# special case begin +# Temporarily remove until ntddmodm config test is ported +#extend_target(SerialPort CONDITION QT_FEATURE_ntddmodm +# DEFINES +# QT_NO_REDEFINE_GUID_DEVINTERFACE_MODEM +#) +# special case end + +extend_target(SerialPort CONDITION QT_FEATURE_libudev AND UNIX + DEFINES + LINK_LIBUDEV + LIBRARIES # special case + PkgConfig::Libudev # special case +) + +extend_target(SerialPort CONDITION WIN32 + SOURCES + qserialport_win.cpp + qserialportinfo_win.cpp + qtntdll_p.h # special case + LIBRARIES + advapi32 + setupapi +) + +extend_target(SerialPort CONDITION UNIX + SOURCES + qserialport_unix.cpp +) + +extend_target(SerialPort CONDITION APPLE_OSX + SOURCES + qserialportinfo_osx.cpp + LIBRARIES + ${FWCoreFoundation} + ${FWIOKit} +) + +extend_target(SerialPort CONDITION FREEBSD + SOURCES + qserialportinfo_freebsd.cpp +) + +extend_target(SerialPort CONDITION UNIX AND NOT APPLE_OSX AND NOT FREEBSD + SOURCES + qserialportinfo_unix.cpp +) +add_qt_docs( + doc/qtserialport.qdocconf +) + diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 0000000..179e8eb --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1,11 @@ +# Generated from tests.pro. + +if(NOT TARGET Qt::Test) + cmake_minimum_required(VERSION 3.15.0) + project(QtSerialPortTests VERSION 6.0.0 LANGUAGES C CXX) + find_package(Qt6 ${PROJECT_VERSION} REQUIRED COMPONENTS BuildInternals Core SerialPort Test) + find_package(Qt6 ${PROJECT_VERSION} OPTIONAL_COMPONENTS Xml) + qt_set_up_standalone_tests_build() +endif() + +qt_build_tests() diff --git a/tests/auto/CMakeLists.txt b/tests/auto/CMakeLists.txt new file mode 100644 index 0000000..0f7e9e2 --- /dev/null +++ b/tests/auto/CMakeLists.txt @@ -0,0 +1,8 @@ +# Generated from auto.pro. + +add_subdirectory(qserialport) +add_subdirectory(qserialportinfo) +# add_subdirectory(cmake) # special case +if(QT_FEATURE_private_tests) + add_subdirectory(qserialportinfoprivate) +endif() diff --git a/tests/auto/qserialport/CMakeLists.txt b/tests/auto/qserialport/CMakeLists.txt new file mode 100644 index 0000000..184107f --- /dev/null +++ b/tests/auto/qserialport/CMakeLists.txt @@ -0,0 +1,13 @@ +# Generated from qserialport.pro. + +##################################################################### +## tst_qserialport Binary: +##################################################################### + +add_qt_test(tst_qserialport + SOURCES + tst_qserialport.cpp + PUBLIC_LIBRARIES + Qt::SerialPort + Qt::Test +) diff --git a/tests/auto/qserialportinfo/CMakeLists.txt b/tests/auto/qserialportinfo/CMakeLists.txt new file mode 100644 index 0000000..20a2df0 --- /dev/null +++ b/tests/auto/qserialportinfo/CMakeLists.txt @@ -0,0 +1,16 @@ +# Generated from qserialportinfo.pro. + +##################################################################### +## tst_qserialportinfo Binary: +##################################################################### + +add_qt_test(tst_qserialportinfo + SOURCES + tst_qserialportinfo.cpp + PUBLIC_LIBRARIES + Qt::Test + Qt::SerialPort # special case +) + +## Scopes: +##################################################################### diff --git a/tests/auto/qserialportinfoprivate/CMakeLists.txt b/tests/auto/qserialportinfoprivate/CMakeLists.txt new file mode 100644 index 0000000..6a0a055 --- /dev/null +++ b/tests/auto/qserialportinfoprivate/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from qserialportinfoprivate.pro. + +##################################################################### +## tst_qserialportinfoprivate Binary: +##################################################################### + +add_qt_test(tst_qserialportinfoprivate + SOURCES + tst_qserialportinfoprivate.cpp + LIBRARIES + Qt::SerialPortPrivate + PUBLIC_LIBRARIES + Qt::SerialPort + Qt::Test +) -- cgit v1.2.1