set_target_properties(kolabxml PROPERTIES VERSION 3.0.0 SOVERSION 0)
install(TARGETS kolabxml LIBRARY DESTINATION lib)
install( FILES
kolabformat.h
kolabevent.h
kolabtodo.h
kolabjournal.h
kolabcontact.h
kolabnote.h
kolabcontainers.h
global_definitions.h
DESTINATION include/kolab COMPONENT Devel)
#----- The following makes sure libkolabxml is found in the install directory for installed files and not in the build directory (for libraries which link to libkolabxml)
# use, i.e. don't skip the full RPATH for the build tree
SET(CMAKE_SKIP_BUILD_RPATH FALSE)
# when building, don't use the install RPATH already(but later on when installing)