summaryrefslogtreecommitdiff
path: root/src/yuzu_cmd/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuzu_cmd/CMakeLists.txt')
-rw-r--r--src/yuzu_cmd/CMakeLists.txt15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/yuzu_cmd/CMakeLists.txt b/src/yuzu_cmd/CMakeLists.txt
index 57f9916f6..0b3f2cb54 100644
--- a/src/yuzu_cmd/CMakeLists.txt
+++ b/src/yuzu_cmd/CMakeLists.txt
@@ -4,26 +4,17 @@ add_executable(yuzu-cmd
4 config.cpp 4 config.cpp
5 config.h 5 config.h
6 default_ini.h 6 default_ini.h
7 emu_window/emu_window_sdl2_gl.cpp
8 emu_window/emu_window_sdl2_gl.h
9 emu_window/emu_window_sdl2.cpp 7 emu_window/emu_window_sdl2.cpp
10 emu_window/emu_window_sdl2.h 8 emu_window/emu_window_sdl2.h
11 emu_window/emu_window_sdl2_gl.cpp 9 emu_window/emu_window_sdl2_gl.cpp
12 emu_window/emu_window_sdl2_gl.h 10 emu_window/emu_window_sdl2_gl.h
11 emu_window/emu_window_sdl2_vk.cpp
12 emu_window/emu_window_sdl2_vk.h
13 resource.h 13 resource.h
14 yuzu.cpp 14 yuzu.cpp
15 yuzu.rc 15 yuzu.rc
16) 16)
17 17
18if (ENABLE_VULKAN)
19 target_sources(yuzu-cmd PRIVATE
20 emu_window/emu_window_sdl2_vk.cpp
21 emu_window/emu_window_sdl2_vk.h)
22
23 target_include_directories(yuzu-cmd PRIVATE ../../externals/Vulkan-Headers/include)
24 target_compile_definitions(yuzu-cmd PRIVATE HAS_VULKAN)
25endif()
26
27create_target_directory_groups(yuzu-cmd) 18create_target_directory_groups(yuzu-cmd)
28 19
29target_link_libraries(yuzu-cmd PRIVATE common core input_common) 20target_link_libraries(yuzu-cmd PRIVATE common core input_common)
@@ -33,6 +24,8 @@ if (MSVC)
33endif() 24endif()
34target_link_libraries(yuzu-cmd PRIVATE ${PLATFORM_LIBRARIES} SDL2 Threads::Threads) 25target_link_libraries(yuzu-cmd PRIVATE ${PLATFORM_LIBRARIES} SDL2 Threads::Threads)
35 26
27target_include_directories(yuzu-cmd PRIVATE ../../externals/Vulkan-Headers/include)
28
36if(UNIX AND NOT APPLE) 29if(UNIX AND NOT APPLE)
37 install(TARGETS yuzu-cmd RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") 30 install(TARGETS yuzu-cmd RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
38endif() 31endif()