From 4df5f7eea545fd812f8caad4eefbfa3435516000 Mon Sep 17 00:00:00 2001 From: David Wagner Date: Mon, 17 Feb 2014 17:53:11 +0100 Subject: CMake: add installation instruction Run "cmake -DCMAKE_INSTALL_PREFIX=/path/to/install ." for choosing a custom prefix (optional: if it is not specified, a default directory will be chosen). Run "make install" for installing all generated files. Signed-off-by: David Wagner --- xmlserializer/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xmlserializer') diff --git a/xmlserializer/CMakeLists.txt b/xmlserializer/CMakeLists.txt index 052ca2e..c4358b1 100644 --- a/xmlserializer/CMakeLists.txt +++ b/xmlserializer/CMakeLists.txt @@ -14,3 +14,5 @@ include(FindLibXml2) # TODO: check for the "XInclude" feature in libxml2 include_directories(${LIBXML2_INCLUDE_DIR}) target_link_libraries(xmlserializer ${LIBXML2_LIBRARIES}) + +install(TARGETS xmlserializer LIBRARY DESTINATION lib) -- cgit v1.1