include(CMakeFindDependencyMacro)

set(ICU_ROOT @ICU_ROOT@)

find_dependency(Boost REQUIRED COMPONENTS date_time exception filesystem log)
find_dependency(ICU REQUIRED COMPONENTS uc)

get_filename_component(ODIL_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
list(APPEND CMAKE_MODULE_PATH ${ODIL_CMAKE_DIR})
find_dependency(JsonCpp REQUIRED COMPONENTS JsonCpp)
list(REMOVE_AT CMAKE_MODULE_PATH -1)

if("@WITH_DCMTK@")
    find_dependency(DCMTK REQUIRED)
endif()

if(NOT TARGET Odil::Odil)
    include("${ODIL_CMAKE_DIR}/OdilTargets.cmake")
endif()
