summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--externals/qhexedit/CMakeLists.txt10
-rw-r--r--src/citra_qt/CMakeLists.txt32
3 files changed, 16 insertions, 28 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1c7d98347..ed790adf7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
1cmake_minimum_required(VERSION 2.6) 1cmake_minimum_required(VERSION 2.8.6)
2 2
3project(citra) 3project(citra)
4 4
diff --git a/externals/qhexedit/CMakeLists.txt b/externals/qhexedit/CMakeLists.txt
index cfe168ef3..29ed5d2ba 100644
--- a/externals/qhexedit/CMakeLists.txt
+++ b/externals/qhexedit/CMakeLists.txt
@@ -1,13 +1,15 @@
1set(CMAKE_AUTOMOC ON)
2
1set(SRCS 3set(SRCS
2 commands.cpp 4 commands.cpp
3 qhexedit.cpp 5 qhexedit.cpp
4 qhexedit_p.cpp 6 qhexedit_p.cpp
5 xbytearray.cpp) 7 xbytearray.cpp)
6 8
7qt4_wrap_cpp(MOC_SRCS 9set(HEADERS
8 qhexedit.h 10 qhexedit.h
9 qhexedit_p.h) 11 qhexedit_p.h)
10 12
11include_directories(${CMAKE_CURRENT_BINARY_DIR}) 13include_directories(${CMAKE_CURRENT_BINARY_DIR})
12 14
13add_library(qhexedit STATIC ${SRCS} ${MOC_SRCS}) 15add_library(qhexedit STATIC ${SRCS} ${HEADERS})
diff --git a/src/citra_qt/CMakeLists.txt b/src/citra_qt/CMakeLists.txt
index 7f880df8b..5ce4e3f16 100644
--- a/src/citra_qt/CMakeLists.txt
+++ b/src/citra_qt/CMakeLists.txt
@@ -1,3 +1,6 @@
1set(CMAKE_AUTOMOC ON)
2set(CMAKE_INCLUDE_CURRENT_DIR ON)
3
1set(SRCS 4set(SRCS
2 bootmanager.cpp 5 bootmanager.cpp
3 debugger/callstack.cpp 6 debugger/callstack.cpp
@@ -10,6 +13,7 @@ set(SRCS
10 main.cpp 13 main.cpp
11 config/controller_config.cpp 14 config/controller_config.cpp
12 config/controller_config_util.cpp) 15 config/controller_config_util.cpp)
16
13set (HEADERS 17set (HEADERS
14 bootmanager.hxx 18 bootmanager.hxx
15 debugger/callstack.hxx 19 debugger/callstack.hxx
@@ -18,12 +22,6 @@ set (HEADERS
18 debugger/registers.hxx 22 debugger/registers.hxx
19 hotkeys.hxx 23 hotkeys.hxx
20 main.hxx 24 main.hxx
21 ui_callstack.h
22 ui_controller_config.h
23 ui_disassembler.h
24 ui_hotkeys.h
25 ui_main.h
26 ui_registers.h
27 version.h 25 version.h
28 config/controller_config.hxx 26 config/controller_config.hxx
29 config/controller_config_util.hxx) 27 config/controller_config_util.hxx)
@@ -36,28 +34,16 @@ qt4_wrap_ui(UI_HDRS
36 main.ui 34 main.ui
37 config/controller_config.ui) 35 config/controller_config.ui)
38 36
39qt4_wrap_cpp(MOC_SRCS
40 bootmanager.hxx
41 debugger/callstack.hxx
42 debugger/disassembler.hxx
43 debugger/graphics.hxx
44 debugger/graphics_cmdlists.hxx
45 debugger/registers.hxx
46 debugger/ramview.hxx
47 hotkeys.hxx
48 main.hxx
49 config/controller_config.hxx
50 config/controller_config_util.hxx)
51
52# add uic results to include directories 37# add uic results to include directories
53include_directories(${CMAKE_CURRENT_BINARY_DIR}) 38include_directories(${CMAKE_CURRENT_BINARY_DIR})
54include_directories(./)
55 39
56add_executable(citra-qt ${SRCS} ${HEADERS} ${MOC_SRCS} ${UI_HDRS}) 40add_executable(citra-qt ${SRCS} ${UI_HDRS})
57if (APPLE) 41if (APPLE)
58 target_link_libraries(citra-qt core common video_core qhexedit iconv ${COREFOUNDATION_LIBRARY} ${QT_LIBRARIES} ${GLEW_LIBRARY} ${OPENGL_LIBRARIES}) 42 set(ICONV_LIBRARY iconv)
59else() 43else()
60 target_link_libraries(citra-qt core common video_core qhexedit ${QT_LIBRARIES} ${OPENGL_LIBRARIES} ${SDL2_LIBRARY} rt GLEW ${GLFW_LIBRARIES}) 44 set(RT_LIBRARY rt)
61endif() 45endif()
62 46
47target_link_libraries(citra-qt core common video_core qhexedit ${ICONV_LIBRARY} ${COREFOUNDATION_LIBRARY} ${QT_LIBRARIES} ${OPENGL_LIBRARIES} ${RT_LIBRARY} ${GLEW_LIBRARY} ${GLFW_LIBRARIES})
48
63#install(TARGETS citra-qt RUNTIME DESTINATION ${bindir}) 49#install(TARGETS citra-qt RUNTIME DESTINATION ${bindir})