QGIS/tests/CMakeLists.txt
Sandro Santilli e4ec6f0700 Provide a sourceable shell script setting up test environment
Testing locally becomes as simple as (from build dir):

  . tests/env.sh
  python ${srcdir}/tests/src/python/test_provider_postgres.py
2024-06-23 15:44:32 +02:00

17 lines
264 B
CMake

if (ENABLE_TESTS)
if (WITH_CORE)
add_subdirectory(src)
add_subdirectory(bench)
endif()
add_subdirectory(code_layout)
configure_file(
"${CMAKE_SOURCE_DIR}/tests/env.sh.in"
"${CMAKE_BINARY_DIR}/tests/env.sh"
IMMEDIATE @ONLY)
endif()