From 0cc09a0c0e794589695720140d37e79033653785 Mon Sep 17 00:00:00 2001 From: Denes Matetelki Date: Sat, 6 Jul 2013 19:27:58 +0200 Subject: [PATCH] linking to and finding mysqlclient --- build/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/CMakeLists.txt b/build/CMakeLists.txt index 12b90a4..b28fa26 100644 --- a/build/CMakeLists.txt +++ b/build/CMakeLists.txt @@ -12,4 +12,8 @@ include_directories (../include) aux_source_directory(../src CPP_UTILS_LIB_SOURCES) add_library (CppUtils SHARED ${CPP_UTILS_LIB_SOURCES}) -target_link_libraries(CppUtils pthread rt gcov ) + +add_library( mysqlclient SHARED IMPORTED ) +set_target_properties( mysqlclient PROPERTIES IMPORTED_LOCATION /usr/lib/mysql/libmysqlclient.so ) + +target_link_libraries(CppUtils pthread rt gcov ssl mysqlclient)