# $Id: CMakeLists.xconnect.lib.txt 642488 2021-12-20 21:00:34Z ucko $

NCBI_begin_lib(xconnect)
  NCBI_sources(${SRC_C} ${SRC_CXX})
  NCBI_headers(*.hpp)
  NCBI_add_include_directories(${CMAKE_CURRENT_LIST_DIR}/mbedtls)
  NCBI_optional_components(GNUTLS)
  NCBI_uses_toolkit_libraries(xncbi)
  NCBI_uses_external_libraries(${NETWORK_LIBS})
  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()
