Skip to content

Commit 7b16886

Browse files
committed
provide CMakeLists for HFInvMassFitter
1 parent 17c6851 commit 7b16886

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

PWGHF/D2H/Macros/CMakeLists.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
cmake_minimum_required(VERSION 3.10)
2+
3+
project(HFInvMassFitter)
4+
5+
set(HFFITTER_RAPIDJSON_INCLUDE_DIRS "" CACHE STRING "Location of rapidjson include directories")
6+
7+
find_package(ROOT REQUIRED COMPONENTS RooFit RooFitCore)
8+
9+
include_directories(${ROOT_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR} ${HFFITTER_RAPIDJSON_INCLUDE_DIRS})
10+
11+
set(SOURCES
12+
HFInvMassFitter.cxx
13+
runMassFitter.C
14+
)
15+
16+
add_executable(runMassFitter ${SOURCES} "HFInvMassFitter.h")
17+
18+
ROOT_GENERATE_DICTIONARY(G__HFInvMassFitter
19+
HFInvMassFitter.h LINKDEF HFInvMassFitterLinkDef.h
20+
MODULE runMassFitter
21+
)
22+
23+
target_link_libraries(runMassFitter PRIVATE ${ROOT_LIBRARIES} ROOT::EG ROOT::RooFit ROOT::RooFitCore)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2+
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3+
// All rights not expressly granted are reserved.
4+
//
5+
// This software is distributed under the terms of the GNU General Public
6+
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7+
//
8+
// In applying this license CERN does not waive the privileges and immunities
9+
// granted to it by virtue of its status as an Intergovernmental Organization
10+
// or submit itself to any jurisdiction.
11+
12+
#ifndef PWGHF_D2H_MACROS_HFINVMASSFITTERLINKDEF_H_
13+
#define PWGHF_D2H_MACROS_HFINVMASSFITTERLINKDEF_H_
14+
15+
#ifdef __CINT__
16+
#pragma link off all globals;
17+
#pragma link off all classes;
18+
#pragma link off all functions;
19+
#pragma link C++ class HFInvMassFitter + ;
20+
#endif
21+
22+
#endif // PWGHF_D2H_MACROS_HFINVMASSFITTERLINKDEF_H_

0 commit comments

Comments
 (0)