Back to home page

EIC code displayed by LXR

 
 

    


Warning, /DEMPgen/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 2.8)
0002 project(DEMPgen)
0003 set (DEMPgen_VERSION_MAJOR 0)
0004 set (DEMPgen_VERSION_MINOR 1)
0005 
0006 add_definitions (-DROOT_MATH_LOG)
0007 
0008 list(APPEND CMAKE_PREFIX_PATH $ENV{ROOTSYS})
0009 
0010 #---Locate the ROOT package and defines a number of variables (e.g. ROOT_INCLUDE_DIRS)
0011 find_package(ROOT REQUIRED COMPONENTS RIO Net Tree)
0012 
0013 #---Define useful ROOT functions and macros (e.g. ROOT_GENERATE_DICTIONARY)
0014 include(${ROOT_USE_FILE})
0015 
0016 include_directories(include)
0017 include_directories("src/eic_evgen")
0018 include_directories(SYSTEM ${ROOT_INCLUDE_DIRS})
0019 #include_directories(include/json)
0020 
0021 file(GLOB SOURCES "src/*" "src/eic_evgen/eic.cc" "src/eic_evgen/eic_pim.cc" "src/eic_evgen/PiPlus_sig_Param.cc" "src/eic_evgen/reaction_routine.cc" "src/eic_evgen/PiPlus_sig.cc" "src/eic_evgen/KPlus_sig.cc" "src/eic_evgen/KPlus_sig_Scaling.cc" "src/eic_evgen/Pi0_sig.cc" "src/eic_evgen/process_routine/*")
0022 # file(GLOB SOURCES "src/*.cpp")
0023 
0024 message("Root Include Dirs: " ${ROOT_INCLUDE_DIRS})
0025 message("Root Libraries: " ${ROOT_LIBRARIES})
0026 message("Mathmore: " ${ROOT_mathmore_FOUND})
0027 
0028 add_executable (DEMPgen ${SOURCES})
0029 target_link_libraries(DEMPgen ${ROOT_LIBRARIES})