forked from FairRootGroup/FairSoft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FairSoftConfig.cmake
77 lines (69 loc) · 2.72 KB
/
FairSoftConfig.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#
# General usage
#
# cmake -S <source-dir> -B <build-dir> -C <source-dir>/FairSoftConfig.cmake
# cmake --build <build-dir> [-j<ncpus>]
#
# In the following uncomment/change the appropriate option to your needs. Manage multiple
# configurations by simply copying this file under different filenames.
#
# Install prefix
#
# Where to install the packages contained in FairSoft. FairRoot may find this FairSoft
# via the environment variable SIMPATH.
#
set(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/install" CACHE PATH "Install prefix" FORCE)
# set(CMAKE_INSTALL_PREFIX "/some/other/path" CACHE PATH "Install prefix" FORCE)
# Note: Defaults are effective even if the option is not set explicitely in this file.
#
# Build type
#
# The CMake build type determines certain build flags, possible choices are:
# * RelWithDebInfo - Optimized build with debug symbols (default)
# * Release - Optimized build
# * Debug - Unoptimized build with debug symbols and run-time assertions
#
# set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Build type" FORCE)
# set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type" FORCE)
# set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type" FORCE)
#
# Package set
#
# Which packages to build and install, choices are:
# * full - All packages (default)
# * fairmq - Only FairMQ and dependencies
# * fairmqdev - Only development dependencies of FairMQ
#
# set(PACKAGE_SET "full" CACHE STRING "FairSoft package set" FORCE)
# set(PACKAGE_SET "fairmq" CACHE STRING "FairSoft package set" FORCE)
# set(PACKAGE_SET "fairmqdev" CACHE STRING "FairSoft package set" FORCE)
#
# Geant4 multi-threading (default OFF)
#
# set(GEANT4MT OFF CACHE BOOL "Build Geant4 in multi-threading mode" FORCE)
# set(GEANT4MT ON CACHE BOOL "Build Geant4 in multi-threading mode" FORCE)
#
# Python
#
# On macOS we assume you have used <source-dir>/legacy/setup-macos.sh which
# installs Python via Homebrew. That the Homebrew-based Python is chosen over the
# native macOS Python we have to hint its location:
#
if(APPLE)
execute_process(COMMAND brew --prefix python OUTPUT_VARIABLE python_prefix)
string(STRIP "${python_prefix}" python_prefix)
set(PYTHON_EXECUTABLE "${python_prefix}/bin/python3" CACHE FILEPATH "Python executable" FORCE)
endif()
# set(PYTHON_EXECUTABLE "/some/other/path/to/python" CACHE FILEPATH "Python executable" FORCE)
#
# ICU
#
# On macOS we assume you have used <source-dir>/legacy/setup-macos.sh which
# installs ICU via Homebrew. That the Homebrew-based ICU is chosen over the
# native macOS ICU we have to hint its location:
#
if(APPLE)
execute_process(COMMAND brew --prefix icu4c OUTPUT_VARIABLE icu_prefix)
string(STRIP "${icu_prefix}" icu_prefix)
set(ICU_ROOT "${icu_prefix}" CACHE FILEPATH "ICU prefix" FORCE)
endif()