summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt2
-rw-r--r--tests/tst_FileSystem.cpp1
-rw-r--r--tests/tst_ModList.cpp1
3 files changed, 3 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 89bf63ee..4e37fa34 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,5 +1,5 @@
# run the unit tests with `make test`
-find_package(Qt5 COMPONENTS Test Core Network)
+find_package(Qt5Test)
unset(MultiMC_TESTS)
macro(add_unit_test name)
diff --git a/tests/tst_FileSystem.cpp b/tests/tst_FileSystem.cpp
index a9406d13..ae1f93bb 100644
--- a/tests/tst_FileSystem.cpp
+++ b/tests/tst_FileSystem.cpp
@@ -1,4 +1,5 @@
#include <QTest>
+#include <QTemporaryDir>
#include "TestUtil.h"
#include "FileSystem.h"
diff --git a/tests/tst_ModList.cpp b/tests/tst_ModList.cpp
index 09870245..e3aa1435 100644
--- a/tests/tst_ModList.cpp
+++ b/tests/tst_ModList.cpp
@@ -1,5 +1,6 @@
#include <QTest>
+#include <QTemporaryDir>
#include "TestUtil.h"
#include "FileSystem.h"