Sha256: 90c81e42e0f37cf5c0fe4407d5c4b6ab5f340dd5cdb0535ca311a03003a71d4c
Contents?: true
Size: 1.33 KB
Versions: 6
Compression:
Stored size: 1.33 KB
Contents
if(ENABLE_TESTING) file( GENERATE OUTPUT ${PROJECT_BINARY_DIR}/generated/test_config.hxx CONTENT " #pragma once #define LIBCOUCHBASE_EXT_PATH \"$<TARGET_FILE:couchbase>\" ") add_subdirectory(third_party/catch2) list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/third_party/catch2/contrib") enable_testing() include(Catch) macro(ruby_test name) add_executable(test_ruby_${name} "${CMAKE_SOURCE_DIR}/test/test_ruby_${name}.cxx") target_include_directories(test_ruby_${name} PRIVATE ${PROJECT_BINARY_DIR}/generated) target_link_libraries( test_ruby_${name} project_options project_warnings ${RUBY_LIBRARY} couchbase Catch2::Catch2) catch_discover_tests(test_ruby_${name}) endmacro() macro(native_test name) add_executable(test_native_${name} "${CMAKE_SOURCE_DIR}/test/test_native_${name}.cxx") target_include_directories(test_native_${name} PRIVATE ${PROJECT_BINARY_DIR}/generated) target_link_libraries( test_native_${name} project_options project_warnings Catch2::Catch2 OpenSSL::SSL OpenSSL::Crypto platform cbcrypto cbsasl http_parser snappy spdlog::spdlog_header_only) catch_discover_tests(test_native_${name}) endmacro() add_subdirectory(${CMAKE_SOURCE_DIR}/test) endif()
Version data entries
6 entries across 6 versions & 1 rubygems