CMakeLists.txt 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. debugger/callstack.cpp
  7. debugger/disassembler.cpp
  8. debugger/graphics.cpp
  9. debugger/graphics_cmdlists.cpp
  10. debugger/ramview.cpp
  11. debugger/registers.cpp
  12. bootmanager.cpp
  13. hotkeys.cpp
  14. main.cpp
  15. )
  16. set(HEADERS
  17. config/controller_config.hxx
  18. config/controller_config_util.hxx
  19. debugger/callstack.hxx
  20. debugger/disassembler.hxx
  21. debugger/graphics.hxx
  22. debugger/graphics_cmdlists.hxx
  23. debugger/ramview.hxx
  24. debugger/registers.hxx
  25. bootmanager.hxx
  26. hotkeys.hxx
  27. main.hxx
  28. version.h
  29. )
  30. set(UIS
  31. config/controller_config.ui
  32. debugger/callstack.ui
  33. debugger/disassembler.ui
  34. debugger/registers.ui
  35. hotkeys.ui
  36. main.ui
  37. )
  38. create_directory_groups(${SRCS} ${HEADERS} ${UIS})
  39. if (Qt5_FOUND)
  40. qt5_wrap_ui(UI_HDRS ${UIS})
  41. else()
  42. qt4_wrap_ui(UI_HDRS ${UIS})
  43. endif()
  44. add_executable(citra-qt ${SRCS} ${HEADERS} ${UI_HDRS})
  45. target_link_libraries(citra-qt core common video_core qhexedit)
  46. target_link_libraries(citra-qt ${OPENGL_gl_LIBRARY} ${CITRA_QT_LIBS})
  47. if (APPLE)
  48. target_link_libraries(citra-qt iconv ${COREFOUNDATION_LIBRARY})
  49. elseif (WIN32)
  50. target_link_libraries(citra-qt winmm)
  51. else() # Unix
  52. target_link_libraries(citra-qt rt)
  53. endif()
  54. #install(TARGETS citra-qt RUNTIME DESTINATION ${bindir})