Files
salmanoff/stimBuffApis/xcbWindow/CMakeLists.txt
T
hayodea 9a4f80a9d6 libAttachmentSupport: convert into shared lib
This ensures that the support routines in this library will be
exposed at the same vaddr to each object in the vaddrspace.
2025-11-04 00:22:25 -04:00

31 lines
927 B
CMake

# XCB/Xorg Window Attaching StimBuffAPI backend
cmake_dependent_option(ENABLE_STIMBUFFAPI_xcbWindow
"Enable XCB/Xorg Window Attaching StimBuffAPI backend" ON
"ENABLE_LIB_xcbXorg" OFF)
if(ENABLE_STIMBUFFAPI_xcbWindow)
# Set CONFIG variable for config.h
set(CONFIG_STIMBUFFAPI_XCBWINDOW_ENABLED 1)
add_library(xcbWindow SHARED
xcbWindow.cpp
)
target_include_directories(xcbWindow PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../../include
${CMAKE_CURRENT_SOURCE_DIR}/../../smocore/include
${CMAKE_CURRENT_SOURCE_DIR}/../../commonLibs
)
# Link against XCB library directly (libxcbXorg will be loaded dynamically)
pkg_check_modules(XCB REQUIRED xcb)
target_link_libraries(xcbWindow
Boost::system Boost::log
${XCB_LIBRARIES}
attachmentSupport)
# Install rules
install(TARGETS xcbWindow DESTINATION lib)
endif()