2014-09-14 17:44:07 -07:00
|
|
|
# because of generated UI files
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
2014-10-18 11:07:17 -04:00
|
|
|
add_definitions(-DQT_USE_QSTRINGBUILDER -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII)
|
2014-09-14 15:03:07 -04:00
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
|
2014-09-14 17:44:07 -07:00
|
|
|
set(SRCS
|
|
|
|
AboutDialog.cpp
|
|
|
|
AboutDialog.h
|
2014-10-25 09:21:05 -04:00
|
|
|
Host.cpp
|
2014-09-14 17:44:07 -07:00
|
|
|
Main.cpp
|
|
|
|
MainWindow.cpp
|
2014-10-18 11:07:17 -04:00
|
|
|
MainWindow.h
|
2014-10-25 09:21:05 -04:00
|
|
|
SystemInfo.cpp
|
2014-10-18 11:07:17 -04:00
|
|
|
Utils/Resources.cpp
|
|
|
|
Utils/Utils.cpp
|
2014-10-25 09:21:05 -04:00
|
|
|
VideoInterface/VideoInterface.cpp
|
|
|
|
)
|
2014-09-14 17:44:07 -07:00
|
|
|
|
|
|
|
set(UIS
|
|
|
|
AboutDialog.ui
|
2014-10-25 09:21:05 -04:00
|
|
|
MainWindow.ui
|
|
|
|
SystemInfo.ui
|
|
|
|
)
|
2014-09-14 15:03:07 -04:00
|
|
|
|
2014-10-18 11:07:17 -04:00
|
|
|
set(LIBS core uicommon)
|
2014-09-14 15:03:07 -04:00
|
|
|
|
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
2014-10-25 09:21:05 -04:00
|
|
|
# Link against OS X system frameworks.
|
|
|
|
list(APPEND LIBS
|
|
|
|
${APPKIT_LIBRARY}
|
|
|
|
${AU_LIBRARY}
|
|
|
|
${COREAUDIO_LIBRARY}
|
|
|
|
${COREFUND_LIBRARY}
|
|
|
|
${CORESERV_LIBRARY}
|
|
|
|
${IOK_LIBRARY}
|
|
|
|
${FORCEFEEDBACK}
|
|
|
|
)
|
2014-09-14 15:03:07 -04:00
|
|
|
set(DOLPHINQT_BINARY DolphinQt)
|
|
|
|
else()
|
|
|
|
set(DOLPHINQT_BINARY dolphin-emu-qt)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
qt5_wrap_ui(UI_HEADERS ${UIS})
|
|
|
|
add_executable(${DOLPHINQT_BINARY} ${SRCS} ${UI_HEADERS})
|
2014-09-14 17:44:07 -07:00
|
|
|
target_link_libraries(${DOLPHINQT_BINARY} ${LIBS})
|
2014-09-14 15:03:07 -04:00
|
|
|
qt5_use_modules(${DOLPHINQT_BINARY} Widgets)
|