dtkwidget/misc/DtkWidgetConfig.cmake.in

21 lines
939 B
CMake

@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
find_dependency(Dtk@DTK_VERSION_MAJOR@Core)
find_dependency(Dtk@DTK_VERSION_MAJOR@Gui)
find_dependency(Qt@QT_VERSION_MAJOR@Core)
find_dependency(Qt@QT_VERSION_MAJOR@Widgets)
find_dependency(Qt@QT_VERSION_MAJOR@DBus)
find_dependency(Qt@QT_VERSION_MAJOR@Network)
find_dependency(Qt@QT_VERSION_MAJOR@PrintSupport)
include(${CMAKE_CURRENT_LIST_DIR}/Dtk@DTK_VERSION_MAJOR@WidgetTargets.cmake)
set(DtkWidget_LIBRARIES Dtk@DTK_VERSION_MAJOR@::Widget)
get_target_property(DtkWidget_INCLUDE_DIRS Dtk@DTK_VERSION_MAJOR@::Widget INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(DtkWidget_LIBRARY_DIRS Dtk@DTK_VERSION_MAJOR@::Widget INTERFACE_LINK_DIRECTORIES)
set(DtkWidget_TOOL_DIRS "@PACKAGE_TOOL_INSTALL_DIR@")
check_required_components(DtkWidget)
# Keep deprecated variables for compatibility
set(DTKWIDGET_INCLUDE_DIR ${DtkWidget_INCLUDE_DIRS})
set(DTKWIDGET_TOOL_DIR ${DtkWidget_TOOL_DIRS})