summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Wagner <david.wagner@intel.com>2014-02-17 17:53:11 +0100
committerDavid Wagner <david.wagner@intel.com>2014-02-17 17:58:31 +0100
commit4df5f7eea545fd812f8caad4eefbfa3435516000 (patch)
tree982d748651158b51217f4f2881bcba5c99b08819
parent3fac6d8f4e0d65a02a478dd32947c74b82b1b7b5 (diff)
downloadexternal_parameter-framework-4df5f7eea545fd812f8caad4eefbfa3435516000.zip
external_parameter-framework-4df5f7eea545fd812f8caad4eefbfa3435516000.tar.gz
external_parameter-framework-4df5f7eea545fd812f8caad4eefbfa3435516000.tar.bz2
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>
-rw-r--r--parameter/CMakeLists.txt2
-rw-r--r--remote-process/CMakeLists.txt2
-rw-r--r--remote-processor/CMakeLists.txt2
-rw-r--r--test/test-platform/CMakeLists.txt2
-rw-r--r--xmlserializer/CMakeLists.txt2
5 files changed, 10 insertions, 0 deletions
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}/utility")
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}/remote-processor")
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 @@ include(FindThreads)
# 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}/remote-processor")
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 @@ 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)