diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-05-21 01:58:39 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-05-21 01:58:53 +0200 |
commit | 2d10834c46559c0341fd7d02b90429a86ac1c463 (patch) | |
tree | b3716bb78278c823d588fb6da388e2d401bcfcdf | |
parent | 9768f5dfe2e24e4845a92d5692019310f7f5ed56 (diff) | |
download | dbus-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.txt | 14 |
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()" +) |