mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-25 07:09:48 -06:00
Qt: Add msvc support
This commit is contained in:
@ -1,14 +1,20 @@
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR}) # because of generated UI files
|
||||
# because of generated UI files
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
|
||||
set(SRCS AboutDialog.cpp
|
||||
AboutDialog.h
|
||||
Main.cpp
|
||||
MainWindow.cpp
|
||||
MainWindow.h)
|
||||
set(SRCS
|
||||
AboutDialog.cpp
|
||||
AboutDialog.h
|
||||
Main.cpp
|
||||
MainWindow.cpp
|
||||
MainWindow.h)
|
||||
|
||||
set(UIS AboutDialog.ui
|
||||
MainWindow.ui)
|
||||
set(UIS
|
||||
AboutDialog.ui
|
||||
MainWindow.ui)
|
||||
|
||||
set(LIBS common)
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
set(DOLPHINQT_BINARY DolphinQt)
|
||||
@ -18,4 +24,5 @@ endif()
|
||||
|
||||
qt5_wrap_ui(UI_HEADERS ${UIS})
|
||||
add_executable(${DOLPHINQT_BINARY} ${SRCS} ${UI_HEADERS})
|
||||
target_link_libraries(${DOLPHINQT_BINARY} ${LIBS})
|
||||
qt5_use_modules(${DOLPHINQT_BINARY} Widgets)
|
||||
|
Reference in New Issue
Block a user