Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Installer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cms-analysis
General
DasAnalysisSystem
Installer
Merge requests
!28
Installer changes for the upcoming Core migration to CMake
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Installer changes for the upcoming Core migration to CMake
lmoureau/Darwin:feature/cmake
into
migration
Overview
9
Commits
6
Pipelines
12
Changes
6
Merged
Louis Moureaux
requested to merge
lmoureau/Darwin:feature/cmake
into
migration
11 months ago
Overview
8
Commits
6
Pipelines
12
Changes
6
Expand
0
0
Merge request reports
Compare
migration
version 12
ccd90060
10 months ago
version 11
6e27d91a
10 months ago
version 10
4b286172
10 months ago
version 9
a0f28c45
10 months ago
version 8
ac588bc4
10 months ago
version 7
ac3f4df0
10 months ago
version 6
efc9bb35
10 months ago
version 5
3e11d50c
10 months ago
version 4
4dc5907d
10 months ago
version 3
3343797d
10 months ago
version 2
85398528
11 months ago
version 1
639ccbd7
11 months ago
migration (base)
and
latest version
latest version
ccd90060
6 commits,
10 months ago
version 12
ccd90060
6 commits,
10 months ago
version 11
6e27d91a
6 commits,
10 months ago
version 10
4b286172
6 commits,
10 months ago
version 9
a0f28c45
6 commits,
10 months ago
version 8
ac588bc4
6 commits,
10 months ago
version 7
ac3f4df0
5 commits,
10 months ago
version 6
efc9bb35
5 commits,
10 months ago
version 5
3e11d50c
4 commits,
10 months ago
version 4
4dc5907d
4 commits,
10 months ago
version 3
3343797d
3 commits,
10 months ago
version 2
85398528
3 commits,
11 months ago
version 1
639ccbd7
2 commits,
11 months ago
6 files
+
112
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
cmake/TUnfold/CMakeLists.txt
0 → 100644
+
68
−
0
Options
# SPDX-License-Identifier: GPLv3-or-later
#
# SPDX-FileCopyrightText: Louis Moureaux <louis.moureaux@cern.ch>
cmake_minimum_required
(
VERSION 3.17..3.26 FATAL_ERROR
)
project
(
TUnfold VERSION 17.9 LANGUAGES CXX
)
find_package
(
ROOT 6.24 REQUIRED
)
set
(
classes
TUnfoldBinning
TUnfoldBinningXML
TUnfoldDensity
TUnfoldIterativeEM
TUnfoldSys
TUnfold
)
# Library
set
(
sources
${
classes
}
)
list
(
TRANSFORM sources APPEND V
${
TUnfold_VERSION_MAJOR
}
.cxx
)
set
(
headers
${
classes
}
)
list
(
TRANSFORM headers APPEND .h
)
add_library
(
TUnfold SHARED
${
sources
}
)
target_sources
(
TUnfold PUBLIC FILE_SET HEADERS FILES
${
headers
}
)
target_link_libraries
(
TUnfold PUBLIC ROOT::Hist ROOT::XMLParser
)
# Install
include
(
GNUInstallDirs
)
set
(
include_dir
"
${
CMAKE_INSTALL_INCLUDEDIR
}
/TUnfold"
)
install
(
TARGETS TUnfold
EXPORT TUnfoldTargets
COMPONENT TUnfold
FILE_SET HEADERS DESTINATION
"
${
include_dir
}
"
RUNTIME DESTINATION
"
${
CMAKE_INSTALL_LIBDIR
}
"
INCLUDES DESTINATION
"
${
include_dir
}
"
)
# Dictionary
configure_file
(
LinkDef.h.in LinkDef.h
)
# https://github.com/root-project/root/issues/8308#issuecomment-1143791946
set
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY
"
${
CMAKE_CURRENT_BINARY_DIR
}
"
)
root_generate_dictionary
(
TUnfoldV
${
TUnfold_VERSION_MAJOR
}
Dict
${
headers
}
MODULE TUnfold
LINKDEF
"
${
CMAKE_CURRENT_BINARY_DIR
}
/LinkDef.h"
)
# Export
include
(
CMakePackageConfigHelpers
)
set
(
CMAKECONFIG_INSTALL_DIR
"
${
CMAKE_INSTALL_LIBDIR
}
/cmake/TUnfold"
)
configure_package_config_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/TUnfoldConfig.cmake.in"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/TUnfoldConfig.cmake"
INSTALL_DESTINATION
"
${
CMAKECONFIG_INSTALL_DIR
}
"
)
write_basic_package_version_file
(
TUnfoldConfigVersion.cmake
COMPATIBILITY SameMajorVersion
)
install
(
FILES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/TUnfoldConfig.cmake"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/TUnfoldConfigVersion.cmake"
DESTINATION
"
${
CMAKECONFIG_INSTALL_DIR
}
"
COMPONENT Devel
)
install
(
EXPORT TUnfoldTargets
NAMESPACE TUnfold::
DESTINATION
"
${
CMAKECONFIG_INSTALL_DIR
}
"
FILE TUnfoldTargets.cmake
)
Loading