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 <david.wagner@intel.com>
diff --git a/parameter/CMakeLists.txt b/parameter/CMakeLists.txt
index 9d097da..73d6a93 100644
--- a/parameter/CMakeLists.txt
+++ b/parameter/CMakeLists.txt
@@ -174,3 +174,5 @@
 include_directories("${PROJECT_SOURCE_DIR}/remote-processor")
 
 target_link_libraries(parameter xmlserializer pfw_utility)
+
+install(TARGETS parameter LIBRARY DESTINATION lib)
diff --git a/remote-process/CMakeLists.txt b/remote-process/CMakeLists.txt
index 7f8a5ee..80fd177 100644
--- a/remote-process/CMakeLists.txt
+++ b/remote-process/CMakeLists.txt
@@ -6,3 +6,5 @@
 include_directories("${PROJECT_SOURCE_DIR}/utility")
 
 target_link_libraries(remote-process remote-processor pfw_utility)
+
+install(TARGETS remote-process RUNTIME DESTINATION bin)
diff --git a/remote-processor/CMakeLists.txt b/remote-processor/CMakeLists.txt
index 5cecf98..60b6ff2 100644
--- a/remote-processor/CMakeLists.txt
+++ b/remote-processor/CMakeLists.txt
@@ -12,3 +12,5 @@
 # TODO: use the "prefer pthread" option; check if we are using pthread (what to
 # do else ?)
 target_link_libraries(remote-processor ${CMAKE_THREAD_LIBS_INIT})
+
+install(TARGETS remote-processor LIBRARY DESTINATION lib)
diff --git a/test/test-platform/CMakeLists.txt b/test/test-platform/CMakeLists.txt
index 17979d0..afc7dc5 100644
--- a/test/test-platform/CMakeLists.txt
+++ b/test/test-platform/CMakeLists.txt
@@ -10,3 +10,5 @@
 include_directories("${PROJECT_SOURCE_DIR}/utility")
 
 target_link_libraries(test-platform parameter remote-processor)
+
+install(TARGETS test-platform RUNTIME DESTINATION bin)
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 @@
 # 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)