fixed: set a default docdir

also set the common executable directory in AppCommon
This commit is contained in:
Arne Morten Kvarving
2017-05-22 10:47:38 +02:00
parent 79fa468077
commit 62714fa166
4 changed files with 5 additions and 5 deletions

View File

@@ -8,6 +8,9 @@ macro(add_doc_target appname dox)
configure_file(doc/${dox}.dox.in ${dox}.dox)
if(IFEM_INSTALL_DOXY)
if(NOT CMAKE_INSTALL_DOCDIR)
set(CMAKE_INSTALL_DOCDIR share/doc/libifem1)
endif()
install(CODE "EXECUTE_PROCESS(COMMAND ${CMAKE_BUILD_TOOL} doc WORKING_DIRECTORY \"${CMAKE_CURRENT_BINARY_DIR}\")" COMPONENT doc)
install(DIRECTORY ${PROJECT_BINARY_DIR}/doc/html DESTINATION ${CMAKE_INSTALL_DOCDIR}/Apps/${appname}
COMPONENT doc