diff options
author | bunnei <bunneidev@gmail.com> | 2014-09-02 04:29:23 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-09-02 04:29:23 +0200 |
commit | c0e48432cd262baa6ed84b33cd9dd0d8f585e345 (patch) | |
tree | 0ed8ccb8b5c42ee27c0c44969771bbd77af8ebf8 /src/citra/CMakeLists.txt | |
parent | Merge pull request #84 from bunnei/fix-hw-synchronization (diff) | |
parent | Remove hand-crafted Visual Studio solution. (diff) | |
download | yuzu-c0e48432cd262baa6ed84b33cd9dd0d8f585e345.tar yuzu-c0e48432cd262baa6ed84b33cd9dd0d8f585e345.tar.gz yuzu-c0e48432cd262baa6ed84b33cd9dd0d8f585e345.tar.bz2 yuzu-c0e48432cd262baa6ed84b33cd9dd0d8f585e345.tar.lz yuzu-c0e48432cd262baa6ed84b33cd9dd0d8f585e345.tar.xz yuzu-c0e48432cd262baa6ed84b33cd9dd0d8f585e345.tar.zst yuzu-c0e48432cd262baa6ed84b33cd9dd0d8f585e345.zip |
Diffstat (limited to 'src/citra/CMakeLists.txt')
-rw-r--r-- | src/citra/CMakeLists.txt | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/citra/CMakeLists.txt b/src/citra/CMakeLists.txt index 1cbe22cc0..f10f3e603 100644 --- a/src/citra/CMakeLists.txt +++ b/src/citra/CMakeLists.txt @@ -1,6 +1,13 @@ -set(SRCS citra.cpp - emu_window/emu_window_glfw.cpp) -set(HEADERS resource.h) +set(SRCS + emu_window/emu_window_glfw.cpp + citra.cpp + ) +set(HEADERS + emu_window/emu_window_glfw.h + resource.h + ) + +create_directory_groups(${SRCS} ${HEADERS}) # NOTE: This is a workaround for CMake bug 0006976 (missing X11_xf86vmode_LIB variable) if (NOT X11_xf86vmode_LIB) @@ -8,11 +15,16 @@ if (NOT X11_xf86vmode_LIB) endif() add_executable(citra ${SRCS} ${HEADERS}) +target_link_libraries(citra core common video_core) +target_link_libraries(citra ${OPENGL_gl_LIBRARY} ${GLFW_LIBRARIES}) if (APPLE) - target_link_libraries(citra core common video_core iconv pthread ${COREFOUNDATION_LIBRARY} ${OPENGL_LIBRARIES} ${GLEW_LIBRARY} ${GLFW_LIBRARIES}) -else() - target_link_libraries(citra core common video_core GLEW pthread X11 Xxf86vm Xi Xcursor ${OPENGL_LIBRARIES} ${GLFW_LIBRARIES} rt ${X11_Xrandr_LIB} ${X11_xv86vmode_LIB} ${PNG_LIBRARIES}) + target_link_libraries(citra iconv pthread ${COREFOUNDATION_LIBRARY}) +elseif (WIN32) + target_link_libraries(citra winmm) +else() # Unix + target_link_libraries(citra pthread rt) + target_link_libraries(citra ${X11_X11_LIB} ${X11_Xi_LIB} ${X11_Xcursor_LIB} ${X11_Xrandr_LIB} ${X11_xv86vmode_LIB}) endif() #install(TARGETS citra RUNTIME DESTINATION ${bindir}) |