diff options
-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()" +) |