CMake: Check for libDl, conditionally check for libXCB

This commit is contained in:
2025-07-22 04:45:23 -04:00
parent 90a0eebdd8
commit 3503cce0db
11 changed files with 82 additions and 41 deletions
+1
View File
@@ -0,0 +1 @@
add_subdirectory(xcbWindow)
+22
View File
@@ -0,0 +1,22 @@
# XCB/Xorg Window Attaching SenseAPI backend
cmake_dependent_option(ENABLE_SENSEAPI_xcbWindow
"Enable XCB/Xorg Window Attaching SenseAPI backend" OFF
"ENABLE_LIB_xcbXorg" OFF)
if(ENABLE_SENSEAPI_xcbWindow)
# For now, just create a placeholder library
add_library(senseApiXcbWindow STATIC
# xcbWindow.cpp would go here
)
target_link_libraries(senseApiXcbWindow
xcbXorg
)
target_include_directories(senseApiXcbWindow PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
)
# Set config define for header generation
add_compile_definitions(CONFIG_SENSEAPI_XCBWINDOW_ENABLED)
endif()