#   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
  resummation.h
)


# source files
set(SOURCES
  resum-exp.cc shower-scheme-duct.cc azimuth-duct.cc shower-scheme-cs.cc
)


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


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

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