-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
36 lines (27 loc) · 1.14 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.4)
project(ZachFitRooFit LANGUAGES CXX)
find_package(ROOT 6 CONFIG REQUIRED COMPONENTS RooFit RooFitCore)
include("${ROOT_USE_FILE}")
if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
execute_process(COMMAND
${CMAKE_COMMAND} -E create_symlink
"${CMAKE_CURRENT_SOURCE_DIR}/DstarWidthAnalysis_Data"
"${CMAKE_CURRENT_BINARY_DIR}/DstarWidthAnalysis_Data")
endif()
include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
root_generate_dictionary(
G__RooRBWGaussConv
RooRBWGaussConv.h
LINKDEF
RooRBWGaussConvLinkDef.h)
root_generate_dictionary(
G__RooArgusGenBG
RooArgusGenBG.h
LINKDEF
RooArgusGenBGLinkDef.h)
add_library(RooArgusGenBG SHARED RooArgusGenBG.cxx G__RooArgusGenBG.cxx)
target_link_libraries(RooArgusGenBG PUBLIC ${ROOT_LIBRARIES})# RooArgusGenBG_Dict)
add_library(RooRBWGaussConv SHARED RooRBWGaussConv.cxx G__RooRBWGaussConv.cxx)
target_link_libraries(RooRBWGaussConv PUBLIC ${ROOT_LIBRARIES})# RooRBWGaussConv_Dict)
add_executable(zachFit_roofit zachFit_roofit.C)
target_link_libraries(zachFit_roofit PUBLIC RooArgusGenBG RooRBWGaussConv)