diff options
| author | 2014-08-19 19:08:01 -0400 | |
|---|---|---|
| committer | 2014-08-19 19:08:01 -0400 | |
| commit | bc64261d2902cf5e9342c9013d2fe028c3ffd440 (patch) | |
| tree | f92bd53642e09d2cfbd361b4b6a260539c7d620a /src | |
| parent | Merge pull request #61 from lioncash/kernel-stuff (diff) | |
| parent | Add Qt5 option. Use Qt5 by default. (diff) | |
| download | yuzu-bc64261d2902cf5e9342c9013d2fe028c3ffd440.tar.gz yuzu-bc64261d2902cf5e9342c9013d2fe028c3ffd440.tar.xz yuzu-bc64261d2902cf5e9342c9013d2fe028c3ffd440.zip | |
Merge pull request #60 from xsacha/qt5
Use Qt5 by default for citra-qt project.
Diffstat (limited to 'src')
| -rw-r--r-- | src/citra_qt/CMakeLists.txt | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/src/citra_qt/CMakeLists.txt b/src/citra_qt/CMakeLists.txt index 5ce4e3f16..ff1fbc460 100644 --- a/src/citra_qt/CMakeLists.txt +++ b/src/citra_qt/CMakeLists.txt | |||
| @@ -14,7 +14,7 @@ set(SRCS | |||
| 14 | config/controller_config.cpp | 14 | config/controller_config.cpp |
| 15 | config/controller_config_util.cpp) | 15 | config/controller_config_util.cpp) |
| 16 | 16 | ||
| 17 | set (HEADERS | 17 | set(HEADERS |
| 18 | bootmanager.hxx | 18 | bootmanager.hxx |
| 19 | debugger/callstack.hxx | 19 | debugger/callstack.hxx |
| 20 | debugger/disassembler.hxx | 20 | debugger/disassembler.hxx |
| @@ -26,24 +26,30 @@ set (HEADERS | |||
| 26 | config/controller_config.hxx | 26 | config/controller_config.hxx |
| 27 | config/controller_config_util.hxx) | 27 | config/controller_config_util.hxx) |
| 28 | 28 | ||
| 29 | qt4_wrap_ui(UI_HDRS | 29 | set(UIS |
| 30 | debugger/callstack.ui | 30 | debugger/callstack.ui |
| 31 | debugger/disassembler.ui | 31 | debugger/disassembler.ui |
| 32 | debugger/registers.ui | 32 | debugger/registers.ui |
| 33 | hotkeys.ui | 33 | hotkeys.ui |
| 34 | main.ui | 34 | main.ui |
| 35 | config/controller_config.ui) | 35 | config/controller_config.ui) |
| 36 | 36 | ||
| 37 | # add uic results to include directories | 37 | if(USE_QT5) |
| 38 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) | 38 | qt5_wrap_ui(UI_HDRS ${UIS}) |
| 39 | else() | ||
| 40 | qt4_wrap_ui(UI_HDRS ${UIS}) | ||
| 41 | endif() | ||
| 39 | 42 | ||
| 40 | add_executable(citra-qt ${SRCS} ${UI_HDRS}) | 43 | add_executable(citra-qt ${SRCS} ${HEADERS} ${UI_HDRS}) |
| 41 | if (APPLE) | 44 | if(APPLE) |
| 42 | set(ICONV_LIBRARY iconv) | 45 | set(ICONV_LIBRARY iconv) |
| 43 | else() | 46 | else() |
| 44 | set(RT_LIBRARY rt) | 47 | set(RT_LIBRARY rt) |
| 45 | endif() | 48 | endif() |
| 46 | 49 | ||
| 47 | target_link_libraries(citra-qt core common video_core qhexedit ${ICONV_LIBRARY} ${COREFOUNDATION_LIBRARY} ${QT_LIBRARIES} ${OPENGL_LIBRARIES} ${RT_LIBRARY} ${GLEW_LIBRARY} ${GLFW_LIBRARIES}) | 50 | target_link_libraries(citra-qt core common video_core qhexedit ${ICONV_LIBRARY} ${COREFOUNDATION_LIBRARY} ${QT_LIBRARIES} ${OPENGL_LIBRARIES} ${RT_LIBRARY} ${GLEW_LIBRARY}) |
| 51 | if(USE_QT5) | ||
| 52 | target_link_libraries(citra-qt Qt5::Gui Qt5::Widgets Qt5::OpenGL) | ||
| 53 | endif() | ||
| 48 | 54 | ||
| 49 | #install(TARGETS citra-qt RUNTIME DESTINATION ${bindir}) | 55 | #install(TARGETS citra-qt RUNTIME DESTINATION ${bindir}) |