CMakeLists.txt 834 B

1234567891011121314151617181920212223242526272829303132
  1. set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
  2. add_executable(yuzu-cmd
  3. config.cpp
  4. config.h
  5. default_ini.h
  6. emu_window/emu_window_sdl2.cpp
  7. emu_window/emu_window_sdl2.h
  8. resource.h
  9. yuzu.cpp
  10. yuzu.rc
  11. )
  12. create_target_directory_groups(yuzu-cmd)
  13. target_link_libraries(yuzu-cmd PRIVATE common core input_common)
  14. target_link_libraries(yuzu-cmd PRIVATE inih glad)
  15. if (MSVC)
  16. target_link_libraries(yuzu-cmd PRIVATE getopt)
  17. endif()
  18. target_link_libraries(yuzu-cmd PRIVATE ${PLATFORM_LIBRARIES} SDL2 Threads::Threads)
  19. if(UNIX AND NOT APPLE)
  20. install(TARGETS yuzu-cmd RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
  21. endif()
  22. if (MSVC)
  23. include(CopyYuzuSDLDeps)
  24. include(CopyYuzuUnicornDeps)
  25. copy_yuzu_SDL_deps(yuzu-cmd)
  26. copy_yuzu_unicorn_deps(yuzu-cmd)
  27. endif()