Commit 72200273 authored by promayon's avatar promayon
Browse files

FIXED preparing camitk for debian-med inclusion

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@174 ec899d31-69d1-42ba-9299-647d76f65fb3
parent c99ffa86
......@@ -25,18 +25,20 @@ if(APIDOC_GENERATE_FOR_CAMITK_CORE)
set(DOXYGEN_LANGUAGE "English" CACHE STRING "Language used by doxygen")
mark_as_advanced(DOXYGEN_LANGUAGE)
set(DOXYGEN_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR}/../share/apidoc)
#${CAMITK_SOURCE_DIR}/../share/${CAMITK_SHORT_VERSION_STRING}/api-doc/)
message(STATUS "Generating build target 'apidoc' for CamiTK documentation")
#can now be generated doxygen with ${DOXYGEN_OUTPUT_DIR}/Doxyfile configuration file")
# define where to put the apidoc at build time
set(CAMITK_APIDOC_DIR ${CMAKE_BINARY_DIR}/share/apidoc)
set(DOXYGEN_OUTPUT_DIR ${CAMITK_APIDOC_DIR})
message(STATUS "Generating build target 'apidoc' for CamiTK documentation in ${CAMITK_APIDOC_DIR}")
# which directories to use
set(DOXYGEN_SUBDIRS)
set(DOXYGEN_SUBDIRS ${DOXYGEN_SUBDIRS} ${CAMITK_SOURCE_DIR}/actions)
set(DOXYGEN_SUBDIRS ${DOXYGEN_SUBDIRS} ${CAMITK_SOURCE_DIR}/applications)
set(DOXYGEN_SUBDIRS ${DOXYGEN_SUBDIRS} ${CAMITK_SOURCE_DIR}/cmake)
set(DOXYGEN_SUBDIRS ${DOXYGEN_SUBDIRS} ${CAMITK_SOURCE_DIR}/components)
set(DOXYGEN_SUBDIRS ${DOXYGEN_SUBDIRS} ${CAMITK_SOURCE_DIR}/core)
#set(DOXYGEN_SUBDIRS ${DOXYGEN_SUBDIRS} ${CAMITK_SOURCE_DIR}/modules)
#set(DOXYGEN_SUBDIRS ${DOXYGEN_SUBDIRS} ${CAMITK_SOURCE_DIR}/tools)
string(REGEX REPLACE ";" " " DOXYGEN_INPUT_LIST "${DOXYGEN_SUBDIRS}")
......@@ -51,18 +53,14 @@ if(APIDOC_GENERATE_FOR_CAMITK_CORE)
VERBATIM
)
# check directory
if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/../share/apidoc)
add_custom_command(TARGET apidoc
PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/../share/apidoc
COMMENT "Creating build-time group apidoc dir ${CMAKE_CURRENT_BINARY_DIR}/../share/apidoc"
VERBATIM
)
# create directory if it does not exist
if (NOT EXISTS ${CAMITK_APIDOC_DIR})
message(STATUS "Creating api-doc directory: ${CAMITK_APIDOC_DIR}")
file(MAKE_DIRECTORY ${CAMITK_APIDOC_DIR})
endif()
# doc installation
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/../share/apidoc
install(DIRECTORY ${CAMITK_APIDOC_DIR}
DESTINATION share/${CAMITK_SHORT_VERSION_STRING}
COMPONENT apidoc
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment