Files
salmanoff/senseApis/xcbWindow/CMakeLists.txt
T

28 lines
888 B
CMake
Raw Normal View History

# 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
2025-09-10 19:44:17 -04:00
"ENABLE_LIB_xcbXorg" OFF)
if(ENABLE_SENSEAPI_xcbWindow)
2025-08-29 20:24:04 -04:00
add_library(xcbWindow SHARED
2025-07-24 06:00:35 -04:00
xcbWindow.cpp
)
2025-08-29 20:24:04 -04:00
target_include_directories(xcbWindow 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-24 06:00:35 -04:00
# Link against XCB library directly (libxcbXorg will be loaded dynamically)
pkg_check_modules(XCB REQUIRED xcb)
2025-08-29 20:24:04 -04:00
target_link_libraries(xcbWindow ${XCB_LIBRARIES})
2025-07-24 06:00:35 -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
2025-08-29 20:24:04 -04:00
install(TARGETS xcbWindow DESTINATION lib)
endif()