diff options
author | bunnei <bunneidev@gmail.com> | 2016-03-03 02:32:32 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-03-03 02:32:32 +0100 |
commit | 699b2a6571849bddda4fee3eb31f2f7b7e83a882 (patch) | |
tree | 0db944960a7f7a924f34afa1222ad6e9d3421b11 /src/citra/CMakeLists.txt | |
parent | Merge pull request #1434 from Kloen/legend (diff) | |
parent | Config: Use unique_ptr instead of raw pointer (diff) | |
download | yuzu-699b2a6571849bddda4fee3eb31f2f7b7e83a882.tar yuzu-699b2a6571849bddda4fee3eb31f2f7b7e83a882.tar.gz yuzu-699b2a6571849bddda4fee3eb31f2f7b7e83a882.tar.bz2 yuzu-699b2a6571849bddda4fee3eb31f2f7b7e83a882.tar.lz yuzu-699b2a6571849bddda4fee3eb31f2f7b7e83a882.tar.xz yuzu-699b2a6571849bddda4fee3eb31f2f7b7e83a882.tar.zst yuzu-699b2a6571849bddda4fee3eb31f2f7b7e83a882.zip |
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 @@ set(SRCS - emu_window/emu_window_glfw.cpp + emu_window/emu_window_sdl2.cpp citra.cpp config.cpp citra.rc ) set(HEADERS - emu_window/emu_window_glfw.h + emu_window/emu_window_sdl2.h config.h default_ini.h resource.h @@ -13,12 +13,11 @@ set(HEADERS create_directory_groups(${SRCS} ${HEADERS}) -include_directories(${GLFW_INCLUDE_DIRS}) -link_directories(${GLFW_LIBRARY_DIRS}) +include_directories(${SDL2_INCLUDE_DIR}) add_executable(citra ${SRCS} ${HEADERS}) target_link_libraries(citra core video_core audio_core common) -target_link_libraries(citra ${GLFW_LIBRARIES} ${OPENGL_gl_LIBRARY} inih glad) +target_link_libraries(citra ${SDL2_LIBRARY} ${OPENGL_gl_LIBRARY} inih glad) if (MSVC) target_link_libraries(citra getopt) endif() @@ -27,3 +26,13 @@ target_link_libraries(citra ${PLATFORM_LIBRARIES}) if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD|OpenBSD|NetBSD") install(TARGETS citra RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") endif() + +if (MSVC) + include(WindowsCopyFiles) + + set(DLL_DEST "${CMAKE_BINARY_DIR}/bin/$<CONFIG>/") + + windows_copy_files(citra ${SDL2_DLL_DIR} ${DLL_DEST} SDL2.dll) + + unset(DLL_DEST) +endif() |