add x11 libraries for raylib as glfw make private (#5625)
This commit is contained in:
parent
f9ee714c76
commit
3e926d65a0
|
|
@ -117,6 +117,21 @@ target_include_directories(raylib
|
||||||
|
|
||||||
# Copy the header files to the build directory for convenience
|
# Copy the header files to the build directory for convenience
|
||||||
file(COPY ${raylib_public_headers} DESTINATION "include")
|
file(COPY ${raylib_public_headers} DESTINATION "include")
|
||||||
|
if (PLATFORM STREQUAL "Desktop")
|
||||||
|
if (UNIX AND NOT APPLE)
|
||||||
|
if (GLFW_BUILD_X11)
|
||||||
|
find_package(X11 REQUIRED)
|
||||||
|
|
||||||
|
target_compile_definitions(raylib PRIVATE _GLFW_X11)
|
||||||
|
|
||||||
|
target_link_libraries(raylib PRIVATE
|
||||||
|
${X11_LIBRARIES}
|
||||||
|
)
|
||||||
|
|
||||||
|
message(STATUS "X11 support enabled for raylib")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
# Includes information on how the library will be installed on the system
|
# Includes information on how the library will be installed on the system
|
||||||
# when cmake --install is run
|
# when cmake --install is run
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user