Files
salmanoff/senseApis/xcbWindow/CMakeLists.txt
T

28 lines
919 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
"ENABLE_LIB_xcbXorg" ON)
if(ENABLE_SENSEAPI_xcbWindow)
2025-07-24 06:00:35 -04:00
add_library(senseApiXcbWindow SHARED
xcbWindow.cpp
)
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-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})
# 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)
endif()