Instead of unusual use of full destination path for apidox in build directory, use simple 'apidocs'.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/28/head
Slávek Banko 4 years ago
parent 2d10834c46
commit e6dccd3173
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -68,9 +68,8 @@ add_definitions(
if( CMAKE_APIDOX_HTML_DIRECTORY )
set( APIDOX_HTML_DIRECTORY "${CMAKE_APIDOX_HTML_DIRECTORY}" )
else()
set( APIDOX_HTML_DIRECTORY "usr/share/doc/libdbus-1-tqt/HTML" )
set( APIDOX_HTML_DIRECTORY "/usr/share/doc/lib${PROJECT_NAME}/HTML" )
endif()
set( APIDOX_DIRECTORY "${CMAKE_BINARY_DIR}/${APIDOX_HTML_DIRECTORY}/en" )
##### source directories ########################

@ -38,7 +38,7 @@ PROJECT_NUMBER = 1.0
# If a relative path is entered, it will be relative to the location
# where doxygen was started. If left blank the current directory will be used.
OUTPUT_DIRECTORY = ${APIDOX_DIRECTORY}
OUTPUT_DIRECTORY = apidocs
# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
# 4096 sub-directories (in 2 levels) under the output directory of each output

@ -1,4 +1,4 @@
#################################################
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
@ -62,20 +62,19 @@ tde_add_executable( dbusxml2qt3
##### add apidox targets ############
add_custom_target( apidox
COMMAND test -d ${APIDOX_DIRECTORY} || mkdir -p ${APIDOX_DIRECTORY}
COMMAND doxygen ${CMAKE_BINARY_DIR}/dbus-1-tqt.Doxyfile
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
)
add_custom_target( install-apidox
COMMAND ${CMAKE_COMMAND} -E echo Apidox installed in /${APIDOX_HTML_DIRECTORY}
COMMAND ${CMAKE_COMMAND} -E echo Apidox installed in ${APIDOX_HTML_DIRECTORY}
)
install( CODE "
if( EXISTS ${CMAKE_BINARY_DIR}/${APIDOX_HTML_DIRECTORY} )
if( EXISTS ${CMAKE_BINARY_DIR}/apidocs )
file(
INSTALL ${CMAKE_BINARY_DIR}/${APIDOX_HTML_DIRECTORY}/en
DESTINATION /${APIDOX_HTML_DIRECTORY}
INSTALL ${CMAKE_BINARY_DIR}/apidocs/
DESTINATION ${APIDOX_HTML_DIRECTORY}/en
)
endif()"
)

Loading…
Cancel
Save