Move tests to their own folder.

This commit is contained in:
Mikaël Capelle
2022-05-08 11:14:01 +02:00
parent efaea1edfe
commit 40c6119515
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -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)
+2
View File
@@ -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)