96 lines
2.8 KiB
CMake
96 lines
2.8 KiB
CMake
cmake_minimum_required(VERSION 3.0)
|
|
set(CMAKE_VERBOSE_MAKEFILE True)
|
|
|
|
project(FCNCFitter)
|
|
|
|
#get the SPDlog
|
|
set(SPDLOG_INCLUDE_DIR "~/B2KstarMuMu/code/spdlog/include/")
|
|
set(SPDLOG_INCLUDE_DIR_TWO "~/B2KstarMuMu/code/spdlog/include/spdlog/")
|
|
|
|
#Get the source dir
|
|
set(SOURCE_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/sources/")
|
|
|
|
#get the GSL
|
|
include(FindGSL.cmake)
|
|
|
|
#try to get ROOT
|
|
include(FindROOT.cmake)
|
|
|
|
set(CMAKE_CXX_FLAGS "-g -Wall -O3 -std=c++11")
|
|
|
|
#specify directories
|
|
include_directories(
|
|
${ROOT_INCLUDE_DIR}
|
|
${SPDLOG_INCLUDE_DIR}
|
|
${SPDLOG_INCLUDE_DIR_TWO}
|
|
${PROJECT_BINARY_DIR}
|
|
${GSL_INCLUDE_DIRS}
|
|
${SOURCE_INCLUDE_DIR}
|
|
${SOURCE_INCLUDE_DIR}Helpers
|
|
${SOURCE_INCLUDE_DIR}Core
|
|
${SOURCE_INCLUDE_DIR}Run
|
|
${SOURCE_INCLUDE_DIR}Params
|
|
)
|
|
link_directories(
|
|
${ROOT_LIBRARY_DIR}
|
|
${GSL_LIBRARY_DIRS}
|
|
${SOURCE_INCLUDE_DIR}
|
|
${SOURCE_INCLUDE_DIR}Helpers
|
|
${SOURCE_INCLUDE_DIR}Core
|
|
${SOURCE_INCLUDE_DIR}Run
|
|
${SOURCE_INCLUDE_DIR}Params
|
|
)
|
|
|
|
|
|
# ------------------------------ Bu 2 Kst mu mu ----------------------------#
|
|
add_executable(bu2kstarmumu bu2kstarmumu.cc
|
|
${SOURCE_INCLUDE_DIR}Helpers/helpers.cc
|
|
${SOURCE_INCLUDE_DIR}Core/options.cc
|
|
${SOURCE_INCLUDE_DIR}paths.cc
|
|
${SOURCE_INCLUDE_DIR}parse.cc
|
|
${SOURCE_INCLUDE_DIR}Params/constants.cc
|
|
${SOURCE_INCLUDE_DIR}Params/parameters.cc
|
|
${SOURCE_INCLUDE_DIR}Params/parameterscan.cc
|
|
${SOURCE_INCLUDE_DIR}Helpers/design.cc
|
|
${SOURCE_INCLUDE_DIR}Core/fitter.cc
|
|
${SOURCE_INCLUDE_DIR}Core/folder.cc
|
|
${SOURCE_INCLUDE_DIR}Run/mcfit.cc
|
|
${SOURCE_INCLUDE_DIR}Run/massfit.cc
|
|
${SOURCE_INCLUDE_DIR}Run/mainfit.cc
|
|
${SOURCE_INCLUDE_DIR}Run/backgroundfit.cc
|
|
${SOURCE_INCLUDE_DIR}Run/genlvlfit.cc
|
|
${SOURCE_INCLUDE_DIR}Run/momfit.cc
|
|
${SOURCE_INCLUDE_DIR}Run/toysfit.cc
|
|
${SOURCE_INCLUDE_DIR}Run/angularcorr.cc
|
|
${SOURCE_INCLUDE_DIR}Core/bu2kstarmumu_pdf.cc
|
|
${SOURCE_INCLUDE_DIR}Core/bu2kstarmumu_parameters.cc
|
|
${SOURCE_INCLUDE_DIR}Core/bu2kstarmumu_generator.cc
|
|
${SOURCE_INCLUDE_DIR}Core/bu2kstarmumu_plotter.cc
|
|
${SOURCE_INCLUDE_DIR}Core/bu2kstarmumu_loader.cc
|
|
${SOURCE_INCLUDE_DIR}Run/multifit.cc
|
|
${SOURCE_INCLUDE_DIR}Core/funcs.cc
|
|
${SOURCE_INCLUDE_DIR}Core/integrals.cc
|
|
${SOURCE_INCLUDE_DIR}Core/event.cc
|
|
${SOURCE_INCLUDE_DIR}Run/angularcorr.cc
|
|
${SOURCE_INCLUDE_DIR}Run/generatetoys.cc
|
|
${SOURCE_INCLUDE_DIR}Run/pulls.cc
|
|
${SOURCE_INCLUDE_DIR}help.cc
|
|
${SOURCE_INCLUDE_DIR}tests.cc
|
|
${SOURCE_INCLUDE_DIR}Run/likelihoodscan.cc
|
|
${SOURCE_INCLUDE_DIR}Run/feldman_cousins.cc
|
|
${SOURCE_INCLUDE_DIR}Scripts/RunningScripts.cc
|
|
${SOURCE_INCLUDE_DIR}Scripts/ScriptHelpers.cc
|
|
${SOURCE_INCLUDE_DIR}Scripts/ReferencePlots.cc
|
|
${SOURCE_INCLUDE_DIR}Scripts/GenLvlvsMC.cc
|
|
${SOURCE_INCLUDE_DIR}Scripts/EvaluateToys.cc
|
|
${SOURCE_INCLUDE_DIR}Scripts/GetMeanError.cc
|
|
)
|
|
|
|
#link in these libraries
|
|
target_link_libraries(
|
|
bu2kstarmumu
|
|
${ROOT_LIBRARIES} Minuit MathCore GenVector pthread MathMore gsl gslcblas RooFitCore RooFit
|
|
)
|
|
|
|
|