Split xcbXorg into xcbXorg and xcbWindow
This commit is contained in:
@@ -1,22 +1,27 @@
|
||||
# XCB/Xorg Window Attaching SenseAPI backend
|
||||
cmake_dependent_option(ENABLE_SENSEAPI_xcbWindow
|
||||
"Enable XCB/Xorg Window Attaching SenseAPI backend" OFF
|
||||
"ENABLE_LIB_xcbXorg" OFF)
|
||||
"Enable XCB/Xorg Window Attaching SenseAPI backend" ON
|
||||
"ENABLE_LIB_xcbXorg" ON)
|
||||
|
||||
if(ENABLE_SENSEAPI_xcbWindow)
|
||||
# For now, just create a placeholder library
|
||||
add_library(senseApiXcbWindow STATIC
|
||||
# xcbWindow.cpp would go here
|
||||
)
|
||||
|
||||
target_link_libraries(senseApiXcbWindow
|
||||
xcbXorg
|
||||
add_library(senseApiXcbWindow SHARED
|
||||
xcbWindow.cpp
|
||||
)
|
||||
|
||||
target_include_directories(senseApiXcbWindow PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
${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(senseApiXcbWindow ${XCB_LIBRARIES})
|
||||
|
||||
# Set config define for header generation
|
||||
add_compile_definitions(CONFIG_SENSEAPI_XCBWINDOW_ENABLED)
|
||||
|
||||
# Install rules
|
||||
install(TARGETS senseApiXcbWindow DESTINATION lib)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user