#   we have many subdirectories...
add_subdirectory(misc)
add_subdirectory(math)




#  Header files
file(GLOB HEADERS
cloned-ptr.h fixed-array-view.h binary-io.h filesystem.h
memory-resource.h math-support.h stackvector.h buffer.h random.h
concepts.h bounded-array.h
)


#   Install the header files
install(FILES ${HEADERS} DESTINATION include/deductor/cxx/)


# source files
file(GLOB SOURCES
)


add_library(ductcxx SHARED ${SOURCES}
$<TARGET_OBJECTS:math>
)


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

#  Intall library and the headers
install(TARGETS ductcxx DESTINATION lib)
