[Kolab-devel] c++/lib c++/tests DEVELOPMENT
Thomas Jarosch
thomas.jarosch at intra2net.com
Fri Feb 24 13:17:26 CET 2012
On Friday, 24. February 2012 11:54:42 Jeroen van Meeuwen (Kolab Systems)
wrote:
> On 2012-02-24 0:34, Christian Mollekopf wrote:
> > diff --git a/c++/lib/CMakeLists.txt b/c++/lib/CMakeLists.txt
> > index 9cc48f1..dfd4921 100644
> > --- a/c++/lib/CMakeLists.txt
> > +++ b/c++/lib/CMakeLists.txt
> > @@ -10,7 +10,7 @@ set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC " )
> > #always generate shared libra
> >
> > #Library with serialization/deserialization code and
> >
> > kolab-containers
> >
> > add_library(kolabxml SHARED kolabformat.cpp kolabcontainers.cpp
> >
> > kolabevent.cpp kolabtodo.cpp kolabjournal.cpp kolabcontact.cpp
> > utils.cpp base64.cpp ../compiled/XMLParserWrapper.cpp
> > ../compiled/grammar-input-stream.cxx ${SCHEMA_SOURCEFILES})
> > -target_link_libraries(kolabxml ${XERCES_C})
> > +target_link_libraries(kolabxml ${XERCES_C} boost_thread)
CMakeLists.txt should read something like this:
# boost
find_package(Boost COMPONENTS thread REQUIRED)
target_link_libraries(kolabxml ${Boost_LIBRARIES})
This will pick up the correct library automatically.
Thomas
More information about the devel
mailing list