<commit_before>include_directories(${MYSQL_INCLUDE_DIR})

set(mysql_embedded_plugin_PART_SRCS main.cpp qsql_mysql_embedded.cpp )

kde4_automoc(${mysql_embedded_plugin_PART_SRCS})

kde4_add_plugin(qsql_mysql_embedded ${mysql_embedded_plugin_PART_SRCS})
set_target_properties(qsql_mysql_embedded PROPERTIES OUTPUT_NAME libqsqlmysqlembedded)

target_link_libraries(qsql_mysql_embedded ${QT_QTCORE_LIBRARY} ${QT_QTSQL_LIBRARY}
                                          ${MYSQL_EMBEDDED_LIBRARIES} ${OPENSSL_LIBRARIES} crypto crypt nsl z)<commit_msg>added MYSQL_LIBRARIES since it defines yaSSL_CTX_free while MYSQL_EMBEDDED_LIBRARIES doesn't (on kubuntu edgy at least), i.e. when mysql is compiled with --with-yassl. This fixes link errors like /usr/lib/mysql/libmysqld.a(client.o): In function `mysql_close_free_options': undefined reference to `yaSSL_CTX_free' It's a workaround imho, but it works.<commit_after>include_directories(${MYSQL_INCLUDE_DIR})

set(mysql_embedded_plugin_PART_SRCS main.cpp qsql_mysql_embedded.cpp )

kde4_automoc(${mysql_embedded_plugin_PART_SRCS})

kde4_add_plugin(qsql_mysql_embedded ${mysql_embedded_plugin_PART_SRCS})
set_target_properties(qsql_mysql_embedded PROPERTIES OUTPUT_NAME libqsqlmysqlembedded)

# MYSQL_LIBRARIES is necessary since it defines yaSSL_CTX_free while MYSQL_EMBEDDED_LIBRARIES doesn't (on kubuntu edgy at least)
target_link_libraries(qsql_mysql_embedded ${QT_QTCORE_LIBRARY} ${QT_QTSQL_LIBRARY}
                                          ${MYSQL_LIBRARIES} ${MYSQL_EMBEDDED_LIBRARIES} ${OPENSSL_LIBRARIES} crypto crypt nsl z)
{'fraction_non_alphanumeric': 0.06979695431472081, 'fraction_numerical': 0.0025380710659898475, 'mean_word_length': 6.618357487922705, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3505124', 'n_tokens_mistral': 582, 'n_tokens_neox': 549, 'n_words': 95}