diff options
Diffstat (limited to 'src/citra/CMakeLists.txt')
| -rw-r--r-- | src/citra/CMakeLists.txt | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/citra/CMakeLists.txt b/src/citra/CMakeLists.txt index b9abb818e..fa615deb9 100644 --- a/src/citra/CMakeLists.txt +++ b/src/citra/CMakeLists.txt | |||
| @@ -1,11 +1,11 @@ | |||
| 1 | set(SRCS | 1 | set(SRCS |
| 2 | emu_window/emu_window_glfw.cpp | 2 | emu_window/emu_window_sdl2.cpp |
| 3 | citra.cpp | 3 | citra.cpp |
| 4 | config.cpp | 4 | config.cpp |
| 5 | citra.rc | 5 | citra.rc |
| 6 | ) | 6 | ) |
| 7 | set(HEADERS | 7 | set(HEADERS |
| 8 | emu_window/emu_window_glfw.h | 8 | emu_window/emu_window_sdl2.h |
| 9 | config.h | 9 | config.h |
| 10 | default_ini.h | 10 | default_ini.h |
| 11 | resource.h | 11 | resource.h |
| @@ -13,12 +13,11 @@ set(HEADERS | |||
| 13 | 13 | ||
| 14 | create_directory_groups(${SRCS} ${HEADERS}) | 14 | create_directory_groups(${SRCS} ${HEADERS}) |
| 15 | 15 | ||
| 16 | include_directories(${GLFW_INCLUDE_DIRS}) | 16 | include_directories(${SDL2_INCLUDE_DIR}) |
| 17 | link_directories(${GLFW_LIBRARY_DIRS}) | ||
| 18 | 17 | ||
| 19 | add_executable(citra ${SRCS} ${HEADERS}) | 18 | add_executable(citra ${SRCS} ${HEADERS}) |
| 20 | target_link_libraries(citra core video_core audio_core common) | 19 | target_link_libraries(citra core video_core audio_core common) |
| 21 | target_link_libraries(citra ${GLFW_LIBRARIES} ${OPENGL_gl_LIBRARY} inih glad) | 20 | target_link_libraries(citra ${SDL2_LIBRARY} ${OPENGL_gl_LIBRARY} inih glad) |
| 22 | if (MSVC) | 21 | if (MSVC) |
| 23 | target_link_libraries(citra getopt) | 22 | target_link_libraries(citra getopt) |
| 24 | endif() | 23 | endif() |
| @@ -27,3 +26,13 @@ target_link_libraries(citra ${PLATFORM_LIBRARIES}) | |||
| 27 | if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD|OpenBSD|NetBSD") | 26 | if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD|OpenBSD|NetBSD") |
| 28 | install(TARGETS citra RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") | 27 | install(TARGETS citra RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") |
| 29 | endif() | 28 | endif() |
| 29 | |||
| 30 | if (MSVC) | ||
| 31 | include(WindowsCopyFiles) | ||
| 32 | |||
| 33 | set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/") | ||
| 34 | |||
| 35 | windows_copy_files(citra ${SDL2_DLL_DIR} ${DLL_DEST} SDL2.dll) | ||
| 36 | |||
| 37 | unset(DLL_DEST) | ||
| 38 | endif() | ||