#   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"
  "${PROJECT_BINARY_DIR}/deductor-core"
  "${PROJECT_SOURCE_DIR}"
)

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


# source files
set(SOURCES
threevector.cc lorentzvector.cc dist.cc
shower-aux.cc model.cc mapping.cc qcd-coupling.cc qcd-dglap.cc coupling.cc dglap.cc color-overlap.cc
vz-mapping.cc splitfunc.cc splitfunc-approx.cc splitting-kernel.cc splitting-prob.cc hard-state.cc
mc-engine.cc basic-user.cc

#   some default settings
default-qcd.cc

#   explicit template instatiations
deductor.cc
distbook.cc
)


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


#   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)
