############################################################################
# CMakeLists.txt file for building ROOT hist/hist package
############################################################################

set(libname Hist)

if(root7)
    ROOT_GLOB_SOURCES(root7src RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} v7/src/*.cxx)
    ROOT_GLOB_HEADERS(Hist_v7_dict_headers ${CMAKE_CURRENT_SOURCE_DIR}/v7/inc/ROOT/T*.hxx)
endif()

ROOT_STANDARD_LIBRARY_PACKAGE(Hist
                              HEADERS *.h Math/*.h v5/*.h ${Hist_v7_dict_headers}
                              SOURCES *.cxx ${root7src}
                              DICTIONARY_OPTIONS "-writeEmptyRootPCM"
                              DEPENDENCIES Matrix MathCore RIO)

ROOT_ADD_TEST_SUBDIRECTORY(test)

if(root7)
    ROOT_ADD_TEST_SUBDIRECTORY(v7/test)
endif()
