diff options
Diffstat (limited to 'tests/auto/corelib/mimetypes/qmimedatabase/qmimedatabase-xml/.prev_CMakeLists.txt')
-rw-r--r-- | tests/auto/corelib/mimetypes/qmimedatabase/qmimedatabase-xml/.prev_CMakeLists.txt | 71 |
1 files changed, 50 insertions, 21 deletions
diff --git a/tests/auto/corelib/mimetypes/qmimedatabase/qmimedatabase-xml/.prev_CMakeLists.txt b/tests/auto/corelib/mimetypes/qmimedatabase/qmimedatabase-xml/.prev_CMakeLists.txt index a33b6c4dcf..1672255d29 100644 --- a/tests/auto/corelib/mimetypes/qmimedatabase/qmimedatabase-xml/.prev_CMakeLists.txt +++ b/tests/auto/corelib/mimetypes/qmimedatabase/qmimedatabase-xml/.prev_CMakeLists.txt @@ -1,11 +1,14 @@ # Generated from qmimedatabase-xml.pro. +if(NOT QT_FEATURE_private_tests) + return() +endif() + ##################################################################### ## tst_qmimedatabase-xml Test: ##################################################################### add_qt_test(tst_qmimedatabase-xml - GUI SOURCES ../tst_qmimedatabase.h tst_qmimedatabase-xml.cpp @@ -14,55 +17,81 @@ add_qt_test(tst_qmimedatabase-xml ) # Resources: -set_source_files_properties("/Volumes/T3/Dev/qt/qt5_cmake/qtbase/src/corelib/mimetypes/mime/packages/freedesktop.org.xml" - PROPERTIES alias "freedesktop.org.xml" +set_source_files_properties("/devel/work/qt-cmake/qtbase/src/corelib/mimetypes/mime/packages/freedesktop.org.xml" + PROPERTIES QT_RESOURCE_ALIAS "freedesktop.org.xml" +) +set(mimetypes_resource_files + "mime/packages/freedesktop.org.xml" ) + add_qt_resource(tst_qmimedatabase-xml "mimetypes" PREFIX "/qt-project.org/qmime/packages" BASE - "/Volumes/T3/Dev/qt/qt5_cmake/qtbase/src/corelib/mimetypes" + "/devel/work/qt-cmake/qtbase/src/corelib/mimetypes" FILES - mime/packages/freedesktop.org.xml + ${mimetypes_resource_files} +) +set_source_files_properties("../invalid-magic1.xml" + PROPERTIES QT_RESOURCE_ALIAS "invalid-magic1.xml" +) +set_source_files_properties("../invalid-magic2.xml" + PROPERTIES QT_RESOURCE_ALIAS "invalid-magic2.xml" +) +set_source_files_properties("../invalid-magic3.xml" + PROPERTIES QT_RESOURCE_ALIAS "invalid-magic3.xml" +) +set_source_files_properties("../magic-and-hierarchy.foo" + PROPERTIES QT_RESOURCE_ALIAS "magic-and-hierarchy.foo" +) +set_source_files_properties("../magic-and-hierarchy.xml" + PROPERTIES QT_RESOURCE_ALIAS "magic-and-hierarchy.xml" +) +set_source_files_properties("../magic-and-hierarchy2.foo" + PROPERTIES QT_RESOURCE_ALIAS "magic-and-hierarchy2.foo" ) set_source_files_properties("../qml-again.xml" - PROPERTIES alias "qml-again.xml" + PROPERTIES QT_RESOURCE_ALIAS "qml-again.xml" ) set_source_files_properties("../test.qml" - PROPERTIES alias "test.qml" + PROPERTIES QT_RESOURCE_ALIAS "test.qml" ) set_source_files_properties("../text-x-objcsrc.xml" - PROPERTIES alias "text-x-objcsrc.xml" + PROPERTIES QT_RESOURCE_ALIAS "text-x-objcsrc.xml" ) set_source_files_properties("../yast2-metapackage-handler-mimetypes.xml" - PROPERTIES alias "yast2-metapackage-handler-mimetypes.xml" + PROPERTIES QT_RESOURCE_ALIAS "yast2-metapackage-handler-mimetypes.xml" ) +set(testdata_resource_files + "invalid-magic1.xml" + "invalid-magic2.xml" + "invalid-magic3.xml" + "magic-and-hierarchy.foo" + "magic-and-hierarchy.xml" + "magic-and-hierarchy2.foo" + "qml-again.xml" + "test.qml" + "text-x-objcsrc.xml" + "yast2-metapackage-handler-mimetypes.xml" +) + add_qt_resource(tst_qmimedatabase-xml "testdata" PREFIX "/qt-project.org/qmime" BASE ".." FILES - invalid-magic1.xml - invalid-magic2.xml - invalid-magic3.xml - magic-and-hierarchy.foo - magic-and-hierarchy.xml - magic-and-hierarchy2.foo - qml-again.xml - test.qml - text-x-objcsrc.xml - yast2-metapackage-handler-mimetypes.xml + ${testdata_resource_files} ) #### Keys ignored in scope 1:.:.:qmimedatabase-xml.pro:<TRUE>: -# CONFIG = "testcase" +# _REQUIREMENTS = "qtConfig(private_tests)" ## Scopes: ##################################################################### -extend_target(tst_qmimedatabase-xml CONDITION 2*_x_ - g +extend_target(tst_qmimedatabase-xml CONDITION GCC COMPILE_OPTIONS -W -Wall |