diff options
| author | 2014-04-30 16:56:25 -0700 | |
|---|---|---|
| committer | 2014-04-30 16:56:47 -0700 | |
| commit | a7f3ed003d03c79f83c1c354329e5ce47f6940e7 (patch) | |
| tree | 76b0dd731d81ea91917f8a9c34c4e7c90db4f407 /src | |
| parent | Some more experimentation (diff) | |
| download | yuzu-a7f3ed003d03c79f83c1c354329e5ce47f6940e7.tar.gz yuzu-a7f3ed003d03c79f83c1c354329e5ce47f6940e7.tar.xz yuzu-a7f3ed003d03c79f83c1c354329e5ce47f6940e7.zip | |
A bit of Cmake love
Diffstat (limited to 'src')
| -rw-r--r-- | src/citra/CMakeLists.txt | 12 | ||||
| -rw-r--r-- | src/citra_qt/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | src/core/CMakeLists.txt | 39 |
3 files changed, 46 insertions, 9 deletions
diff --git a/src/citra/CMakeLists.txt b/src/citra/CMakeLists.txt index 25f476895..ee3cb55cf 100644 --- a/src/citra/CMakeLists.txt +++ b/src/citra/CMakeLists.txt | |||
| @@ -3,12 +3,12 @@ set(SRCS citra.cpp | |||
| 3 | set(HEADS citra.h | 3 | set(HEADS citra.h |
| 4 | resource.h) | 4 | resource.h) |
| 5 | 5 | ||
| 6 | # NOTE: This is a workaround for CMake bug 0006976 (missing X11_xf86vmode_LIB variable) | ||
| 7 | if (NOT X11_xf86vmode_LIB) | ||
| 8 | set(X11_xv86vmode_LIB Xxf86vm) | ||
| 9 | endif() | ||
| 10 | |||
| 11 | add_executable(citra ${SRCS} ${HEADS}) | 6 | add_executable(citra ${SRCS} ${HEADS}) |
| 12 | target_link_libraries(citra core common video_core iconv pthread ${COREFOUNDATION_LIBRARY} ${OPENGL_LIBRARIES} ${GLEW_LIBRARY} ${GLFW_LIBRARIES}) | 7 | |
| 8 | if (APPLE) | ||
| 9 | target_link_libraries(citra core common video_core iconv pthread ${COREFOUNDATION_LIBRARY} ${OPENGL_LIBRARIES} ${GLEW_LIBRARY} ${GLFW_LIBRARIES}) | ||
| 10 | else() | ||
| 11 | target_link_libraries(citra core common video_core pthread ${OPENGL_LIBRARIES} ${GLEW_LIBRARY} ${GLFW_LIBRARIES}) | ||
| 12 | endif() | ||
| 13 | 13 | ||
| 14 | #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 abca202ea..b06be56fe 100644 --- a/src/citra_qt/CMakeLists.txt +++ b/src/citra_qt/CMakeLists.txt | |||
| @@ -51,9 +51,9 @@ include_directories(./) | |||
| 51 | 51 | ||
| 52 | add_executable(citra-qt ${SRCS} ${HEADS} ${MOC_SRCS} ${UI_HDRS}) | 52 | add_executable(citra-qt ${SRCS} ${HEADS} ${MOC_SRCS} ${UI_HDRS}) |
| 53 | if (APPLE) | 53 | if (APPLE) |
| 54 | target_link_libraries(citra-qt core common video_core qhexedit iconv ${COREFOUNDATION_LIBRARY} ${QT_LIBRARIES} ${GLEW_LIBRARY} ${OPENGL_LIBRARIES}) | 54 | target_link_libraries(citra-qt core common video_core qhexedit iconv ${COREFOUNDATION_LIBRARY} ${QT_LIBRARIES} ${GLEW_LIBRARY} ${OPENGL_LIBRARIES}) |
| 55 | else() | 55 | else() |
| 56 | 56 | target_link_libraries(citra-qt core common video_core qhexedit ${QT_LIBRARIES} ${GLEW_LIBRARY} ${OPENGL_LIBRARIES}) | |
| 57 | endif() | 57 | endif() |
| 58 | 58 | ||
| 59 | #install(TARGETS citra-qt RUNTIME DESTINATION ${bindir}) | 59 | #install(TARGETS citra-qt RUNTIME DESTINATION ${bindir}) |
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 314f6e64c..c8d95ba5d 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -29,4 +29,41 @@ set(SRCS core.cpp | |||
| 29 | hw/lcd.cpp | 29 | hw/lcd.cpp |
| 30 | hw/ndma.cpp) | 30 | hw/ndma.cpp) |
| 31 | 31 | ||
| 32 | add_library(core STATIC ${SRCS}) | 32 | set(HEADS core.h |
| 33 | core_timing.h | ||
| 34 | loader.h | ||
| 35 | mem_map.h | ||
| 36 | system.h | ||
| 37 | arm/disassembler/arm_disasm.h | ||
| 38 | arm/interpreter/arm_interpreter.h | ||
| 39 | arm/interpreter/arm_regformat.h | ||
| 40 | arm/interpreter/armcpu.h | ||
| 41 | arm/interpreter/armdefs.h | ||
| 42 | arm/interpreter/armemu.h | ||
| 43 | arm/interpreter/armmmu.h | ||
| 44 | arm/interpreter/armos.h | ||
| 45 | arm/interpreter/skyeye_defs.h | ||
| 46 | arm/mmu/arm1176jzf_s_mmu.h | ||
| 47 | arm/mmu/cache.h | ||
| 48 | arm/mmu/rb.h | ||
| 49 | arm/mmu/tlb.h | ||
| 50 | arm/mmu/wb.h | ||
| 51 | elf/elf_reader.h | ||
| 52 | elf/elf_types.h | ||
| 53 | file_sys/directory_file_system.h | ||
| 54 | file_sys/file_sys.h | ||
| 55 | file_sys/meta_file_system.h | ||
| 56 | hle/hle.h | ||
| 57 | hle/mrc.h | ||
| 58 | hle/syscall.h | ||
| 59 | hle/function_wrappers.h | ||
| 60 | hle/service/apt.h | ||
| 61 | hle/service/gsp.h | ||
| 62 | hle/service/hid.h | ||
| 63 | hle/service/service.h | ||
| 64 | hle/service/srv.h | ||
| 65 | hw/hw.h | ||
| 66 | hw/lcd.h | ||
| 67 | hw/ndma.h) | ||
| 68 | |||
| 69 | add_library(core STATIC ${SRCS} ${HEADS}) | ||