Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions roofit/batchcompute/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,31 @@ set(shared_object_sources src/RooBatchCompute.cxx src/ComputeFunctions.cxx)
ROOT_LINKER_LIBRARY(RooBatchCompute_GENERIC ${shared_object_sources} TYPE SHARED DEPENDENCIES RooBatchCompute)
target_compile_options(RooBatchCompute_GENERIC PRIVATE ${common-flags} -DRF_ARCH=GENERIC)

if(NOT CMAKE_VERSION VERSION_LESS "3.23.0")
target_sources(
RooBatchCompute
PRIVATE
FILE_SET private_header_files
TYPE HEADERS
BASE_DIRS res/
FILES
res/RooBatchCompute.h
)
target_sources(
RooBatchCompute_GENERIC
PRIVATE
FILE_SET private_header_files
TYPE HEADERS
BASE_DIRS src/ res/
FILES
res/RooBatchComputeTypes.h
res/RooHeterogeneousMath.h
res/RooNaNPacker.h
src/Batches.h
src/RooVDTHeaders.h
)
endif()

# Windows platform and ICC compiler need special code and testing, thus the feature has not been implemented yet for these.
if (ROOT_PLATFORM MATCHES "linux|macosx" AND CMAKE_SYSTEM_PROCESSOR MATCHES x86_64 AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")

Expand All @@ -43,6 +68,17 @@ if (cuda)
set(shared_object_sources_cu src/RooBatchCompute.cu src/ComputeFunctions.cu src/CudaInterface.cu)
ROOT_LINKER_LIBRARY(RooBatchCompute_CUDA ${shared_object_sources_cu} TYPE SHARED DEPENDENCIES RooBatchCompute)
target_compile_options(RooBatchCompute_CUDA PRIVATE -lineinfo --expt-relaxed-constexpr)
if(NOT CMAKE_VERSION VERSION_LESS "3.23.0")
target_sources(
RooBatchCompute_CUDA
PRIVATE
FILE_SET private_header_files
TYPE HEADERS
BASE_DIRS src/
FILES
src/CudaInterface.h
)
endif()
endif()

if(vdt OR builtin_vdt)
Expand Down
13 changes: 13 additions & 0 deletions roofit/codegen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,16 @@ ROOT_STANDARD_LIBRARY_PACKAGE(RooFitCodegen
RooFitCore
HistFactory
)

if(NOT CMAKE_VERSION VERSION_LESS "3.23.0")
target_sources(
RooFitCodegen
PRIVATE
FILE_SET private_header_files
TYPE HEADERS
BASE_DIRS inc/
FILES
# LinkDef.h # empty, not being used by ROOT_STL_PACKAGE call
inc/RooFit/CodegenImpl.h
)
endif()
58 changes: 39 additions & 19 deletions roofit/histfactory/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,31 @@ if (runtime_cxxmodules AND WIN32)
set (EXTRA_DICT_OPTS NO_CXXMODULE)
endif()

set(HISTFACTORY_HEADERS
RooStats/HistFactory/Asimov.h
RooStats/HistFactory/Channel.h
RooStats/HistFactory/Data.h
RooStats/HistFactory/Detail/HistFactoryImpl.h
RooStats/HistFactory/FlexibleInterpVar.h
RooStats/HistFactory/HistFactoryException.h
RooStats/HistFactory/HistFactoryModelUtils.h
RooStats/HistFactory/HistFactoryNavigation.h
RooStats/HistFactory/HistoToWorkspaceFactoryFast.h
RooStats/HistFactory/HistRef.h
RooStats/HistFactory/LinInterpVar.h
RooStats/HistFactory/MakeModelAndMeasurementsFast.h
RooStats/HistFactory/Measurement.h
RooStats/HistFactory/ParamHistFunc.h
RooStats/HistFactory/PiecewiseInterpolation.h
RooStats/HistFactory/PreprocessFunction.h
RooStats/HistFactory/RooBarlowBeestonLL.h
RooStats/HistFactory/Sample.h
RooStats/HistFactory/Systematics.h
)

ROOT_STANDARD_LIBRARY_PACKAGE(HistFactory
HEADERS
RooStats/HistFactory/Asimov.h
RooStats/HistFactory/Channel.h
RooStats/HistFactory/Data.h
RooStats/HistFactory/Detail/HistFactoryImpl.h
RooStats/HistFactory/FlexibleInterpVar.h
RooStats/HistFactory/HistFactoryException.h
RooStats/HistFactory/HistFactoryModelUtils.h
RooStats/HistFactory/HistFactoryNavigation.h
RooStats/HistFactory/HistoToWorkspaceFactoryFast.h
RooStats/HistFactory/HistRef.h
RooStats/HistFactory/LinInterpVar.h
RooStats/HistFactory/MakeModelAndMeasurementsFast.h
RooStats/HistFactory/Measurement.h
RooStats/HistFactory/ParamHistFunc.h
RooStats/HistFactory/PiecewiseInterpolation.h
RooStats/HistFactory/PreprocessFunction.h
RooStats/HistFactory/RooBarlowBeestonLL.h
RooStats/HistFactory/Sample.h
RooStats/HistFactory/Systematics.h
${HISTFACTORY_HEADERS}
${HISTFACTORY_XML_HEADERS}
SOURCES
src/Asimov.cxx
Expand Down Expand Up @@ -109,4 +113,20 @@ install(FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${prepareHistFactory_script}
WORLD_EXECUTE WORLD_READ
DESTINATION ${CMAKE_INSTALL_BINDIR})

set(RELATIVE_INC_HEADERS ${HISTFACTORY_HEADERS} ${HISTFACTORY_XML_HEADERS})
list(TRANSFORM RELATIVE_INC_HEADERS PREPEND inc/)
if(NOT CMAKE_VERSION VERSION_LESS "3.23.0")
target_sources(
HistFactory
PRIVATE
FILE_SET private_header_files
TYPE HEADERS
BASE_DIRS inc/
FILES
${RELATIVE_INC_HEADERS}
inc/LinkDef.h # seemingly not being used by ROOT_STL_PACKAGE call
inc/HFMsgService.h # not part of list above
)
endif()

ROOT_ADD_TEST_SUBDIRECTORY(test)
27 changes: 25 additions & 2 deletions roofit/hs3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@
# @author Carsten Burgard, CERN
############################################################################

set (ROOFITHS3_HEADERS
RooFitHS3/JSONIO.h
RooFitHS3/RooJSONFactoryWSTool.h
)

ROOT_STANDARD_LIBRARY_PACKAGE(RooFitHS3
HEADERS
RooFitHS3/JSONIO.h
RooFitHS3/RooJSONFactoryWSTool.h
${ROOFITHS3_HEADERS}
SOURCES
src/Domains.cxx
src/JSONIO.cxx
Expand All @@ -29,4 +33,23 @@ ROOT_STANDARD_LIBRARY_PACKAGE(RooFitHS3
RooFitJSONInterface
)

set(RELATIVE_INC_HEADERS ${ROOFITHS3_HEADERS})
list(TRANSFORM RELATIVE_INC_HEADERS PREPEND inc/)
if(NOT CMAKE_VERSION VERSION_LESS "3.23.0")
target_sources(
RooFitHS3
PRIVATE
FILE_SET private_header_files
TYPE HEADERS
BASE_DIRS inc/ src/
FILES
${RELATIVE_INC_HEADERS}
# LinkDef.h # seemingly not being used by ROOT_STL_PACKAGE call
src/Domains.h
src/JSONIOUtils.h
src/static_execute.h
)
endif()


ROOT_ADD_TEST_SUBDIRECTORY(test)
15 changes: 15 additions & 0 deletions roofit/jsoninterface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,19 @@ ROOT_STANDARD_LIBRARY_PACKAGE(RooFitJSONInterface

target_link_libraries(RooFitJSONInterface PRIVATE nlohmann_json::nlohmann_json)

if(NOT CMAKE_VERSION VERSION_LESS "3.23.0")
target_sources(
RooFitJSONInterface
PRIVATE
FILE_SET private_header_files
TYPE HEADERS
BASE_DIRS inc src
FILES
src/RYMLParser.h
src/JSONParser.h
# LinkDef.h # is empty, not being used in ROOT_STL_PACKAGE call
inc/RooFit/Detail/JSONInterface.h
)
endif()

ROOT_ADD_TEST_SUBDIRECTORY(test)
25 changes: 25 additions & 0 deletions roofit/multiprocess/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,31 @@ target_include_directories(RooFitMultiProcess

target_link_libraries(RooFitMultiProcess PRIVATE nlohmann_json::nlohmann_json)

if(NOT CMAKE_VERSION VERSION_LESS "3.23.0")
target_sources(
RooFitMultiProcess
PRIVATE
FILE_SET private_header_files
TYPE HEADERS
BASE_DIRS inc/ res/ src/
FILES
inc/RooFit/MultiProcess/Config.h
inc/RooFit/MultiProcess/HeatmapAnalyzer.h
inc/RooFit/MultiProcess/types.h
res/RooFit/MultiProcess/JobManager.h
res/RooFit/MultiProcess/Job.h
res/RooFit/MultiProcess/Messenger.h
res/RooFit/MultiProcess/Messenger_decl.h
res/RooFit/MultiProcess/ProcessManager.h
res/RooFit/MultiProcess/ProcessTimer.h
res/RooFit/MultiProcess/Queue.h
res/RooFit/MultiProcess/util.h
res/RooFit/MultiProcess/worker.h
src/FIFOQueue.h
src/PriorityQueue.h
)
endif()

ROOT_ADD_TEST_SUBDIRECTORY(test)

ROOT_INSTALL_HEADERS()
Loading
Loading