FairShip
Loading...
Searching...
No Matches
CMakeLists.txt File Reference

Functions

 cmake_minimum_required (VERSION 3.26 FATAL_ERROR) if(POLICY CMP0144) cmake_policy(SET CMP0144 NEW) endif() set(FAIRSHIP_SOURCE_DIR $
 include (${CMAKE_SOURCE_DIR}/cmake/modules/FairShipGitVersion.cmake) if(NOT GIT_DESCRIBE_RESULT EQUAL 0) message(WARNING "Git not found or no tags — using fallback version $
 endif () project(FairShip VERSION $
LANGUAGES CXX if (FAIRSHIP_VERSION_TWEAK) set(PROJECT_VERSION_TWEAK $

Function Documentation

◆ cmake_minimum_required()

cmake_minimum_required ( VERSION 3.26 FATAL_ERROR)

Definition at line 13 of file CMakeLists.txt.

15 : use <PACKAGENAME>_ROOT variables in find_package. Still guarded
16# because 3.27 is one minor above our 3.26 minimum, so the policy may not exist.
17if(POLICY CMP0144)
18 cmake_policy(SET CMP0144 NEW)
19endif()
20
21# Determine version from git tags (CalVer: year.month[.patch]), or from
22# .git_archival.txt in a GitHub tarball.
23set(FAIRSHIP_SOURCE_DIR ${CMAKE_SOURCE_DIR})
endif() project(FairShip VERSION $
find_package(Python3 COMPONENTS Development REQUIRED) ship_add_library(NAME ShipMuonShieldBackground SOURCES exitHadronAbsorber.cxx pyFairModule.cxx ShipRunConfiguration.cxx LINKDEF LinkDef.h EXTRA_DICT_HEADERS $
Definition CMakeLists.txt:4

◆ endif()

endif ( )

Definition at line 30 of file CMakeLists.txt.

32 {FAIRSHIP_VERSION} LANGUAGES CXX)

◆ if()

LANGUAGES CXX if ( FAIRSHIP_VERSION_TWEAK )

Definition at line 34 of file CMakeLists.txt.

35 {FAIRSHIP_VERSION_TWEAK})

◆ include()

include ( ${CMAKE_SOURCE_DIR}/cmake/modules/FairShipGitVersion.)

Definition at line 24 of file CMakeLists.txt.

24 {CMAKE_SOURCE_DIR}/cmake/modules/FairShipGitVersion.cmake)
25if(NOT GIT_DESCRIBE_RESULT EQUAL 0)
26 message(
27 WARNING
28 "Git not found or no tags — using fallback version ${FAIRSHIP_VERSION}"