summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar archshift2014-04-28 19:40:39 -0700
committerGravatar archshift2014-04-28 19:40:39 -0700
commit5a9c2ce5ea1b272d73001acaf9ec15f1c0e5e041 (patch)
treefb68ecea60a4b06ab7142bedc22eb67913a63449 /src
parentFix complaints about functions that could not be found (diff)
downloadyuzu-5a9c2ce5ea1b272d73001acaf9ec15f1c0e5e041.tar.gz
yuzu-5a9c2ce5ea1b272d73001acaf9ec15f1c0e5e041.tar.xz
yuzu-5a9c2ce5ea1b272d73001acaf9ec15f1c0e5e041.zip
IT'S ALIVE!
Diffstat (limited to 'src')
-rw-r--r--src/citra/CMakeLists.txt4
-rw-r--r--src/citra_qt/CMakeLists.txt25
-rw-r--r--src/common/CMakeLists.txt40
-rw-r--r--src/video_core/CMakeLists.txt7
4 files changed, 71 insertions, 5 deletions
diff --git a/src/citra/CMakeLists.txt b/src/citra/CMakeLists.txt
index 0023da2bf..d7478a2d2 100644
--- a/src/citra/CMakeLists.txt
+++ b/src/citra/CMakeLists.txt
@@ -1,12 +1,14 @@
1set(SRCS citra.cpp 1set(SRCS citra.cpp
2 emu_window/emu_window_glfw.cpp) 2 emu_window/emu_window_glfw.cpp)
3set(HEADS citra.h
4 resource.h)
3 5
4# NOTE: This is a workaround for CMake bug 0006976 (missing X11_xf86vmode_LIB variable) 6# NOTE: This is a workaround for CMake bug 0006976 (missing X11_xf86vmode_LIB variable)
5if (NOT X11_xf86vmode_LIB) 7if (NOT X11_xf86vmode_LIB)
6 set(X11_xv86vmode_LIB Xxf86vm) 8 set(X11_xv86vmode_LIB Xxf86vm)
7endif() 9endif()
8 10
9add_executable(citra ${SRCS}) 11add_executable(citra ${SRCS} ${HEADS})
10target_link_libraries(citra core common video_core GLEW pthread X11 Xxf86vm Xi ${OPENGL_LIBRARIES} ${GLFW_LIBRARIES} rt ${X11_Xrandr_LIB} ${X11_xv86vmode_LIB}) 12target_link_libraries(citra core common video_core GLEW pthread X11 Xxf86vm Xi ${OPENGL_LIBRARIES} ${GLFW_LIBRARIES} rt ${X11_Xrandr_LIB} ${X11_xv86vmode_LIB})
11 13
12#install(TARGETS citra RUNTIME DESTINATION ${bindir}) 14#install(TARGETS citra RUNTIME DESTINATION ${bindir})
diff --git a/src/citra_qt/CMakeLists.txt b/src/citra_qt/CMakeLists.txt
index 594460a71..abca202ea 100644
--- a/src/citra_qt/CMakeLists.txt
+++ b/src/citra_qt/CMakeLists.txt
@@ -8,6 +8,23 @@ set(SRCS
8 main.cpp 8 main.cpp
9 config/controller_config.cpp 9 config/controller_config.cpp
10 config/controller_config_util.cpp) 10 config/controller_config_util.cpp)
11set (HEADS
12 bootmanager.hxx
13 debugger/callstack.hxx
14 debugger/disassembler.hxx
15 debugger/ramview.hxx
16 debugger/registers.hxx
17 hotkeys.hxx
18 main.hxx
19 ui_callstack.h
20 ui_controller_config.h
21 ui_disassembler.h
22 ui_hotkeys.h
23 ui_main.h
24 ui_registers.h
25 version.h
26 config/controller_config.hxx
27 config/controller_config_util.hxx)
11 28
12qt4_wrap_ui(UI_HDRS 29qt4_wrap_ui(UI_HDRS
13 debugger/callstack.ui 30 debugger/callstack.ui
@@ -32,7 +49,11 @@ qt4_wrap_cpp(MOC_SRCS
32include_directories(${CMAKE_CURRENT_BINARY_DIR}) 49include_directories(${CMAKE_CURRENT_BINARY_DIR})
33include_directories(./) 50include_directories(./)
34 51
35add_executable(citra-qt ${SRCS} ${MOC_SRCS} ${UI_HDRS}) 52add_executable(citra-qt ${SRCS} ${HEADS} ${MOC_SRCS} ${UI_HDRS})
36target_link_libraries(citra-qt core common video_core qhexedit ${QT_LIBRARIES} ${OPENGL_LIBRARIES} ${SDL2_LIBRARY} rt GLEW ${GLFW_LIBRARIES}) 53if (APPLE)
54 target_link_libraries(citra-qt core common video_core qhexedit iconv ${COREFOUNDATION_LIBRARY} ${QT_LIBRARIES} ${GLEW_LIBRARY} ${OPENGL_LIBRARIES})
55else()
56
57endif()
37 58
38#install(TARGETS citra-qt RUNTIME DESTINATION ${bindir}) 59#install(TARGETS citra-qt RUNTIME DESTINATION ${bindir})
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 5eaf67365..48f30de4c 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -19,4 +19,42 @@ set(SRCS break_points.cpp
19 timer.cpp 19 timer.cpp
20 utf8.cpp) 20 utf8.cpp)
21 21
22add_library(common STATIC ${SRCS}) 22set(HEADS atomic.h
23 atomic_gcc.h
24 atomic_win32.h
25 break_points.h
26 chunk_file.h
27 common_funcs.h
28 common_paths.h
29 common_types.h
30 common.h
31 console_listener.h
32 cpu_detect.h
33 debug_interface.h
34 emu_window.h
35 extended_trace.h
36 fifo_queue.h
37 file_search.h
38 file_util.h
39 hash.h
40 linear_disk_cache.h
41 log_manager.h
42 log.h
43 math_util.h
44 mem_arena.h
45 memory_util.h
46 msg_handler.h
47 platform.h
48 scm_rev.h
49 std_condition_variable.h
50 std_mutex.h
51 std_thread.h
52 string_util.h
53 swap.h
54 symbols.h
55 thread.h
56 thunk.h
57 timer.h
58 utf8.h)
59
60add_library(common STATIC ${SRCS} ${HEADS})
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt
index 56394b930..8d04d381c 100644
--- a/src/video_core/CMakeLists.txt
+++ b/src/video_core/CMakeLists.txt
@@ -2,4 +2,9 @@ set(SRCS video_core.cpp
2 utils.cpp 2 utils.cpp
3 renderer_opengl/renderer_opengl.cpp) 3 renderer_opengl/renderer_opengl.cpp)
4 4
5add_library(video_core STATIC ${SRCS}) 5set(HEADS video_core.h
6 utils.h
7 renderer_base.h
8 renderer_opengl/renderer_opengl.h)
9
10add_library(video_core STATIC ${SRCS} ${HEADS})