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)

install(TARGETS qsql_mysql_embedded DESTINATION ${QT_INCLUDE_DIR}/../plugins/sqldrivers)

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)

install(TARGETS qsql_mysql_embedded DESTINATION ${QT_PLUGINS_DIR}/sqldrivers)

Install the sql driver in the right place. FindQt4.cmake is a mine of useful information.
Install the sql driver in the right place.  FindQt4.cmake is a mine of
useful information.

svn path=/trunk/KDE/kdepim/; revision=623900
