@@ -14,7 +14,7 @@ add_compile_definitions(
|
||||
XR_USE_GRAPHICS_API_OPENGL_ES
|
||||
)
|
||||
|
||||
find_package(PkgConfig)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
|
||||
pkg_check_modules(WAYLAND REQUIRED IMPORTED_TARGET GLOBAL wayland-server)
|
||||
pkg_check_modules(EGL REQUIRED IMPORTED_TARGET egl)
|
||||
@@ -22,6 +22,19 @@ pkg_check_modules(GLES2 REQUIRED IMPORTED_TARGET glesv2)
|
||||
pkg_check_modules(WLROOTS REQUIRED IMPORTED_TARGET wlroots-0.19)
|
||||
pkg_check_modules(OPENXR REQUIRED IMPORTED_TARGET openxr)
|
||||
|
||||
include(FetchContent)
|
||||
|
||||
FetchContent_Declare(
|
||||
raylib
|
||||
GIT_REPOSITORY https://github.com/slendidev/raylib.git
|
||||
GIT_TAG "lunar"
|
||||
GIT_SHALLOW 1
|
||||
)
|
||||
set(OPENGL_VERSION "ES 3.0")
|
||||
set(PLATFORM DRM)
|
||||
set(BUILD_EXAMPLES OFF)
|
||||
FetchContent_MakeAvailable(raylib)
|
||||
|
||||
add_executable(${PROJECT_NAME})
|
||||
target_sources(${PROJECT_NAME} PUBLIC
|
||||
src/main.cpp
|
||||
@@ -37,5 +50,6 @@ target_link_libraries(${PROJECT_NAME} PUBLIC
|
||||
PkgConfig::GLES2
|
||||
PkgConfig::WLROOTS
|
||||
PkgConfig::OPENXR
|
||||
raylib
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user