diff options
Diffstat (limited to 'src/citra/CMakeLists.txt')
| -rw-r--r-- | src/citra/CMakeLists.txt | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/citra/CMakeLists.txt b/src/citra/CMakeLists.txt index c4cbf9fea..0e03212d7 100644 --- a/src/citra/CMakeLists.txt +++ b/src/citra/CMakeLists.txt | |||
| @@ -12,25 +12,23 @@ set(HEADERS | |||
| 12 | 12 | ||
| 13 | create_directory_groups(${SRCS} ${HEADERS}) | 13 | create_directory_groups(${SRCS} ${HEADERS}) |
| 14 | 14 | ||
| 15 | # NOTE: This is a workaround for CMake bug 0006976 (missing X11_xf86vmode_LIB variable) | ||
| 16 | if (NOT X11_xf86vmode_LIB) | ||
| 17 | set(X11_xv86vmode_LIB Xxf86vm) | ||
| 18 | endif() | ||
| 19 | |||
| 20 | add_executable(citra ${SRCS} ${HEADERS}) | 15 | add_executable(citra ${SRCS} ${HEADERS}) |
| 21 | target_link_libraries(citra core common video_core) | 16 | target_link_libraries(citra core common video_core) |
| 22 | target_link_libraries(citra ${GLFW_LIBRARIES} ${OPENGL_gl_LIBRARY} inih) | 17 | target_link_libraries(citra ${GLFW_LIBRARIES} ${OPENGL_gl_LIBRARY} inih) |
| 23 | 18 | ||
| 19 | if (UNIX) | ||
| 20 | target_link_libraries(citra -pthread) | ||
| 21 | endif() | ||
| 22 | |||
| 24 | if (APPLE) | 23 | if (APPLE) |
| 25 | target_link_libraries(citra iconv pthread ${COREFOUNDATION_LIBRARY}) | 24 | target_link_libraries(citra iconv ${COREFOUNDATION_LIBRARY}) |
| 26 | elseif (WIN32) | 25 | elseif (WIN32) |
| 27 | target_link_libraries(citra winmm) | 26 | target_link_libraries(citra winmm) |
| 28 | if (MINGW) | 27 | if (MINGW) |
| 29 | target_link_libraries(citra iconv) | 28 | target_link_libraries(citra iconv) |
| 30 | endif() | 29 | endif() |
| 31 | else() # Unix | 30 | else() # Unix |
| 32 | target_link_libraries(citra pthread rt) | 31 | target_link_libraries(citra rt) |
| 33 | target_link_libraries(citra ${X11_X11_LIB} ${X11_Xi_LIB} ${X11_Xcursor_LIB} ${X11_Xrandr_LIB} ${X11_xv86vmode_LIB}) | ||
| 34 | endif() | 32 | endif() |
| 35 | 33 | ||
| 36 | #install(TARGETS citra RUNTIME DESTINATION ${bindir}) | 34 | #install(TARGETS citra RUNTIME DESTINATION ${bindir}) |