dtkcore/misc/DtkCoreConfig.cmake.in

27 lines
892 B
CMake

@PACKAGE_INIT@
if(UNIX AND NOT APPLE)
set(LINUX TRUE)
endif()
include(CMakeFindDependencyMacro)
find_dependency(Qt@QT_VERSION_MAJOR@Core)
find_dependency(Qt@QT_VERSION_MAJOR@Xml)
if (LINUX)
find_dependency(Qt@QT_VERSION_MAJOR@DBus)
endif()
find_dependency(Dtk@DTK_VERSION_MAJOR@DConfig)
include(${CMAKE_CURRENT_LIST_DIR}/Dtk@DTK_VERSION_MAJOR@CoreTargets.cmake)
set(DtkCore_LIBRARIES Dtk@DTK_VERSION_MAJOR@::Core)
get_target_property(DtkCore_INCLUDE_DIRS Dtk@DTK_VERSION_MAJOR@::Core INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(DtkCore_LIBRARY_DIRS Dtk@DTK_VERSION_MAJOR@::Core INTERFACE_LINK_DIRECTORIES)
set(DtkCore_TOOL_DIRS "@PACKAGE_TOOL_INSTALL_DIR@")
check_required_components(DtkCore)
# Keep deprecated variables for compatibility
set(DTKCORE_INCLUDE_DIRS ${DtkCore_INCLUDE_DIRS})
set(DTKCORE_TOOL_DIRS ${DtkCore_TOOL_DIRS})
add_definitions(-DQT_MESSAGELOGCONTEXT)