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

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


# source files
set(SOURCES
dist.cc
qcd-coupling.cc qcd-dglap.cc coupling.cc dglap.cc
shower-aux.cc model.cc
color-overlap.cc splitting-func.cc

basic-user.cc

#   some default settings
default-qcd.cc
)


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


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