summaryrefslogtreecommitdiffstats
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-01-31 19:21:47 +0100
committerPetr Mrázek <peterix@gmail.com>2015-04-02 11:30:38 +0200
commit9249768db5f5b09d67e81370da828e3cb99cc3df (patch)
tree3b915d591fe4cada33da7ebb8d9fd67df7d6a467 /tests/CMakeLists.txt
parent6f3aa65bd69f5155fa1ee56dee840e2e7e1d3c6f (diff)
downloadMultiMC-9249768db5f5b09d67e81370da828e3cb99cc3df.tar
MultiMC-9249768db5f5b09d67e81370da828e3cb99cc3df.tar.gz
MultiMC-9249768db5f5b09d67e81370da828e3cb99cc3df.tar.lz
MultiMC-9249768db5f5b09d67e81370da828e3cb99cc3df.tar.xz
MultiMC-9249768db5f5b09d67e81370da828e3cb99cc3df.zip
NOISSUE Make tests no longer use the MultiMC object
They do not require the application part anymore
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 7afb3f80..2f6b1a63 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 Widgets)
+find_package(Qt5 COMPONENTS Test Core Network)
include_directories(${MMC_SRC})
@@ -13,7 +13,7 @@ macro(add_unit_test name)
endif()
endforeach()
add_executable(tst_${name} ${srcs})
- qt5_use_modules(tst_${name} Test Core Network Widgets)
+ qt5_use_modules(tst_${name} Test Core Network)
target_link_libraries(tst_${name} MultiMC_common)
list(APPEND MultiMC_TESTS tst_${name})
add_test(NAME ${name} COMMAND tst_${name})
@@ -30,7 +30,7 @@ add_unit_test(UpdateChecker tst_UpdateChecker.cpp)
add_unit_test(DownloadUpdateTask tst_DownloadUpdateTask.cpp)
# Tests END #
-
+
set(COVERAGE_SOURCE_DIRS
${MMC_SRC}/logic/*
${MMC_SRC}/logic/auth/*
@@ -88,6 +88,7 @@ if(MultiMC_CODE_COVERAGE)
endif(MultiMC_CODE_COVERAGE)
set(MultiMC_TEST_DATA_PATH "${CMAKE_CURRENT_BINARY_DIR}/data")
+message("${CMAKE_CURRENT_BINARY_DIR}/data")
if(UNIX)
# on unix we get the third / from the filename
set(MultiMC_TEST_DATA_PATH "file://${MultiMC_TEST_DATA_PATH}")