2011-11-01 13:59:23 +00:00
|
|
|
|
2011-12-02 12:56:36 +00:00
|
|
|
get_filename_component(_qt5_install_prefix \"${CMAKE_CURRENT_LIST_DIR}/$${CMAKE_RELATIVE_INSTALL_DIR}\" ABSOLUTE)
|
2011-11-01 13:59:23 +00:00
|
|
|
|
|
|
|
set(Qt5$${CMAKE_MODULE_NAME}_VERSION_MAJOR "$$eval(QT.$${MODULE}.MAJOR_VERSION)")
|
|
|
|
set(Qt5$${CMAKE_MODULE_NAME}_VERSION_MINOR "$$eval(QT.$${MODULE}.MINOR_VERSION)")
|
|
|
|
set(Qt5$${CMAKE_MODULE_NAME}_VERSION_PATCH "$$eval(QT.$${MODULE}.PATCH_VERSION)")
|
|
|
|
|
2011-12-03 22:00:12 +00:00
|
|
|
set(Qt5$${CMAKE_MODULE_NAME}_LIBRARIES Qt5::$${CMAKE_MODULE_NAME})
|
2011-12-03 21:59:23 +00:00
|
|
|
set(Qt5$${CMAKE_MODULE_NAME}_INCLUDE_DIRS \"${_qt5_install_prefix}/$$CMAKE_INCLUDE_DIR\" \"${_qt5_install_prefix}/$$CMAKE_INCLUDE_DIR/Qt$${CMAKE_MODULE_NAME}\")
|
2011-11-01 13:59:23 +00:00
|
|
|
|
|
|
|
string(TOUPPER "$${CMAKE_MODULE_NAME}" _CMAKE_MODULE_NAME_UPPER)
|
|
|
|
set(Qt5$${CMAKE_MODULE_NAME}_DEFINITIONS -DQT_\${_CMAKE_MODULE_NAME_UPPER}_LIB)
|
|
|
|
set(Qt5$${CMAKE_MODULE_NAME}_COMPILE_DEFINITIONS QT_\${_CMAKE_MODULE_NAME_UPPER}_LIB)
|
|
|
|
|
|
|
|
set(_Qt5_MODULE_DEPENDENCIES \"$${CMAKE_MODULE_DEPS}\")
|
|
|
|
|
2012-01-10 04:30:31 +00:00
|
|
|
foreach(_module_dep ${_Qt5_MODULE_DEPENDENCIES})
|
|
|
|
if (NOT Qt5${_module_dep}_FOUND)
|
|
|
|
find_package(Qt5${_module_dep} REQUIRED)
|
|
|
|
endif()
|
|
|
|
list(APPEND Qt5$${CMAKE_MODULE_NAME}_INCLUDE_DIRS ${Qt5${_module_dep}_INCLUDE_DIRS})
|
|
|
|
list(APPEND Qt5$${CMAKE_MODULE_NAME}_DEFINITIONS ${Qt5${_module_dep}_DEFINITIONS})
|
|
|
|
list(APPEND Qt5$${CMAKE_MODULE_NAME}_COMPILE_DEFINITIONS ${Qt5${_module_dep}_COMPILE_DEFINITIONS})
|
|
|
|
endforeach()
|
|
|
|
list(REMOVE_DUPLICATES Qt5$${CMAKE_MODULE_NAME}_INCLUDE_DIRS)
|
|
|
|
list(REMOVE_DUPLICATES Qt5$${CMAKE_MODULE_NAME}_DEFINITIONS)
|
|
|
|
list(REMOVE_DUPLICATES Qt5$${CMAKE_MODULE_NAME}_COMPILE_DEFINITIONS)
|
|
|
|
|
2011-11-01 13:59:23 +00:00
|
|
|
if (NOT _Qt5$${CMAKE_MODULE_NAME}_target)
|
|
|
|
set(_Qt5$${CMAKE_MODULE_NAME}_target 1)
|
2011-12-16 23:47:13 +00:00
|
|
|
if (\"$${CMAKE_STATIC_TYPE}\" STREQUAL \"\")
|
|
|
|
add_library(Qt5::$${CMAKE_MODULE_NAME} SHARED IMPORTED)
|
|
|
|
else()
|
|
|
|
add_library(Qt5::$${CMAKE_MODULE_NAME} STATIC IMPORTED)
|
|
|
|
endif()
|
2011-11-01 13:59:23 +00:00
|
|
|
if (NOT \"$${CMAKE_BUILD_IS_FRAMEWORK}\" STREQUAL \"\")
|
2011-12-01 01:48:15 +00:00
|
|
|
set_property(TARGET Qt5::$${CMAKE_MODULE_NAME} PROPERTY FRAMEWORK 1)
|
2011-11-01 13:59:23 +00:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (NOT \"$${debug_type}\" STREQUAL \"\")
|
2011-12-01 01:48:15 +00:00
|
|
|
set_property(TARGET Qt5::$${CMAKE_MODULE_NAME} APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
|
|
|
set_target_properties(Qt5::$${CMAKE_MODULE_NAME} PROPERTIES
|
2011-11-01 13:59:23 +00:00
|
|
|
IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG \"$${CMAKE_QT5_MODULE_DEPS}\"
|
|
|
|
IMPORTED_LOCATION_DEBUG \"${_qt5_install_prefix}/$$CMAKE_LIB_DIR/$${CMAKE_LIB_FILE_LOCATION_DEBUG}\"
|
|
|
|
)
|
|
|
|
if (NOT \"$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\" STREQUAL \"\")
|
2011-12-01 01:48:15 +00:00
|
|
|
set_target_properties(Qt5::$${CMAKE_MODULE_NAME} PROPERTIES
|
2011-11-01 13:59:23 +00:00
|
|
|
IMPORTED_IMPLIB_DEBUG \"${_qt5_install_prefix}/$$CMAKE_LIB_DIR/$${CMAKE_IMPLIB_FILE_LOCATION_DEBUG}\"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (NOT \"$${release_type}\" STREQUAL \"\")
|
2011-12-01 01:48:15 +00:00
|
|
|
set_property(TARGET Qt5::$${CMAKE_MODULE_NAME} APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
|
|
set_target_properties(Qt5::$${CMAKE_MODULE_NAME} PROPERTIES
|
2011-11-01 13:59:23 +00:00
|
|
|
IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE \"$${CMAKE_QT5_MODULE_DEPS}\"
|
|
|
|
IMPORTED_LOCATION_RELEASE \"${_qt5_install_prefix}/$$CMAKE_LIB_DIR/$${CMAKE_LIB_FILE_LOCATION_RELEASE}\"
|
|
|
|
)
|
|
|
|
if (NOT \"$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\" STREQUAL \"\")
|
2011-12-01 01:48:15 +00:00
|
|
|
set_target_properties(Qt5::$${CMAKE_MODULE_NAME} PROPERTIES
|
2011-11-01 13:59:23 +00:00
|
|
|
IMPORTED_IMPLIB_RELEASE \"${_qt5_install_prefix}/$$CMAKE_LIB_DIR/$${CMAKE_IMPLIB_FILE_LOCATION_RELEASE}\"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
endif()
|
2011-12-16 23:46:11 +00:00
|
|
|
|
|
|
|
if (NOT \"$${CMAKE_MODULE_EXTRAS}\" STREQUAL \"\")
|
|
|
|
include(\"${CMAKE_CURRENT_LIST_DIR}/Qt5$${CMAKE_MODULE_NAME}ConfigExtras.cmake\")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (NOT \"$${CMAKE_MODULE_MACROS}\" STREQUAL \"\")
|
|
|
|
include(\"${CMAKE_CURRENT_LIST_DIR}/Qt5$${CMAKE_MODULE_NAME}Macros.cmake\")
|
|
|
|
endif()
|