Cmake подключение сторонних библиотек

Не могу подключить библиотеку к проекту - вернее вообще не знаю что делать что бы она подключилась..

1.Указать директорию где она находиться
2.Указать саму библиотеку
3.Линкануть или указать статическую

Все это я сделал не правильно - гугление не привело к положительному результату -
в и тоге все равно:
/** * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann * (http://qbnz.com/highlighter/ and http://geshi.org/) */ .ini.geshi_code {font-family:monospace;} .ini.geshi_code .imp {font-weight: bold; color: red;} .ini.geshi_code .co0 {color: #666666; font-style: italic;} .ini.geshi_code .sy0 {color: #000066; font-weight:bold;} .ini.geshi_code .st0 {color: #933;} .ini.geshi_code .re0 {color: #000066; font-weight:bold;} .ini.geshi_code .re1 {color: #000099;} .ini.geshi_code .re2 {color: #660066;} .ini.geshi_code span.xtra { display:block; }

../game/libgame.a(blabla.o): In function `WorldSession::processChatmessageFurtherAfterSecurityChecks(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, unsigned int)':
blabla.cpp:(.text+0x4e1): undefined reference to `pcrecpp::RE::Init(char const*, pcrecpp::RE_Options const*)'
blabla.cpp:(.text+0x4eb): undefined reference to `pcrecpp::RE::no_arg'
blabla.cpp:(.text+0x514): undefined reference to `pcrecpp::RE::no_arg'
blabla.cpp:(.text+0x51d): undefined reference to `pcrecpp::RE::no_arg'
blabla.cpp:(.text+0x526): undefined reference to `pcrecpp::RE::no_arg'
blabla.cpp:(.text+0x52f): undefined reference to `pcrecpp::RE::no_arg'
../game/libgame.a(blabla.o):blabla.cpp:(.text+0x53f): more undefined references to `pcrecpp::RE::no_arg' follow
../game/libgame.a(blabla.cpp.o): In function `WorldSession::processChatmessageFurtherAfterSecurityChecks(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, unsigned int)':
blabla.cpp:(.text+0x582): undefined reference to `pcrecpp::RE::FullMatch(pcrecpp::StringPiece const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&, pcrecpp::Arg const&) const'
blabla.cpp:(.text+0x58e): undefined reference to `pcrecpp::RE::~RE()'
blabla.cpp:(.text+0x5b4): undefined reference to `pcrecpp::RE::~RE()'
blabla.cpp:(.text+0x809): undefined reference to `pcrecpp::RE::~RE()'
collect2: ld returned 1 exit status
make[2]: *** [src/server/worldserver/worldserver] Error 1
make[1]: *** [src/server/worldserver/CMakeFiles/worldserver.dir/all] Error 2
make: *** [all] Error 2  
 



помогите пожалуйста - 28 часов в одну точку долблюсь

1 ответов


Посмотрите ответ на этот вопрос.