File CMakeLists.txt of Package mingw64-qmlpluginexports
cmake_minimum_required(VERSION 3.1) project(qmlpluginexports) if(NOT QT_MAJOR_VERSION) set(QT_MAJOR_VERSION 5) endif() find_package(Qt${QT_MAJOR_VERSION} COMPONENTS Core Gui Qml) add_executable(qmlpluginexports-qt${QT_MAJOR_VERSION} qmlpluginexports.cpp) target_link_libraries(qmlpluginexports-qt${QT_MAJOR_VERSION} PRIVATE Qt5::Core Qt5::Gui Qt5::Qml Qt5::QmlPrivate dl) install(TARGETS qmlpluginexports-qt${QT_MAJOR_VERSION})