Mercurial > almixer_isolated
comparison CMakeLists.txt @ 5:8cb13d89451a
Doxygen support and fixes.
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Thu, 28 Oct 2010 01:26:11 -0700 |
parents | 26aec5629f68 |
children | ee50db043251 |
comparison
equal
deleted
inserted
replaced
4:26aec5629f68 | 5:8cb13d89451a |
---|---|
186 | 186 |
187 ENDIF(WANTS_BUILD_SHARED_LIBRARY AND WANTS_BUILD_FRAMEWORK) | 187 ENDIF(WANTS_BUILD_SHARED_LIBRARY AND WANTS_BUILD_FRAMEWORK) |
188 | 188 |
189 INCLUDE_DIRECTORIES(${OPENAL_INCLUDE_DIR} ${SDL_INCLUDE_DIR} ${SDL_SOUND_INCLUDE_DIR}) | 189 INCLUDE_DIRECTORIES(${OPENAL_INCLUDE_DIR} ${SDL_INCLUDE_DIR} ${SDL_SOUND_INCLUDE_DIR}) |
190 TARGET_LINK_LIBRARIES(ALMIXER_LIBRARY ${OPENAL_LIBRARY} ${SDL_SOUND_LIBRARIES} ${SDL_LIBRARY}) | 190 TARGET_LINK_LIBRARIES(ALMIXER_LIBRARY ${OPENAL_LIBRARY} ${SDL_SOUND_LIBRARIES} ${SDL_LIBRARY}) |
191 | |
192 | |
193 | |
194 # For Doxygen | |
195 # This will find the Doxygen stuff on your system if you want it. | |
196 # I need to use my version because the official version doesn't | |
197 # understand the OS X version of Doxygen. It also doesn't define | |
198 # DOT_PATH which is a problem if dot is not in the path. | |
199 INCLUDE(${CMAKE_ROOT}/Modules/Documentation.cmake OPTIONAL) | |
200 #INCLUDE(${PROJECT_SOURCE_DIR}/CMakeModules/Documentation.cmake OPTIONAL) | |
201 OPTION(BUILD_DOCUMENTATION "Build Almixer reference documentation using doxygen (use: make DoxygenDoc)" OFF) | |
202 MARK_AS_ADVANCED(CLEAR BUILD_DOCUMENTATION) | |
203 # To build the documention, you will have to enable it | |
204 # and then do the equivalent of "make DoxygenDoc". | |
205 IF(BUILD_DOCUMENTATION) | |
206 | |
207 OPTION(BUILD_REF_DOCS_SEARCHENGINE "Enable doxygen's search engine (requires that documentation to be installed on a php enabled web server)" OFF) | |
208 IF(BUILD_REF_DOCS_SEARCHENGINE) | |
209 SET(SEARCHENGINE YES) | |
210 ELSE() | |
211 SET(SEARCHENGINE NO) | |
212 ENDIF() | |
213 | |
214 OPTION(BUILD_REF_DOCS_TAGFILE "Generate a tag file named osg.tag on the documentation web server" OFF) | |
215 IF(BUILD_REF_DOCS_TAGFILE) | |
216 SET(GENERATE_TAGFILE "${PROJECT_BINARY_DIR}/doc/ALmixerDocumentation/ALmixer.tag") | |
217 ELSE() | |
218 SET(GENERATE_TAGFILE "") | |
219 ENDIF() | |
220 | |
221 IF(DOT) | |
222 SET(HAVE_DOT YES) | |
223 ELSE() | |
224 SET(HAVE_DOT NO) | |
225 ENDIF() | |
226 | |
227 # If html help generation was requested. DOCUMENTATION_HTML_HELP is defined by Documentation.cmake | |
228 SET(GENERATE_HTMLHELP "NO") | |
229 IF(DOCUMENTATION_HTML_HELP) | |
230 # on windows Documentation.cmake finds the html help workshop fi it exists. On u*ix we might have it with wine but no way to point it out | |
231 IF(NOT WIN32) | |
232 SET(HTML_HELP_COMPILER "" CACHE FILEPATH "Enter location of the HTML help compiler to let doxygen compile html") | |
233 MARK_AS_ADVANCED(HTML_HELP_COMPILER) | |
234 ENDIF() | |
235 # this var sets a proper value in .doxygen files when coniguring them below | |
236 SET(GENERATE_HTMLHELP "YES") | |
237 endif() | |
238 | |
239 # This processes our doxyfile.cmake and substitutes paths to generate | |
240 # a final Doxyfile | |
241 CONFIGURE_FILE(${PROJECT_SOURCE_DIR}/doc/ALmixer.doxyfile.cmake | |
242 ${PROJECT_BINARY_DIR}/doc/ALmixer.doxyfile | |
243 ) | |
244 # INSTALL(DIRECTORY ${PROJECT_BINARY_DIR}/doc/ALmixerDocumentation DESTINATION doc COMPONENT ALmixer-doc) | |
245 | |
246 | |
247 # This creates a new target to build documentation. | |
248 # It runs ${DOXYGEN} which is the full path and executable to | |
249 # Doxygen on your system, set by the FindDoxygen.cmake module | |
250 # (called by FindDocumentation.cmake). | |
251 # It runs the final generated Doxyfile against it. | |
252 # The DOT_PATH is substituted into the Doxyfile. | |
253 ADD_CUSTOM_TARGET(DoxygenDoc ${DOXYGEN} | |
254 ${PROJECT_BINARY_DIR}/doc/ALmixer.doxyfile | |
255 ) | |
256 ENDIF(BUILD_DOCUMENTATION) | |
257 | |
258 | |
191 | 259 |
192 | 260 |
193 # Install commands below | 261 # Install commands below |
194 IF(APPLE AND WANTS_BUILD_SHARED_LIBRARY AND WANTS_BUILD_FRAMEWORK) | 262 IF(APPLE AND WANTS_BUILD_SHARED_LIBRARY AND WANTS_BUILD_FRAMEWORK) |
195 # Will install framework to /Library/Frameworks directory or user specified | 263 # Will install framework to /Library/Frameworks directory or user specified |