Building c++ Connector w. VS 2012 - Linking Error

  • I've build the mysql c++ connector with cmake for visual studio 11 (/12). But now, if i want to compile the generated projects (MYSQLCPPCONN.sln) i get aloooot of linking errors. No clue what i have to link to. Any Ideas? Thanks!

    Code
    Error 33 error LNK2019: unresolved external symbol _mysql_server_init@12 referenced in function "private: __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::LibmysqlStaticProxy(void)" (??0LibmysqlStaticProxy@NativeAPI@mysql@sql@@AAE@XZ) C:\mysql-connector-c++-1.1.3\driver\mysql_client_api.obj
    Error 34 error LNK2019: unresolved external symbol _mysql_server_end@0 referenced in function "public: virtual __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::~LibmysqlStaticProxy(void)" (??1LibmysqlStaticProxy@NativeAPI@mysql@sql@@UAE@XZ) C:\mysql-connector-c++-1.1.3\driver\mysql_client_api.obj
    Error 35 error LNK2019: unresolved external symbol _mysql_thread_init@0 referenced in function "public: virtual void __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::thread_init(void)" (?thread_init@LibmysqlStaticProxy@NativeAPI@mysql@sql@@UAEXXZ) C:\mysql-connector-c++-1.1.3\driver\mysql_client_api.obj
    Error 36 error LNK2019: unresolved external symbol _mysql_thread_end@0 referenced in function "public: virtual void __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::thread_end(void)" (?thread_end@LibmysqlStaticProxy@NativeAPI@mysql@sql@@UAEXXZ) C:\mysql-connector-c++-1.1.3\driver\mysql_client_api.obj
    Error 37 error LNK2019: unresolved external symbol _mysql_num_rows@4 referenced in function "public: virtual unsigned __int64 __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::num_rows(struct st_mysql_res *)" (?num_rows@LibmysqlStaticProxy@NativeAPI@mysql@sql@@UAE_KPAUst_mysql_res@@@Z) C:\mysql-connector-c++-1.1.3\driver\mysql_client_api.obj
    Error 38 error LNK2019: unresolved external symbol _mysql_num_fields@4 referenced in function "public: virtual unsigned int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::num_fields(struct st_mysql_res *)" (?num_fields@LibmysqlStaticProxy@NativeAPI@mysql@sql@@UAEIPAUst_mysql_res@@@Z) C:\mysql-connector-c++-1.1.3\driver\mysql_client_api.obj
    Error 39 error LNK2019: unresolved external symbol _mysql_fetch_field_direct@8 referenced in function "public: virtual struct st_mysql_field * __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::fetch_field_direct(struct st_mysql_res *,unsigned int)" (?fetch_field_direct@LibmysqlStaticProxy@NativeAPI@mysql@sql@@UAEPAUst_mysql_field@@PAUst_mysql_res@@I@Z) C:\mysql-connector-c++-1.1.3\driver\mysql_client_api.obj
    Error 40 error LNK2019: unresolved external symbol _mysql_field_count@4 referenced in function "public: virtual unsigned int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::field_count(struct st_mysql *)" (?field_count@LibmysqlStaticProxy@NativeAPI@mysql@sql@@UAEIPAUst_mysql@@@Z) C:\mysql-connector-c++-1.1.3\driver\mysql_client_api.obj