mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
qtmain also needed for Qt5 on Windows
This commit is contained in:
parent
a9764cf191
commit
8028110578
@ -572,6 +572,9 @@ if(LYX_USE_QT MATCHES "QT5")
|
|||||||
qt5_wrap_ui(${ARGN})
|
qt5_wrap_ui(${ARGN})
|
||||||
endmacro()
|
endmacro()
|
||||||
message(STATUS "Found Qt-Version ${QTVERSION}")
|
message(STATUS "Found Qt-Version ${QTVERSION}")
|
||||||
|
if(WIN32)
|
||||||
|
set(LYX_QTMAIN_LIBRARY ${Qt5Core_QTMAIN_LIBRARIES})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
elseif(LYX_USE_QT MATCHES "QT4")
|
elseif(LYX_USE_QT MATCHES "QT4")
|
||||||
if(LYX_XMINGW)
|
if(LYX_XMINGW)
|
||||||
@ -587,6 +590,9 @@ elseif(LYX_USE_QT MATCHES "QT4")
|
|||||||
macro (qt_wrap_uifiles)
|
macro (qt_wrap_uifiles)
|
||||||
qt4_wrap_ui(${ARGN})
|
qt4_wrap_ui(${ARGN})
|
||||||
endmacro()
|
endmacro()
|
||||||
|
if(WIN32)
|
||||||
|
set(LYX_QTMAIN_LIBRARY ${QT_QTMAIN_LIBRARIES})
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Unhandled value for LYX_USE_QT (${LYX_USE_QT})")
|
message(FATAL_ERROR "Unhandled value for LYX_USE_QT (${LYX_USE_QT})")
|
||||||
endif()
|
endif()
|
||||||
@ -691,9 +697,10 @@ endif()
|
|||||||
|
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
if(NOT LYX_CONSOLE)
|
if(LYX_CONSOLE)
|
||||||
|
set(LYX_QTMAIN_LIBRARY)
|
||||||
|
else()
|
||||||
set(WIN32_CONSOLE WIN32)
|
set(WIN32_CONSOLE WIN32)
|
||||||
set(LYX_QTMAIN_LIBRARY ${QT_QTMAIN_LIBRARY})
|
|
||||||
endif()
|
endif()
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DNOMINMAX)
|
add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DNOMINMAX)
|
||||||
|
@ -129,7 +129,7 @@ target_link_libraries(${_lyx}
|
|||||||
graphics
|
graphics
|
||||||
support
|
support
|
||||||
${ICONV_LIBRARY}
|
${ICONV_LIBRARY}
|
||||||
${QT_QTMAIN_LIBRARY}
|
${LYX_QTMAIN_LIBRARY}
|
||||||
${vld_dll})
|
${vld_dll})
|
||||||
|
|
||||||
qt_use_modules(${_lyx} Core Gui)
|
qt_use_modules(${_lyx} Core Gui)
|
||||||
|
Loading…
Reference in New Issue
Block a user