2011-11-01 13:59:23 +00:00
|
|
|
|
2012-07-22 19:40:22 +00:00
|
|
|
if (NOT TARGET Qt5::qmake)
|
|
|
|
add_executable(Qt5::qmake IMPORTED)
|
|
|
|
|
|
|
|
set_target_properties(Qt5::qmake PROPERTIES
|
|
|
|
!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
2013-02-11 12:20:30 +00:00
|
|
|
IMPORTED_LOCATION \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\"
|
2012-07-22 19:40:22 +00:00
|
|
|
!!ELSE
|
|
|
|
IMPORTED_LOCATION \"$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\"
|
|
|
|
!!ENDIF
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (NOT TARGET Qt5::moc)
|
|
|
|
add_executable(Qt5::moc IMPORTED)
|
|
|
|
|
|
|
|
set_target_properties(Qt5::moc PROPERTIES
|
2012-02-27 15:45:27 +00:00
|
|
|
!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
2013-02-11 12:20:30 +00:00
|
|
|
IMPORTED_LOCATION \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\"
|
2012-02-27 15:45:27 +00:00
|
|
|
!!ELSE
|
2012-07-22 19:40:22 +00:00
|
|
|
IMPORTED_LOCATION \"$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\"
|
2012-02-27 15:45:27 +00:00
|
|
|
!!ENDIF
|
2012-07-22 19:40:22 +00:00
|
|
|
)
|
|
|
|
# For CMake automoc feature
|
|
|
|
get_target_property(QT_MOC_EXECUTABLE Qt5::moc LOCATION)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (NOT TARGET Qt5::rcc)
|
|
|
|
add_executable(Qt5::rcc IMPORTED)
|
|
|
|
|
|
|
|
set_target_properties(Qt5::rcc PROPERTIES
|
|
|
|
!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
2013-02-11 12:20:30 +00:00
|
|
|
IMPORTED_LOCATION \"${_qt5Core_install_prefix}/$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\"
|
2012-07-22 19:40:22 +00:00
|
|
|
!!ELSE
|
|
|
|
IMPORTED_LOCATION \"$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\"
|
|
|
|
!!ENDIF
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(Qt5Core_QMAKE_EXECUTABLE Qt5::qmake)
|
|
|
|
set(Qt5Core_MOC_EXECUTABLE Qt5::moc)
|
|
|
|
set(Qt5Core_RCC_EXECUTABLE Qt5::rcc)
|
2012-02-07 09:57:12 +00:00
|
|
|
|
2012-12-19 15:34:10 +00:00
|
|
|
!!IF isEmpty(CMAKE_ARCHDATA_DIR_IS_ABSOLUTE)
|
2013-02-11 12:20:30 +00:00
|
|
|
list(APPEND Qt5Core_INCLUDE_DIRS \"${_qt5Core_install_prefix}/$$CMAKE_INCLUDE_DIR\" \"${_qt5Core_install_prefix}/$${CMAKE_ARCHDATA_DIR}/mkspecs/$${CMAKE_MKSPEC}\")
|
2012-02-27 15:45:27 +00:00
|
|
|
!!ELSE
|
2013-02-07 23:48:57 +00:00
|
|
|
list(APPEND Qt5Core_INCLUDE_DIRS \"$$CMAKE_INCLUDE_DIR\" \"$${CMAKE_ARCHDATA_DIR}mkspecs/$${CMAKE_MKSPEC}\")
|
2012-02-27 15:45:27 +00:00
|
|
|
!!ENDIF
|
2012-02-07 18:07:49 +00:00
|
|
|
|
2012-02-21 18:45:05 +00:00
|
|
|
!!IF !isEmpty(CMAKE_ADD_FPIE_FLAGS)
|
2012-06-13 20:26:30 +00:00
|
|
|
# Targets using Qt need to use the POSITION_INDEPENDENT_CODE property. The
|
|
|
|
# Qt5_POSITION_INDEPENDENT_CODE variable is used in the # qt5_use_module
|
|
|
|
# macro to add it.
|
|
|
|
set(Qt5_POSITION_INDEPENDENT_CODE True)
|
2012-05-14 08:47:13 +00:00
|
|
|
set(Qt5Core_EXECUTABLE_COMPILE_FLAGS \"-fPIE\")
|
2012-02-21 18:45:05 +00:00
|
|
|
!!ENDIF
|
2012-02-10 15:40:12 +00:00
|
|
|
|
2012-02-21 18:45:05 +00:00
|
|
|
!!IF !isEmpty(QT_NAMESPACE)
|
|
|
|
list(APPEND Qt5Core_DEFINITIONS -DQT_NAMESPACE=$$QT_NAMESPACE)
|
|
|
|
list(APPEND Qt5Core_COMPILE_DEFINITIONS QT_NAMESPACE=$$QT_NAMESPACE)
|
|
|
|
!!ENDIF
|
2012-02-21 22:00:57 +00:00
|
|
|
|
2012-05-02 22:20:11 +00:00
|
|
|
!!IF contains(QT_CONFIG, reduce_exports)
|
|
|
|
set(QT_VISIBILITY_AVAILABLE \"True\")
|
|
|
|
!!ENDIF
|
|
|
|
|
2012-02-21 22:00:57 +00:00
|
|
|
!!IF !isEmpty(QT_LIBINFIX)
|
|
|
|
set(QT_LIBINFIX \"$${QT_LIBINFIX}\")
|
|
|
|
!!ENDIF
|
2012-02-23 16:05:41 +00:00
|
|
|
|
|
|
|
!!IF !isEmpty(CMAKE_WINDOWS_BUILD)
|
|
|
|
set(Qt5Core_QTMAIN_LIBRARIES Qt5::WinMain)
|
|
|
|
|
2012-07-11 12:13:15 +00:00
|
|
|
if (NOT TARGET Qt5::WinMain)
|
|
|
|
add_library(Qt5::WinMain STATIC IMPORTED)
|
2012-02-23 16:05:41 +00:00
|
|
|
|
2012-03-26 04:37:31 +00:00
|
|
|
!!IF !isEmpty(CMAKE_DEBUG_TYPE)
|
2012-07-11 12:13:15 +00:00
|
|
|
set_property(TARGET Qt5::WinMain APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
|
|
|
set_target_properties(Qt5::WinMain PROPERTIES
|
2012-02-27 15:45:27 +00:00
|
|
|
!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
2013-02-11 12:20:30 +00:00
|
|
|
IMPORTED_LOCATION_DEBUG \"${_qt5Core_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_DEBUG}\"
|
2012-02-27 15:45:27 +00:00
|
|
|
!!ELSE
|
2012-07-11 12:13:15 +00:00
|
|
|
IMPORTED_LOCATION_DEBUG \"$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_DEBUG}\"
|
2012-02-27 15:45:27 +00:00
|
|
|
!!ENDIF
|
2012-07-11 12:13:15 +00:00
|
|
|
)
|
2012-02-23 16:05:41 +00:00
|
|
|
!!ENDIF
|
|
|
|
|
2012-03-26 04:37:31 +00:00
|
|
|
!!IF !isEmpty(CMAKE_RELEASE_TYPE)
|
2012-07-11 12:13:15 +00:00
|
|
|
set_property(TARGET Qt5::WinMain APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
|
|
|
set_target_properties(Qt5::WinMain PROPERTIES
|
2012-02-27 15:45:27 +00:00
|
|
|
!!IF isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
|
2013-02-11 12:20:30 +00:00
|
|
|
IMPORTED_LOCATION_RELEASE \"${_qt5Core_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_RELEASE}\"
|
2012-02-27 15:45:27 +00:00
|
|
|
!!ELSE
|
2012-07-11 12:13:15 +00:00
|
|
|
IMPORTED_LOCATION_RELEASE \"$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_RELEASE}\"
|
2012-02-27 15:45:27 +00:00
|
|
|
!!ENDIF
|
2012-07-11 12:13:15 +00:00
|
|
|
)
|
2012-02-23 16:05:41 +00:00
|
|
|
!!ENDIF
|
2012-07-11 12:13:15 +00:00
|
|
|
endif()
|
2012-02-23 16:05:41 +00:00
|
|
|
!!ENDIF
|
2012-06-29 06:32:01 +00:00
|
|
|
|
|
|
|
get_filename_component(_Qt5CoreConfigDir ${CMAKE_CURRENT_LIST_FILE} PATH)
|
|
|
|
|
|
|
|
set(_Qt5CTestMacros \"${_Qt5CoreConfigDir}/Qt5CTestMacros.cmake\")
|