Skip to content

Commit

Permalink
Install docs which do not depend on doxygen regardless of doxygen ava…
Browse files Browse the repository at this point in the history
…ilability
  • Loading branch information
AMDmi3 committed Aug 30, 2022
1 parent 44ddc09 commit 1976a2c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1346,8 +1346,8 @@ if (WIN32)
install(TARGETS midiplayer DESTINATION ${GAMEDIR})
endif()

if(ENABLE_DOC AND DOXYGEN_FOUND)
install(FILES doc/stratagus.6 DESTINATION ${MANDIR})
if(ENABLE_DOC)
install(FILES
doc/development.html
doc/faq.html
Expand All @@ -1360,8 +1360,11 @@ if(ENABLE_DOC AND DOXYGEN_FOUND)
doc/README-SDL.txt
DESTINATION share/doc/stratagus
)
install(DIRECTORY doc/graphics doc/scripts ${CMAKE_CURRENT_BINARY_DIR}/doxygen DESTINATION ${DOCDIR})
endif(ENABLE_DOC AND DOXYGEN_FOUND)
install(DIRECTORY doc/graphics doc/scripts DESTINATION ${DOCDIR})
if(DOXYGEN_FOUND)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doxygen DESTINATION ${DOCDIR})
endif()
endif()

if(ENABLE_DEV)
install(FILES ${gameheaders_HDRS} DESTINATION ${STRATAGUS_HEADERS})
Expand Down

0 comments on commit 1976a2c

Please sign in to comment.