CMakeLists.txt
branchstable-2.0
changeset 1150 72778f1e98f0
parent 1148 236afd18dd8c
child 1157 f71c23d5493f
equal deleted inserted replaced
1149:92a35b860318 1150:72778f1e98f0
   340         ARCHIVE DESTINATION lib${LIB_SUFFIX})
   340         ARCHIVE DESTINATION lib${LIB_SUFFIX})
   341 INSTALL(FILES physfs.h DESTINATION include)
   341 INSTALL(FILES physfs.h DESTINATION include)
   342 
   342 
   343 FIND_PACKAGE(Doxygen)
   343 FIND_PACKAGE(Doxygen)
   344 IF(DOXYGEN_FOUND)
   344 IF(DOXYGEN_FOUND)
   345     ADD_CUSTOM_TARGET(docs ${DOXYGEN_EXECUTABLE} COMMENT "Building documentation")
   345     SET(PHYSFS_OUTPUT_DOXYFILE "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile")
       
   346     CONFIGURE_FILE(
       
   347         "${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile"
       
   348         "${PHYSFS_OUTPUT_DOXYFILE}"
       
   349         COPYONLY
       
   350     )
       
   351     FILE(APPEND "${PHYSFS_OUTPUT_DOXYFILE}" "\n\n# Below auto-generated by cmake...\n\n")
       
   352     FILE(APPEND "${PHYSFS_OUTPUT_DOXYFILE}" "PROJECT_NUMBER = ${PHYSFS_VERSION}\n")
       
   353     FILE(APPEND "${PHYSFS_OUTPUT_DOXYFILE}" "OUTPUT_DIRECTORY = ${CMAKE_CURRENT_BINARY_DIR}/docs\n")
       
   354     FILE(APPEND "${PHYSFS_OUTPUT_DOXYFILE}" "\n# End auto-generated section.\n\n")
       
   355 
       
   356     ADD_CUSTOM_TARGET(
       
   357         docs
       
   358         ${DOXYGEN_EXECUTABLE} "${PHYSFS_OUTPUT_DOXYFILE}"
       
   359         WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
       
   360         COMMENT "Building documentation in 'docs' directory..."
       
   361     )
   346 ELSE(DOXYGEN_FOUND)
   362 ELSE(DOXYGEN_FOUND)
   347     MESSAGE(STATUS "Doxygen not found. You won't be able to build documentation.")
   363     MESSAGE(STATUS "Doxygen not found. You won't be able to build documentation.")
   348 ENDIF(DOXYGEN_FOUND)
   364 ENDIF(DOXYGEN_FOUND)
   349 
   365 
   350 IF(UNIX)
   366 IF(UNIX)