#  This is the includedir that is used to compile the sources 
include_directories(
"${PROJECT_SOURCE_DIR}"
"${PROJECT_SOURCE_DIR}/core"
"${PROJECT_SOURCE_DIR}/proc"
)

#  headers files
list(APPEND HEADERS
  proc-epajets.h  proc-dyjets.h proc-hhcjets.h  proc-hhcjets-real.h
)

# source files
list(APPEND SOURCES
proc-epajets.cc proc-dyjets.cc proc-hhcjets.cc

#proc-hhcjets-real.cc
)

link_directories("${deductor_BINARY_DIR}/core") 

add_library(deductor-proc SHARED ${SOURCES} ${HEADERS})
target_link_libraries(deductor-proc deductor) 

#   version number of the library
set_target_properties(deductor-proc PROPERTIES 
VERSION ${deductor_VERSION_STRING}
SOVERSION ${deductor_VERSION_MAJOR}
)

#  Intall library and the headers
install (TARGETS deductor-proc DESTINATION lib)
install (FILES ${HEADERS} DESTINATION include/deductor)
