summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-03-20 21:23:28 +0100
committerMartin Michlmayr <tbm@cyrius.com>2023-03-22 09:05:00 +0800
commitcbc9993b502a21388eac7218b105b60a8a71150c (patch)
treed0184202604c87c188fa06cdb346ee826ca84679
parent1db189b3dc4366d7b3edcb1d46ad1c238cf6c819 (diff)
downloadfork-ledger-cbc9993b502a21388eac7218b105b60a8a71150c.tar.gz
fork-ledger-cbc9993b502a21388eac7218b105b60a8a71150c.tar.bz2
fork-ledger-cbc9993b502a21388eac7218b105b60a8a71150c.zip
docs: Enable stand-alone building
-rw-r--r--CMakeLists.txt4
-rw-r--r--doc/CMakeLists.txt6
-rw-r--r--doc/LedgerVersion.cmake (renamed from cmake/LedgerVersion.cmake)0
3 files changed, 7 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 27a4d1de..7ac58cda 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,9 +2,11 @@ cmake_minimum_required(VERSION 3.0)
PROJECT(ledger)
+list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/doc")
+include(LedgerVersion)
+
# Point CMake at any custom modules we may ship
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
-include(LedgerVersion)
set(Ledger_TEST_TIMEZONE "America/Chicago")
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index a13eeb92..08132224 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -7,13 +7,15 @@
cmake_minimum_required(VERSION 3.0)
+project(ledger NONE)
+
# Point CMake at any custom modules we may ship
-list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../cmake")
+list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
include(LedgerVersion)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/version.texi.in
- ${PROJECT_BINARY_DIR}/doc/version.texi)
+ ${CMAKE_CURRENT_SOURCE_DIR}/version.texi)
if (USE_DOXYGEN)
find_package(Doxygen)
diff --git a/cmake/LedgerVersion.cmake b/doc/LedgerVersion.cmake
index a6481c6f..a6481c6f 100644
--- a/cmake/LedgerVersion.cmake
+++ b/doc/LedgerVersion.cmake