mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 19:47:46 -07:00
Compilation fix for MSVC+Qt5
This commit is contained in:
parent
54805fb14e
commit
34772cccab
3 changed files with 22 additions and 13 deletions
|
|
@ -74,16 +74,18 @@ INCLUDE_DIRECTORIES(../cockatrice/src)
|
|||
ADD_EXECUTABLE(oracle WIN32 MACOSX_BUNDLE ${oracle_SOURCES} ${oracle_MOC_SRCS})
|
||||
|
||||
if(Qt4_FOUND)
|
||||
if(MSVC)
|
||||
set(QT_USE_QTMAIN true)
|
||||
endif()
|
||||
TARGET_LINK_LIBRARIES(oracle ${ORACLE_LIBS})
|
||||
endif()
|
||||
if(Qt5Widgets_FOUND)
|
||||
if(MSVC)
|
||||
TARGET_LINK_LIBRARIES(oracle Qt5::WinMain)
|
||||
endif()
|
||||
qt5_use_modules(oracle ${ORACLE_LIBS})
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
set_target_properties(oracle PROPERTIES LINK_FLAGS "/SUBSYSTEM:WINDOWS")
|
||||
endif(MSVC)
|
||||
|
||||
if(UNIX)
|
||||
if(APPLE)
|
||||
INSTALL(TARGETS oracle BUNDLE DESTINATION ./)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue