<commit_before># aux_source_directory(. DIR_UTILTEST_SRCS)
macro(sf_add_unittest name)
  set(CMAKE_CXX_STANDARD 17)
  find_package(
    OpenSSL
    COMPONENTS Crypto SSL
    REQUIRED)
  if(OPENSSL_FOUND)
    message("OPENSSL_FOUND ${name} ${OPENSSL_ROOT_DIR}  ${OPENSSL_SSL_LIBRARY}")
  else()
    message("OPENSSL_NOT_FOUND")
  endif()

  add_executable(${name} ${name}.cpp)
  target_include_directories(${name} PRIVATE)
  target_link_libraries(
    ${name} PRIVATE utils -fsanitize=address -g3 -fno-omit-frame-pointer ${CURL_LIB_NAME} 
                    ${OPENSSL_SSL_LIBRARY} -rdynamic lua pugixml tinyxml2 jsoncpp_static)

  # add test to a virtual project group
  set_property(TARGET ${name} PROPERTY FOLDER "examples")
endmacro()
# link_directories("${workspaceFolder}/openssl-1.1.1i/install/lib")
# set(OPENSSL_ROOT_DIR "${workspaceFolder}/openssl-1.1.1i/install")
# set(OPENSSL_INCLUDE_DIR "${workspaceFolder}/openssl-1.1.1i/install/include")
# set(OPENSSL_CRYPTO_LIBRARY "${workspaceFolder}/openssl-1.1.1i/install/lib")
if(BUILD_WITH_QT)
  message(STATUS "qtdir ${Qt5_Dir}")
  execute_process(COMMAND "ls " "-l" "${Qt5_DIR}")
  find_package(Qt5 REQUIRED COMPONENTS Widgets WebEngineWidgets)
  if(Qt5_FOUND)
    message("Qt5_FOUND")
  else()<commit_msg>linux cpp ci vs2019 add c++17<commit_after># aux_source_directory(. DIR_UTILTEST_SRCS)
macro(sf_add_unittest name)
  set(CMAKE_CXX_STANDARD 17)
  find_package(
    OpenSSL
    COMPONENTS Crypto SSL
    REQUIRED)
  if(OPENSSL_FOUND)
    message("OPENSSL_FOUND ${name} ${OPENSSL_ROOT_DIR}  ${OPENSSL_SSL_LIBRARY}")
  else()
    message("OPENSSL_NOT_FOUND")
  endif()

  if(MSVC_VERSION GREATER_EQUAL "1900")
    include(CheckCXXCompilerFlag)
    check_cxx_compiler_flag("/std:c++latest" _cpp_latest_flag_supported)
    if(_cpp_latest_flag_supported)
      add_compile_options("/std:c++latest")
    endif()
  endif()

  add_executable(${name} ${name}.cpp)
  target_include_directories(${name} PRIVATE)
  target_link_libraries(
    ${name}
    PRIVATE utils
            -fsanitize=address
            -g3
            -fno-omit-frame-pointer
            ${CURL_LIB_NAME}
            ${OPENSSL_SSL_LIBRARY}
            -rdynamic
            lua
            pugixml
            tinyxml2
            jsoncpp_static)

  # add test to a virtual project group
  set_property(TARGET ${name} PROPERTY FOLDER "examples")
endmacro()
# link_directories("${workspaceFolder}/openssl-1.1.1i/install/lib")
# set(OPENSSL_ROOT_DIR "${workspaceFolder}/openssl-1.1.1i/install")
# set(OPENSSL_INCLUDE_DIR "${workspaceFolder}/openssl-1.1.1i/install/include")
# set(OPENSSL_CRYPTO_LIBRARY "${workspaceFolder}/openssl-1.1.1i/install/lib")
if(BUILD_WITH_QT)
  message(STATUS "qtdir ${Qt5_Dir}")
  execute_process(COMMAND "ls " "-l" "${Qt5_DIR}")
  find_package(Qt5 REQUIRED COMPONENTS Widgets WebEngineWidgets)
  if(Qt5_FOUND)
    message("Qt5_FOUND")
  else()
{'fraction_non_alphanumeric': 0.1243953006219765, 'fraction_numerical': 0.01796821008984105, 'mean_word_length': 4.381040892193308, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2753577', 'n_tokens_mistral': 1115, 'n_tokens_neox': 1051, 'n_words': 164}