|
|
@@ -445,7 +445,23 @@ function(dpf__add_dgl_system_libs) |
|
|
|
target_include_directories(dgl-system-libs INTERFACE "${X11_INCLUDE_DIR}") |
|
|
|
target_link_libraries(dgl-system-libs INTERFACE "${X11_X11_LIB}") |
|
|
|
target_compile_definitions(dgl-system-libs-definitions INTERFACE "HAVE_X11") |
|
|
|
endif() |
|
|
|
if(X11_Xext_FOUND) |
|
|
|
target_link_libraries(dgl-system-libs INTERFACE "${X11_Xext_LIB}") |
|
|
|
target_compile_definitions(dgl-system-libs-definitions INTERFACE "HAVE_XEXT") |
|
|
|
endif() |
|
|
|
if(X11_XSync_FOUND) |
|
|
|
target_link_libraries(dgl-system-libs INTERFACE "${X11_XSync_LIB}") |
|
|
|
target_compile_definitions(dgl-system-libs-definitions INTERFACE "HAVE_XSYNC") |
|
|
|
endif() |
|
|
|
if(X11_Xrandr_FOUND) |
|
|
|
target_link_libraries(dgl-system-libs INTERFACE "${X11_Xrandr_LIB}") |
|
|
|
target_compile_definitions(dgl-system-libs-definitions INTERFACE "HAVE_XRANDR") |
|
|
|
endif() |
|
|
|
#if(X11_Xcursor_FOUND) |
|
|
|
# target_link_libraries(dgl-system-libs INTERFACE "${X11_Xcursor_LIB}") |
|
|
|
# target_compile_definitions(dgl-system-libs-definitions INTERFACE "HAVE_XCURSOR") |
|
|
|
#endif() |
|
|
|
endif() |
|
|
|
target_link_libraries(dgl-system-libs INTERFACE dgl-system-libs-definitions) |
|
|
|
endfunction() |
|
|
|
|
|
|
|