summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 19a67a3..c09379a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -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()"
)