diff options
author | evpobr <evpobr@gmail.com> | 2020-05-08 14:20:35 +0500 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2020-05-14 13:56:01 +1000 |
commit | ce6dd6b5732e319ef60716d9cc9af6a836a4011a (patch) | |
tree | 4b7df35a903bb3dcf9eb0388234bbd8d93304b37 /doc | |
parent | 37e675b777d4e0de53ac9ff69e2aea10d92e729c (diff) | |
download | flac-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.txt | 18 |
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 |