mdbx-cmake: add a few smoke-like tests.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2022-04-21 19:49:57 +03:00
parent e875d2128e
commit 03f9ed8820
3 changed files with 58 additions and 2 deletions

View File

@@ -112,7 +112,10 @@ else()
endif()
endif()
if(MDBX_AMALGAMATED_SOURCE AND DEFINED MDBX_ENABLE_TESTS AND MDBX_ENABLE_TESTS)
if(NOT MDBX_AMALGAMATED_SOURCE)
include(CTest)
option(MDBX_ENABLE_TESTS "Build libmdbx tests." ${BUILD_TESTING})
elseif(DEFINED MDBX_ENABLE_TESTS AND MDBX_ENABLE_TESTS)
message(WARNING "MDBX_ENABLE_TESTS=${MDBX_ENABLE_TESTS}: But amalgamated source code don't includes tests.")
set(MDBX_ENABLE_TESTS OFF)
endif()