From eecf40c121274108923885dec386c908b575883c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 30 Mar 2015 14:43:15 -0700 Subject: cmake: fix Documentation build and install Signed-off-by: Dirk Hohndel --- CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1fcfba2f6..758d3cf28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -323,16 +323,19 @@ test(TestProfile testprofile.cpp) test(TestGpsCoords testgpscoords.cpp) test(TestParse testparse.cpp) +ADD_CUSTOM_TARGET(documentation ALL mkdir -p ${CMAKE_BINARY_DIR}/Documentation/ \\; make -C ${CMAKE_SOURCE_DIR}/Documentation OUT=${CMAKE_BINARY_DIR}/Documentation/ doc) + # install Subsurface # first some variables with files that need installing set(DOCFILES README ReleaseNotes/ReleaseNotes.txt - SupportedDivecomputers.txt Documentation/user-manual.html - Documentation/user-manual_es.html - Documentation/user-manual_fr.html - Documentation/user-manual_ru.html + SupportedDivecomputers.txt + ${CMAKE_BINARY_DIR}/Documentation/user-manual.html + ${CMAKE_BINARY_DIR}/Documentation/user-manual_es.html + ${CMAKE_BINARY_DIR}/Documentation/user-manual_fr.html + ${CMAKE_BINARY_DIR}/Documentation/user-manual_ru.html ) set(TRANSLATION_SRC -- cgit v1.2.3-70-g09d2