summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-09-28 20:53:46 +0200
committerPetr Mrázek <peterix@gmail.com>2015-09-28 20:53:46 +0200
commit143e24fa04f0126d91b65b4035dd6ec556c79b00 (patch)
treeee0e78b50e9c433bb43149f503694843b9f2eae2 /tests
parent33c3850b40aba095b056738448c235190aeb1aab (diff)
downloadMultiMC-143e24fa04f0126d91b65b4035dd6ec556c79b00.tar
MultiMC-143e24fa04f0126d91b65b4035dd6ec556c79b00.tar.gz
MultiMC-143e24fa04f0126d91b65b4035dd6ec556c79b00.tar.lz
MultiMC-143e24fa04f0126d91b65b4035dd6ec556c79b00.tar.xz
MultiMC-143e24fa04f0126d91b65b4035dd6ec556c79b00.zip
NOISSUE clean up some old cmake messes
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 31537c75..a09eb66a 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,21 +1,18 @@
# run the unit tests with `make test`
find_package(Qt5 COMPONENTS Test Core Network)
-include_directories(../logic ${CMAKE_CURRENT_BINARY_DIR}/../logic)
-include_directories(../depends/util/include/)
-
unset(MultiMC_TESTS)
macro(add_unit_test name)
unset(srcs)
foreach(arg ${testname} ${ARGN})
list(APPEND srcs ${CMAKE_CURRENT_SOURCE_DIR}/${arg})
- if(WIN32)
- list(APPEND srcs ${CMAKE_CURRENT_SOURCE_DIR}/test.rc)
- endif()
+ if(WIN32)
+ list(APPEND srcs ${CMAKE_CURRENT_SOURCE_DIR}/test.rc)
+ endif()
endforeach()
add_executable(tst_${name} ${srcs})
- qt5_use_modules(tst_${name} Test Core Network)
target_link_libraries(tst_${name} MultiMC_logic)
+ qt5_use_modules(tst_${name} Test Core Network)
list(APPEND MultiMC_TESTS tst_${name})
add_test(NAME ${name} COMMAND tst_${name})
endmacro()