Browse Source

Modified Doxygen to be build by default, but I may remove this. For development, it's kind of annoying.

enhancement_3
Trevor Irons 8 years ago
parent
commit
2a87bdce34
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      CMakeLists.txt

+ 5
- 3
CMakeLists.txt View File

@@ -187,13 +187,15 @@ add_dependencies(Hello YAML-CPP)
187 187
 
188 188
 
189 189
 # add a target to generate API documentation with Doxygen
190
+# ALL make documentation build by default if possible
190 191
 find_package(Doxygen)
191 192
 	if(DOXYGEN_FOUND)
192 193
 	configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Documentation/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Documentation/Doxyfile @ONLY)
193 194
 	add_custom_target(doc
194
-	${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Documentation/Doxyfile
195
-	WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
196
-	COMMENT "Generating API documentation with Doxygen" VERBATIM
195
+		ALL
196
+		${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Documentation/Doxyfile
197
+		WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
198
+		COMMENT "Generating API documentation with Doxygen" VERBATIM
197 199
 	)
198 200
 	endif(DOXYGEN_FOUND)
199 201
 

Loading…
Cancel
Save