summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2014-08-19 19:08:01 -0400
committerGravatar bunnei2014-08-19 19:08:01 -0400
commitbc64261d2902cf5e9342c9013d2fe028c3ffd440 (patch)
treef92bd53642e09d2cfbd361b4b6a260539c7d620a /src
parentMerge pull request #61 from lioncash/kernel-stuff (diff)
parentAdd Qt5 option. Use Qt5 by default. (diff)
downloadyuzu-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.txt32
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
17set (HEADERS 17set(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
29qt4_wrap_ui(UI_HDRS 29set(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 37if(USE_QT5)
38include_directories(${CMAKE_CURRENT_BINARY_DIR}) 38 qt5_wrap_ui(UI_HDRS ${UIS})
39else()
40 qt4_wrap_ui(UI_HDRS ${UIS})
41endif()
39 42
40add_executable(citra-qt ${SRCS} ${UI_HDRS}) 43add_executable(citra-qt ${SRCS} ${HEADERS} ${UI_HDRS})
41if (APPLE) 44if(APPLE)
42 set(ICONV_LIBRARY iconv) 45 set(ICONV_LIBRARY iconv)
43else() 46else()
44 set(RT_LIBRARY rt) 47 set(RT_LIBRARY rt)
45endif() 48endif()
46 49
47target_link_libraries(citra-qt core common video_core qhexedit ${ICONV_LIBRARY} ${COREFOUNDATION_LIBRARY} ${QT_LIBRARIES} ${OPENGL_LIBRARIES} ${RT_LIBRARY} ${GLEW_LIBRARY} ${GLFW_LIBRARIES}) 50target_link_libraries(citra-qt core common video_core qhexedit ${ICONV_LIBRARY} ${COREFOUNDATION_LIBRARY} ${QT_LIBRARIES} ${OPENGL_LIBRARIES} ${RT_LIBRARY} ${GLEW_LIBRARY})
51if(USE_QT5)
52 target_link_libraries(citra-qt Qt5::Gui Qt5::Widgets Qt5::OpenGL)
53endif()
48 54
49#install(TARGETS citra-qt RUNTIME DESTINATION ${bindir}) 55#install(TARGETS citra-qt RUNTIME DESTINATION ${bindir})