2025-07-22 04:45:23 -04:00
|
|
|
# XCB/Xorg Window Attaching SenseAPI backend
|
|
|
|
|
cmake_dependent_option(ENABLE_SENSEAPI_xcbWindow
|
2025-07-24 06:00:35 -04:00
|
|
|
"Enable XCB/Xorg Window Attaching SenseAPI backend" ON
|
|
|
|
|
"ENABLE_LIB_xcbXorg" ON)
|
2025-07-22 04:45:23 -04:00
|
|
|
|
|
|
|
|
if(ENABLE_SENSEAPI_xcbWindow)
|
2025-07-24 06:00:35 -04:00
|
|
|
add_library(senseApiXcbWindow SHARED
|
|
|
|
|
xcbWindow.cpp
|
2025-07-22 04:45:23 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
target_include_directories(senseApiXcbWindow PUBLIC
|
2025-07-24 06:00:35 -04:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../include
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../smocore/include
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../commonLibs
|
2025-07-22 04:45:23 -04:00
|
|
|
)
|
|
|
|
|
|
2025-07-24 06:00:35 -04:00
|
|
|
# Link against XCB library directly (libxcbXorg will be loaded dynamically)
|
|
|
|
|
pkg_check_modules(XCB REQUIRED xcb)
|
|
|
|
|
target_link_libraries(senseApiXcbWindow ${XCB_LIBRARIES})
|
|
|
|
|
|
2025-07-22 04:45:23 -04:00
|
|
|
# Set config define for header generation
|
|
|
|
|
add_compile_definitions(CONFIG_SENSEAPI_XCBWINDOW_ENABLED)
|
2025-07-24 06:00:35 -04:00
|
|
|
|
|
|
|
|
# Install rules
|
|
|
|
|
install(TARGETS senseApiXcbWindow DESTINATION lib)
|
2025-07-22 04:45:23 -04:00
|
|
|
endif()
|