CMakeLists.txt 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. set(CMAKE_AUTOMOC ON)
  2. set(CMAKE_INCLUDE_CURRENT_DIR ON)
  3. set(SRCS
  4. config/controller_config.cpp
  5. config/controller_config_util.cpp
  6. config.cpp
  7. debugger/callstack.cpp
  8. debugger/disassembler.cpp
  9. debugger/graphics.cpp
  10. debugger/graphics_breakpoint_observer.cpp
  11. debugger/graphics_breakpoints.cpp
  12. debugger/graphics_cmdlists.cpp
  13. debugger/graphics_framebuffer.cpp
  14. debugger/graphics_vertex_shader.cpp
  15. debugger/ramview.cpp
  16. debugger/registers.cpp
  17. util/spinbox.cpp
  18. bootmanager.cpp
  19. hotkeys.cpp
  20. main.cpp
  21. citra-qt.rc
  22. )
  23. set(HEADERS
  24. config/controller_config.h
  25. config/controller_config_util.h
  26. config.h
  27. debugger/callstack.h
  28. debugger/disassembler.h
  29. debugger/graphics.h
  30. debugger/graphics_breakpoint_observer.h
  31. debugger/graphics_breakpoints.h
  32. debugger/graphics_breakpoints_p.h
  33. debugger/graphics_cmdlists.h
  34. debugger/graphics_framebuffer.h
  35. debugger/graphics_vertex_shader.h
  36. debugger/ramview.h
  37. debugger/registers.h
  38. util/spinbox.h
  39. bootmanager.h
  40. hotkeys.h
  41. main.h
  42. version.h
  43. )
  44. set(UIS
  45. config/controller_config.ui
  46. debugger/callstack.ui
  47. debugger/disassembler.ui
  48. debugger/registers.ui
  49. hotkeys.ui
  50. main.ui
  51. )
  52. create_directory_groups(${SRCS} ${HEADERS} ${UIS})
  53. if (Qt5_FOUND)
  54. qt5_wrap_ui(UI_HDRS ${UIS})
  55. else()
  56. qt4_wrap_ui(UI_HDRS ${UIS})
  57. endif()
  58. add_executable(citra-qt ${SRCS} ${HEADERS} ${UI_HDRS})
  59. target_link_libraries(citra-qt core common video_core qhexedit)
  60. target_link_libraries(citra-qt ${OPENGL_gl_LIBRARY} ${CITRA_QT_LIBS})
  61. target_link_libraries(citra-qt ${PLATFORM_LIBRARIES})
  62. #install(TARGETS citra-qt RUNTIME DESTINATION ${bindir})