OSDN Git Service

remove documentation related option and files
[kde/libdbusmenu-qt.git] / CMakeLists.txt
index fc45d19..dafa103 100644 (file)
@@ -5,9 +5,6 @@ set(CMAKE_C_VISIBILITY_PRESET "hidden")
 set(CMAKE_CXX_VISIBILITY_PRESET "hidden")
 set(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
 
-# Build options
-option(WITH_DOC "Build documentation (requires Doxygen)" ON)
-
 # Versions
 ## Package version
 set(dbusmenu_qt_VERSION_MAJOR 0)
@@ -30,7 +27,11 @@ include(GNUInstallDirs)
 set(LIB_DESTINATION "${CMAKE_INSTALL_LIBDIR}")
 set(INCLUDE_INSTALL_DIR "include/dbusmenu-${QT_SUFFIX}")
 
-configure_file(dbusmenu-qt.pc.in ${CMAKE_BINARY_DIR}/dbusmenu-${QT_SUFFIX}.pc @ONLY)
+configure_file(
+    dbusmenu-qt.pc.in
+    ${CMAKE_BINARY_DIR}/dbusmenu-${QT_SUFFIX}.pc
+    @ONLY
+)
 
 install(
     FILES ${CMAKE_BINARY_DIR}/dbusmenu-${QT_SUFFIX}.pc
@@ -44,16 +45,3 @@ if (ENABLE_TESTING)
     enable_testing()
     add_subdirectory(tests)
 endif()
-
-if (WITH_DOC)
-    configure_file(Doxyfile.in ${CMAKE_BINARY_DIR}/Doxyfile @ONLY)
-
-    add_custom_target(doc ALL doxygen
-        WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
-    )
-
-    install(
-        DIRECTORY ${CMAKE_BINARY_DIR}/html/
-        DESTINATION share/doc/libdbusmenu-${QT_SUFFIX}-doc
-    )
-endif(WITH_DOC)