From 616dd428914ceef84f0347538a73201e40da685b Mon Sep 17 00:00:00 2001 From: Pierre Marijon Date: Mon, 5 May 2014 23:28:56 +0200 Subject: [PATCH 1/2] Documentation is add one install target (optional). --- src/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c911e95..10b303f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -49,3 +49,15 @@ install( DIRECTORY "${LIBTMX_SOURCE_DIR}/include/tmx" DESTINATION include ) + +install( + DIRECTORY "${CMAKE_BINARY_DIR}/doc/html" + DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/libes" + OPTIONAL +) + +install( + FILES "${CMAKE_BINARY_DIR}/../COPYING" + DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/libes" + OPTIONAL +) From c597a5ab58b2d3b23cb2bc3679595e98d37f700d Mon Sep 17 00:00:00 2001 From: Pierre Marijon Date: Tue, 6 May 2014 10:30:18 +0200 Subject: [PATCH 2/2] Oups an error in doc install dir name. --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 10b303f..ba1bd01 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -52,12 +52,12 @@ install( install( DIRECTORY "${CMAKE_BINARY_DIR}/doc/html" - DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/libes" + DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/libtmx" OPTIONAL ) install( FILES "${CMAKE_BINARY_DIR}/../COPYING" - DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/libes" + DESTINATION "${CMAKE_INSTALL_PREFIX}/share/doc/libtmx" OPTIONAL )