소스 검색

add x11 libraries for raylib as glfw make private

pull/5625/head
maiconpintoabreu 1 주 전
부모
커밋
4a7036b79a
1개의 변경된 파일15개의 추가작업 그리고 0개의 파일을 삭제
  1. +15
    -0
      src/CMakeLists.txt

+ 15
- 0
src/CMakeLists.txt 파일 보기

@ -117,6 +117,21 @@ target_include_directories(raylib
# Copy the header files to the build directory for convenience
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
# when cmake --install is run

불러오는 중...
취소
저장