diff --git a/CMakeLists.txt b/CMakeLists.txt index bcc7af45..50653924 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,6 +118,10 @@ IF(AWESOME_GENERATE_MAN) ENDFOREACH() ENDIF() +IF(DOXYGEN_EXECUTABLE) + ADD_CUSTOM_TARGET(doc ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/awesome.doxygen) +ENDIF() + INSTALL(TARGETS ${PROJECT_AWE_NAME} ${PROJECT_AWECLIENT_NAME} RUNTIME DESTINATION bin) INSTALL(FILES ${AWE_LUA_FILES} DESTINATION ${AWESOME_REL_LUA_LIB_PATH}) INSTALL(FILES ${AWE_CONF_FILES} DESTINATION ${AWESOME_REL_CONF_PATH}) diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index df603881..fc519c16 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -124,10 +124,6 @@ IF(NOT LUA_LIB) MESSAGE(FATAL_ERROR "lua library not found") ENDIF() -IF(DOXYGEN_EXECUTABLE) - ADD_CUSTOM_TARGET(doc ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/awesome.doxygen) -ENDIF() - IF(ASCIIDOC_EXECUTABLE AND XMLTO_EXECUTABLE AND GZIP_EXECUTABLE) SET(AWESOME_GENERATE_MAN TRUE) ENDIF()