mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00

- Bump CMake to minimum version 3.8 - Set C++ standard to 17 - Remove CMAKE_LEGACY_CYGWIN_WIN32 compatibility mode - Remove C++11 stuff - Update documentation Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
20 lines
672 B
CMake
20 lines
672 B
CMake
cmake_minimum_required (VERSION 3.8)
|
|
|
|
message ("-- Configuring documentation")
|
|
|
|
add_subdirectory (holidays)
|
|
add_subdirectory (themes)
|
|
|
|
if (ASCIIDOCTOR_FOUND)
|
|
set (ASCIIDOCTOR_OPTIONS "--attribute=manmanual=User Manuals"
|
|
"--attribute=mansource=timew ${PROJECT_VERSION}"
|
|
"--attribute=man-linkstyle='pass:[blue R < >]'")
|
|
|
|
add_subdirectory (man1)
|
|
add_subdirectory (man7)
|
|
|
|
add_custom_target (doc ALL DEPENDS man1 man7)
|
|
else (ASCIIDOCTOR_FOUND)
|
|
add_custom_target (doc ALL
|
|
COMMAND echo "Tool 'asciidoctor' is required to generate man pages! Please install it first.")
|
|
endif (ASCIIDOCTOR_FOUND)
|