From 40c61195150c2fc4dd3a42b5e824db676e3856e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Sun, 8 May 2022 11:14:01 +0200 Subject: [PATCH] Move tests to their own folder. --- tests/python/CMakeLists.txt | 2 ++ tests/runner/CMakeLists.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/python/CMakeLists.txt b/tests/python/CMakeLists.txt index dbff9f7..3c4e2dd 100644 --- a/tests/python/CMakeLists.txt +++ b/tests/python/CMakeLists.txt @@ -32,6 +32,7 @@ mo2_python_pip_install(python-tests DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/pylibs PACKAGES pytest PyQt6==6.3.0) add_dependencies(python-tests mobase) +set_target_properties(python-tests PROPERTIES FOLDER tests/python) file(GLOB test_files CONFIGURE_DEPENDS "test_*.cpp") foreach (test_file ${test_files}) @@ -42,6 +43,7 @@ foreach (test_file ${test_files}) set_target_properties(${target} PROPERTIES OUTPUT_NAME ${pymodule} + FOLDER tests/python LIBRARY_OUTPUT_DIRECTORY "${PYLIB_DIR}/mobase_tests") if(DEFINED CMAKE_CONFIGURATION_TYPES) diff --git a/tests/runner/CMakeLists.txt b/tests/runner/CMakeLists.txt index 2122404..0b17188 100644 --- a/tests/runner/CMakeLists.txt +++ b/tests/runner/CMakeLists.txt @@ -7,6 +7,8 @@ cmake_minimum_required(VERSION 3.22) add_executable(runner-tests EXCLUDE_FROM_ALL) mo2_configure_tests(runner-tests WARNINGS OFF) +set_target_properties(runner-tests PROPERTIES FOLDER tests/runner) + # add mocks target_include_directories(runner-tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../mocks)