CMakeLists.txt 919 B

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