mirror of
https://github.com/rt64/rt64.git
synced 2025-01-14 00:41:07 +00:00
Link against Xrandr
on Linux (#20)
* Add `Xrandr` to `target_link_libraries` * Use the fancy cmake stuff
This commit is contained in:
parent
a64519b897
commit
ca26fb8096
@ -350,8 +350,8 @@ endif()
|
||||
|
||||
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
find_package(X11 REQUIRED)
|
||||
target_include_directories(rt64 PUBLIC ${X11_INCLUDE_DIR})
|
||||
target_link_libraries(rt64 ${X11_LIBRARIES})
|
||||
target_include_directories(rt64 PUBLIC ${X11_INCLUDE_DIR} ${X11_Xrandr_INCLUDE_PATH})
|
||||
target_link_libraries(rt64 ${X11_LIBRARIES} ${X11_Xrandr_LIB})
|
||||
endif()
|
||||
|
||||
preprocess_shader(rt64 "src/shaders/RasterPS.hlsl")
|
||||
|
Loading…
Reference in New Issue
Block a user