#   Subdirectories where we have to do more things
add_subdirectory(bits)

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

#  headers files
set(HEADERS
  deductor.h user.h event.h
)


# source files
set(SOURCES
lorentzvector.cc threevector.cc dist.cc
model.cc statistical-basis.cc mapping.cc default-pdfs.cc
color-overlap.cc color-overlap-u3.cc qcd-coupling.cc qcd-dglap.cc 
qcd-dglap-kT.cc qcd-dglap-lmd.cc qcd-dglap-lmdT.cc
splitting-functions.cc mc-engine.cc mc-emission.cc 
ini-engine-virt.cc fin-engine-virt.cc fin-engine-kT.cc
c-support.c cxx-support.cc
)


add_library(deductor SHARED ${SOURCES} ${HEADERS})

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

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