Files
salmanoff/stimBuffApis/xcbWindow/CMakeLists.txt
T

28 lines
878 B
CMake
Raw Normal View History

2025-10-01 18:47:42 -04:00
# XCB/Xorg Window Attaching StimBuffAPI backend
cmake_dependent_option(ENABLE_STIMBUFFAPI_xcbWindow
"Enable XCB/Xorg Window Attaching StimBuffAPI backend" ON
2025-09-10 19:44:17 -04:00
"ENABLE_LIB_xcbXorg" OFF)
2025-10-01 18:47:42 -04:00
if(ENABLE_STIMBUFFAPI_xcbWindow)
# Set CONFIG variable for config.h
set(CONFIG_STIMBUFFAPI_XCBWINDOW_ENABLED 1)
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
# Install rules
2025-08-29 20:24:04 -04:00
install(TARGETS xcbWindow DESTINATION lib)
endif()