2011-11-01 13:59:23 +00:00
|
|
|
|
2012-05-14 08:47:13 +00:00
|
|
|
get_filename_component(_qt5_corelib_install_prefix \"${CMAKE_CURRENT_LIST_DIR}/$${CMAKE_RELATIVE_INSTALL_DIR}\" ABSOLUTE)
|
2011-11-01 13:59:23 +00:00
|
|
|
|
2012-02-27 15:45:27 +00:00
|
|
|
!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE)
|
|
|
|
set(QT_QMAKE_EXECUTABLE \"${_qt5_corelib_install_prefix}/$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\")
|
|
|
|
set(QT_MOC_EXECUTABLE \"${_qt5_corelib_install_prefix}/$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\")
|
|
|
|
set(QT_RCC_EXECUTABLE \"${_qt5_corelib_install_prefix}/$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\")
|
|
|
|
!!ELSE
|
|
|
|
set(QT_QMAKE_EXECUTABLE \"$${CMAKE_BIN_DIR}qmake$$CMAKE_BIN_SUFFIX\")
|
|
|
|
set(QT_MOC_EXECUTABLE \"$${CMAKE_BIN_DIR}moc$$CMAKE_BIN_SUFFIX\")
|
|
|
|
set(QT_RCC_EXECUTABLE \"$${CMAKE_BIN_DIR}rcc$$CMAKE_BIN_SUFFIX\")
|
|
|
|
!!ENDIF
|
2012-02-07 09:57:12 +00:00
|
|
|
|
2012-02-27 15:45:27 +00:00
|
|
|
!!IF isEmpty(CMAKE_DATA_DIR_IS_ABSOLUTE)
|
2012-02-07 09:57:12 +00:00
|
|
|
list(APPEND Qt5Core_INCLUDE_DIRS \"${_qt5_corelib_install_prefix}/mkspecs/default\")
|
2012-02-27 15:45:27 +00:00
|
|
|
!!ELSE
|
|
|
|
list(APPEND Qt5Core_INCLUDE_DIRS \"$${CMAKE_DATA_DIR}mkspecs/default\")
|
|
|
|
!!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-05-18 18:10:46 +00:00
|
|
|
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-02-23 16:05:41 +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)
|
2012-05-14 08:47:13 +00:00
|
|
|
IMPORTED_LOCATION_DEBUG \"${_qt5_corelib_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_DEBUG}\"
|
2012-02-27 15:45:27 +00:00
|
|
|
!!ELSE
|
2012-05-14 08:47:13 +00:00
|
|
|
IMPORTED_LOCATION_DEBUG \"$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_DEBUG}\"
|
2012-02-27 15:45:27 +00:00
|
|
|
!!ENDIF
|
2012-02-23 16:05:41 +00:00
|
|
|
)
|
|
|
|
!!ENDIF
|
|
|
|
|
2012-03-26 04:37:31 +00:00
|
|
|
!!IF !isEmpty(CMAKE_RELEASE_TYPE)
|
2012-02-23 16:05:41 +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)
|
2012-03-26 04:33:05 +00:00
|
|
|
IMPORTED_LOCATION_RELEASE \"${_qt5_corelib_install_prefix}/$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_RELEASE}\"
|
2012-02-27 15:45:27 +00:00
|
|
|
!!ELSE
|
|
|
|
IMPORTED_LOCATION_RELEASE \"$${CMAKE_LIB_DIR}$${CMAKE_WINMAIN_FILE_LOCATION_RELEASE}\"
|
|
|
|
!!ENDIF
|
2012-02-23 16:05:41 +00:00
|
|
|
)
|
|
|
|
!!ENDIF
|
|
|
|
!!ENDIF
|