# $Id: CMakeLists.xxconnect.lib.txt 656804 2022-09-28 14:03:08Z dicuccio $

NCBI_begin_lib(xxconnect)
  NCBI_sources(${SRC_CXX})
  NCBI_headers(*.hpp)
  NCBI_add_include_directories(${CMAKE_CURRENT_LIST_DIR}/mbedtls)
  NCBI_optional_components(GNUTLS)
  NCBI_requires(NCBI_C)
  NCBI_uses_toolkit_libraries(xncbi)
  NCBI_project_tags(core)
  NCBI_project_watchers(lavr)
NCBI_end_lib()

if(CMAKE_CXX_COMPILER_ID STREQUAL "IntelLLVM"
   AND NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
    set_source_files_properties(${NCBI_CURRENT_SOURCE_DIR}/mbedtls/bignum.c
        PROPERTIES COMPILE_OPTIONS "-O")
endif()
