mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-05 06:47:53 +00:00
35 lines
970 B
CMake
35 lines
970 B
CMake
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
|
|
|
|
set(SRCS
|
|
emu_window/emu_window_sdl2.cpp
|
|
config.cpp
|
|
yuzu.cpp
|
|
yuzu.rc
|
|
)
|
|
set(HEADERS
|
|
emu_window/emu_window_sdl2.h
|
|
config.h
|
|
default_ini.h
|
|
resource.h
|
|
)
|
|
|
|
create_directory_groups(${SRCS} ${HEADERS})
|
|
|
|
add_executable(yuzu-cmd ${SRCS} ${HEADERS})
|
|
target_link_libraries(yuzu-cmd PRIVATE common core input_common)
|
|
target_link_libraries(yuzu-cmd PRIVATE inih glad)
|
|
if (MSVC)
|
|
target_link_libraries(yuzu-cmd PRIVATE getopt)
|
|
endif()
|
|
target_link_libraries(yuzu-cmd PRIVATE ${PLATFORM_LIBRARIES} SDL2 Threads::Threads)
|
|
|
|
if(UNIX AND NOT APPLE)
|
|
install(TARGETS yuzu-cmd RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
|
|
endif()
|
|
|
|
if (MSVC)
|
|
include(CopyCitraSDLDeps)
|
|
include(CopyYuzuUnicornDeps)
|
|
copy_citra_SDL_deps(yuzu-cmd)
|
|
copy_yuzu_unicorn_deps(yuzu-cmd)
|
|
endif()
|