PizzaConfig.cmake.in

get_filename_component(Pizza_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
include(CMakeFindDependencyMacro)

@PACKAGE_INIT@
set(PIZZA_DIR "@PACKAGE_SOME_INSTALL_DIR@")

list(APPEND CMAKE_MODULE_PATH ${Pizza_CMAKE_DIR})

list(REMOVE_AT CMAKE_MODULE_PATH -1)

if(NOT TARGET MyCompany::DateTime)
    include("${Pizza_CMAKE_DIR}/PizzaTargets.cmake")
    set(Pizza_SDK        "${Pizza_CMAKE_DIR}/..")
    set(Pizza_BIN        "${Pizza_SDK}/bin")
    set(Pizza_LIB        "${Pizza_SDK}/lib")
    set(Pizza_INCLUDE    "${Pizza_SDK}/include")
    set(Pizza_EXPORT     "${Pizza_SDK}/export")
    cedaAddSourceRoot("${Pizza_EXPORT}")
endif()

set(Pizza_LIBRARIES 
        MyCompany::DateTime
        MyCompany::Shapes
        MyCompany::Pizza) 

check_required_components(Pizza)