Added Xcursor to linux dependencies
This commit is contained in:
parent
9b596cc8d9
commit
fc573bc584
@ -4,6 +4,7 @@ addons:
|
|||||||
apt_packages:
|
apt_packages:
|
||||||
- cmake
|
- cmake
|
||||||
- libxrandr-dev
|
- libxrandr-dev
|
||||||
|
- libxcursor-dev
|
||||||
- libudev-dev
|
- libudev-dev
|
||||||
- libopenal-dev
|
- libopenal-dev
|
||||||
- libflac-dev
|
- libflac-dev
|
||||||
|
@ -244,8 +244,8 @@ target_include_directories(sfml-window PRIVATE "${PROJECT_SOURCE_DIR}/extlibs/he
|
|||||||
|
|
||||||
# find and setup usage for external libraries
|
# find and setup usage for external libraries
|
||||||
if(SFML_OS_LINUX OR SFML_OS_FREEBSD OR SFML_OPENBSD)
|
if(SFML_OS_LINUX OR SFML_OS_FREEBSD OR SFML_OPENBSD)
|
||||||
sfml_find_package(X11 INCLUDE "X11_INCLUDE_DIR" LINK "X11_X11_LIB" "X11_Xrandr_LIB")
|
sfml_find_package(X11 INCLUDE "X11_INCLUDE_DIR" LINK "X11_X11_LIB" "X11_Xrandr_LIB" "X11_Xcursor_LIB")
|
||||||
target_link_libraries(sfml-window PRIVATE X11)
|
target_link_libraries(sfml-window PRIVATE X11 Xcursor)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# CMake 3.11 and later prefer to choose GLVND, but we choose legacy OpenGL for backward compability
|
# CMake 3.11 and later prefer to choose GLVND, but we choose legacy OpenGL for backward compability
|
||||||
|
Loading…
Reference in New Issue
Block a user