blob: 588cfb907031c85e006dfca064e527fa97ce1068 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
diff -ruN digikam-1.9.0-vanilla/CMakeLists.txt digikam-1.9.0/CMakeLists.txt
--- digikam-1.9.0-vanilla/CMakeLists.txt 2011-02-27 21:16:18.000000000 +0100
+++ digikam-1.9.0/CMakeLists.txt 2011-02-28 18:56:39.000000000 +0100
@@ -1421,8 +1421,15 @@
# ==================================================================================================
# API documentation generation
+# Checks if user ask to build documentation.
+IF(BUILD_DOC)
+
IF(DOXYGEN_FOUND)
+ MESSAGE(STATUS "")
+ MESSAGE(STATUS "API documentation will be installed")
+ MESSAGE(STATUS "")
+
SET(API_DIR ${CMAKE_BINARY_DIR}/api)
SET(SOURCE_DIR ${CMAKE_SOURCE_DIR})
SET(DOXYFILE ${CMAKE_BINARY_DIR}/Doxyfile)
@@ -1430,10 +1437,29 @@
CONFIGURE_FILE(Doxyfile.cmake ${DOXYFILE})
- ADD_CUSTOM_TARGET(doc ${DOXYGEN_EXECUTABLE} ${DOXYFILE}
+ ADD_CUSTOM_TARGET(doc ALL ${DOXYGEN_EXECUTABLE} ${DOXYFILE}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
+
+ELSE(DOXYGEN_FOUND)
+
+ MESSAGE(FATAL_ERROR "API documentation requested but doxygen not found")
+
ENDIF(DOXYGEN_FOUND)
+
+ELSE(BUILD_DOC)
+
+ MESSAGE(STATUS "")
+ MESSAGE(STATUS "Documentation will NOT be installed")
+ MESSAGE(STATUS "Because the option -DBUILD_DOC=ON wasn't passed to cmake")
+ MESSAGE(STATUS "")
+
+ENDIF(BUILD_DOC)
+
find_package(Msgfmt REQUIRED)
find_package(Gettext REQUIRED)
add_subdirectory( po )
+# Build the handbook
+add_subdirectory( doc )
+
+
|