From b9a69d3c5b6da95c94aaedc40f5420516ec33b2e Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Sat, 4 Mar 2023 11:29:53 +0100 Subject: Refactor Ledger version info into cmake/LedgerVersion.cmake so it can be re-used when generating the version.texi for ledger-website builds. --- doc/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index bb129415..a13eeb92 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -5,8 +5,14 @@ ######################################################################## +cmake_minimum_required(VERSION 3.0) + +# Point CMake at any custom modules we may ship +list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake") +include(LedgerVersion) + configure_file( - ${PROJECT_SOURCE_DIR}/doc/version.texi.in + ${CMAKE_CURRENT_SOURCE_DIR}/version.texi.in ${PROJECT_BINARY_DIR}/doc/version.texi) if (USE_DOXYGEN) -- cgit v1.2.3