summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorevpobr <evpobr@gmail.com>2020-05-08 14:20:35 +0500
committerErik de Castro Lopo <erikd@mega-nerd.com>2020-05-14 13:56:01 +1000
commitce6dd6b5732e319ef60716d9cc9af6a836a4011a (patch)
tree4b7df35a903bb3dcf9eb0388234bbd8d93304b37 /doc
parent37e675b777d4e0de53ac9ff69e2aea10d92e729c (diff)
downloadflac-ce6dd6b5732e319ef60716d9cc9af6a836a4011a.tar.gz
CMake polishing
* Improve CPU features detection CMAKE_SYSTEM_PROCESSOR is pretty useless (e.g. when compiling with MSVC ARM64 toolchain and Ninja still returns system processor). * Don't build src/utils targets by default Fix compilation for UWP platform. * Add more Visual studio Git ignore patterns * Autogenerate Doxygen docs
Diffstat (limited to 'doc')
-rw-r--r--doc/CMakeLists.txt18
1 files changed, 13 insertions, 5 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index 9af88e4e..e0e33913 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -15,12 +15,20 @@ endif()
set(DOXYGEN_HTML_FOOTER doxygen.footer.html)
set(DOXYGEN_GENERATE_TAGFILE FLAC.tag)
-doxygen_add_docs(FLAC-doxygen
- "${PROJECT_SOURCE_DIR}/include/FLAC"
- "${PROJECT_SOURCE_DIR}/include/FLAC++")
+if(CMAKE_VERSION VERSION_LESS 3.12)
+ doxygen_add_docs(FLAC-doxygen
+ ALL
+ "${PROJECT_SOURCE_DIR}/include/FLAC"
+ "${PROJECT_SOURCE_DIR}/include/FLAC++")
+else()
+ doxygen_add_docs(FLAC-doxygen
+ "${PROJECT_SOURCE_DIR}/include/FLAC"
+ "${PROJECT_SOURCE_DIR}/include/FLAC++")
+
+ install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/"
+ DESTINATION "${CMAKE_INSTALL_DOCDIR}/html/api")
-install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/"
- DESTINATION "${CMAKE_INSTALL_DOCDIR}/html/api")
+endif()
install(FILES
html/images/logo.svg