diff options
Diffstat (limited to 'examples/qmltest')
-rw-r--r-- | examples/qmltest/qmltest/.prev_CMakeLists.txt | 6 | ||||
-rw-r--r-- | examples/qmltest/qmltest/CMakeLists.txt | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/examples/qmltest/qmltest/.prev_CMakeLists.txt b/examples/qmltest/qmltest/.prev_CMakeLists.txt index 1000bba18c..a24e6ef85e 100644 --- a/examples/qmltest/qmltest/.prev_CMakeLists.txt +++ b/examples/qmltest/qmltest/.prev_CMakeLists.txt @@ -21,6 +21,12 @@ target_link_libraries(tst_qmltestexample PUBLIC Qt::Core Qt::Gui ) +if(QT_BUILDING_QT) + target_link_libraries(tst_qmltestexample PUBLIC + Qt::Qml + Qt::QuickTest + ) +endif() install(TARGETS tst_qmltestexample RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" diff --git a/examples/qmltest/qmltest/CMakeLists.txt b/examples/qmltest/qmltest/CMakeLists.txt index 3fa8eed58d..2c99b73998 100644 --- a/examples/qmltest/qmltest/CMakeLists.txt +++ b/examples/qmltest/qmltest/CMakeLists.txt @@ -28,6 +28,16 @@ target_link_libraries(tst_qmltestexample PUBLIC # special case end ) +# special case begin +# This ling get added, but does not make sense +#if(QT_BUILDING_QT) +# target_link_libraries(tst_qmltestexample PUBLIC +# Qt::Qml +# Qt::QuickTest +# ) +#endif() +# special case end + install(TARGETS tst_qmltestexample RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" |