summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-05-21 01:58:39 +0200
committerSlávek Banko <slavek.banko@axis.cz>2021-05-21 01:58:53 +0200
commit2d10834c46559c0341fd7d02b90429a86ac1c463 (patch)
treeb3716bb78278c823d588fb6da388e2d401bcfcdf
parent9768f5dfe2e24e4845a92d5692019310f7f5ed56 (diff)
downloaddbus-1-tqt-2d10834c46559c0341fd7d02b90429a86ac1c463.tar.gz
dbus-1-tqt-2d10834c46559c0341fd7d02b90429a86ac1c463.zip
Automatic apidox installation using CMake code
instead of an external shell script from cmake submodule. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--src/CMakeLists.txt14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index fa3fa5c..19a67a3 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -68,6 +68,14 @@ add_custom_target( apidox
)
add_custom_target( install-apidox
- COMMAND "./install_apidox" "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" "${APIDOX_HTML_DIRECTORY}"
- WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/cmake/"
- )
+ COMMAND ${CMAKE_COMMAND} -E echo Apidox installed in /${APIDOX_HTML_DIRECTORY}
+)
+
+install( CODE "
+ if( EXISTS ${CMAKE_BINARY_DIR}/${APIDOX_HTML_DIRECTORY} )
+ file(
+ INSTALL ${CMAKE_BINARY_DIR}/${APIDOX_HTML_DIRECTORY}/en
+ DESTINATION /${APIDOX_HTML_DIRECTORY}
+ )
+ endif()"
+)