diff options
author | Cristian Adam <cristian.adam@gmail.com> | 2019-05-12 22:20:56 +0200 |
---|---|---|
committer | Cristian Adam <cristian.adam@gmail.com> | 2019-05-17 13:33:28 +0000 |
commit | d855b84c5df923394ace3bb91dab379f7e0daa34 (patch) | |
tree | e184ccdf5724151465a1653f9fc308af43293de8 /src/plugins/autotest | |
parent | f872a95fddd2690bb6953a17e48935c1b12d83d9 (diff) |
Qt Creator CMake port
Based on Tobias Hunger's work from a few months ago.
The CMake configuration needs libclang and Qt paths specified as
CMAKE_PREFIX_PATH.
Auto tests are run with "ctest". At the moment the pass rate is 87%.
Change-Id: Iba98e39bf22077d52706dce6c85986be67a6eab0
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/autotest')
-rw-r--r-- | src/plugins/autotest/CMakeLists.txt | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/src/plugins/autotest/CMakeLists.txt b/src/plugins/autotest/CMakeLists.txt new file mode 100644 index 00000000000..e5a6b98f3e0 --- /dev/null +++ b/src/plugins/autotest/CMakeLists.txt @@ -0,0 +1,70 @@ +if (WITH_TESTS) + set(TEST_COMPONENT QmakeProjectManager QtSupport) +endif() + +add_qtc_plugin(AutoTest + PLUGIN_DEPENDS Core CppTools Debugger ProjectExplorer QmlJSTools TextEditor ${TEST_COMPONENT} + SOURCES + autotest.qrc + autotest_global.h + autotestconstants.h + autotesticons.h + autotestplugin.cpp autotestplugin.h + autotestunittests.qrc + gtest/gtest_utils.cpp gtest/gtest_utils.h + gtest/gtestconfiguration.cpp gtest/gtestconfiguration.h + gtest/gtestconstants.h + gtest/gtestframework.cpp gtest/gtestframework.h + gtest/gtestoutputreader.cpp gtest/gtestoutputreader.h + gtest/gtestparser.cpp gtest/gtestparser.h + gtest/gtestresult.cpp gtest/gtestresult.h + gtest/gtestsettings.cpp gtest/gtestsettings.h + gtest/gtestsettingspage.cpp gtest/gtestsettingspage.h gtest/gtestsettingspage.ui + gtest/gtesttreeitem.cpp gtest/gtesttreeitem.h + gtest/gtestvisitors.cpp gtest/gtestvisitors.h + iframeworksettings.h + itestframework.h + itestparser.cpp itestparser.h + itestsettingspage.h + qtest/qttest_utils.cpp qtest/qttest_utils.h + qtest/qttestconfiguration.cpp qtest/qttestconfiguration.h + qtest/qttestconstants.h + qtest/qttestframework.cpp qtest/qttestframework.h + qtest/qttestoutputreader.cpp qtest/qttestoutputreader.h + qtest/qttestparser.cpp qtest/qttestparser.h + qtest/qttestresult.cpp qtest/qttestresult.h + qtest/qttestsettings.cpp qtest/qttestsettings.h + qtest/qttestsettingspage.cpp qtest/qttestsettingspage.h qtest/qttestsettingspage.ui + qtest/qttesttreeitem.cpp qtest/qttesttreeitem.h + qtest/qttestvisitors.cpp qtest/qttestvisitors.h + quick/quicktest_utils.cpp quick/quicktest_utils.h + quick/quicktestconfiguration.cpp quick/quicktestconfiguration.h + quick/quicktestframework.cpp quick/quicktestframework.h + quick/quicktestparser.cpp quick/quicktestparser.h + quick/quicktesttreeitem.cpp quick/quicktesttreeitem.h + quick/quicktestvisitors.cpp quick/quicktestvisitors.h + testcodeparser.cpp testcodeparser.h + testconfiguration.cpp testconfiguration.h + testeditormark.cpp testeditormark.h + testframeworkmanager.cpp testframeworkmanager.h + testnavigationwidget.cpp testnavigationwidget.h + testoutputreader.cpp testoutputreader.h + testresult.cpp testresult.h + testresultdelegate.cpp testresultdelegate.h + testresultmodel.cpp testresultmodel.h + testresultspane.cpp testresultspane.h + testrunconfiguration.h + testrunner.cpp testrunner.h + testsettings.cpp testsettings.h + testsettingspage.cpp testsettingspage.h testsettingspage.ui + testtreeitem.cpp testtreeitem.h + testtreeitemdelegate.cpp testtreeitemdelegate.h + testtreemodel.cpp testtreemodel.h + testtreeview.cpp testtreeview.h +) + +if (WITH_TESTS) + target_sources(AutoTest PRIVATE + autotestunittests.cpp autotestunittests.h + ) +endif() |