From f97f1adcd0e20d7a90370cdb3cf53a4be3ffe944 Mon Sep 17 00:00:00 2001 From: tmadlener Date: Tue, 8 Oct 2024 12:44:48 +0200 Subject: [PATCH] Add version information to CMakeLists --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index dcb14ba8..88375707 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,6 +20,12 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.15) project(k4FWCore) +set(${PROJECT_NAME}_VERSION_MAJOR 1) +set(${PROJECT_NAME}_VERSION_MINOR 1) +set(${PROJECT_NAME}_VERSION_PATCH 0) + +set( ${PROJECT_NAME}_VERSION "${${PROJECT_NAME}_VERSION_MAJOR}.${${PROJECT_NAME}_VERSION_MINOR}.${${PROJECT_NAME}_VERSION_PATCH}" ) + find_package(ROOT COMPONENTS RIO Tree REQUIRED) find_package(Gaudi REQUIRED) find_package(podio 0.16.3 QUIET) # this will not find 1.0 and newer