Doc: cmake now joins parts of offline doc

This commit is contained in:
Yorik van Havre
2018-03-19 12:39:17 -03:00
parent b45bc4889d
commit dbad77bd79
3 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,10 @@
# join offline doc parts
if(WIN32)
EXECUTE_PROCESS(COMMAND powershell gc ${CMAKE_SOURCE_DIR}/src/Doc/freecad.qch.part* -Enc Byte -Read 1024 | sc ${CMAKE_BINARY_DIR}/src/Doc/freecad.qch -Enc Byte)
# gc is an alias for Get-Content, sc is an alias for Set-Content, -Read XXXX can be adjusted up for performance, if the user has insufficient RAM it might fail
else(WIN32)
EXECUTE_PROCESS(COMMAND sh -c "cat ${CMAKE_SOURCE_DIR}/src/Doc/freecad.qch.part* >> ${CMAKE_BINARY_DIR}/src/Doc/freecad.qch" )
endif(WIN32)
add_subdirectory(Build)
add_subdirectory(3rdParty)
@@ -9,7 +16,7 @@ add_subdirectory(Ext)
if(BUILD_GUI)
add_subdirectory(Gui)
configure_file(Doc/freecad.qhc ${CMAKE_BINARY_DIR}/doc/freecad.qhc COPYONLY)
configure_file(Doc/freecad.qch ${CMAKE_BINARY_DIR}/doc/freecad.qch COPYONLY)
#configure_file(Doc/freecad.qch ${CMAKE_BINARY_DIR}/doc/freecad.qch COPYONLY)
endif(BUILD_GUI)
if(BUILD_TEMPLATE)
@@ -26,7 +33,7 @@ endif(FREECAD_MAINTAINERS_BUILD AND WIN32)
INSTALL(FILES
Doc/freecad.qhc
Doc/freecad.qch
${CMAKE_BINARY_DIR}/src/Doc/freecad.qch
Doc/ThirdPartyLibraries.html
DESTINATION ${CMAKE_INSTALL_DOCDIR}
)

Binary file not shown.

Binary file not shown.