CMakeLists.txt 1.03 KB
Newer Older
Vratislav Chudoba's avatar
Vratislav Chudoba committed
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
# =============================================================================
# ROOT dictionary

# Normally this is not needed, but rootcling cannot see these files
# if the current source directory (which is 'PROJECTBASEDIR/src' in our case)
# is not added to the include_directories list.
include_directories(${CMAKE_CURRENT_SOURCE_DIR})

set(ROOTCLING_HEADERS TNeAnalysis.h
                      TNeDet16.h
                      TNeEvent.h
                      TNeMParms.h
                      TNeProc.h
                      TNeSel.h
                      )

ROOT_GENERATE_DICTIONARY(G__UserAnalysis ${ROOTCLING_HEADERS} LINKDEF NeLinkDef.h)

# =============================================================================

set(SOURCE_LIB G__UserAnalysis.cxx
               TNeAnalysis.cxx
               TNeDet16.cxx
               TNeEvent.cxx
               TNeMParms.cxx
               TNeProc.cxx
               TNeSel.cxx
               )

add_library(UserAnalysis SHARED ${SOURCE_LIB})

target_link_libraries(UserAnalysis Go4Analysis)