Rename senseApiXcbWindow=>xcbWindow
This commit is contained in:
@@ -4,11 +4,11 @@ cmake_dependent_option(ENABLE_SENSEAPI_xcbWindow
|
|||||||
"ENABLE_LIB_xcbXorg" ON)
|
"ENABLE_LIB_xcbXorg" ON)
|
||||||
|
|
||||||
if(ENABLE_SENSEAPI_xcbWindow)
|
if(ENABLE_SENSEAPI_xcbWindow)
|
||||||
add_library(senseApiXcbWindow SHARED
|
add_library(xcbWindow SHARED
|
||||||
xcbWindow.cpp
|
xcbWindow.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(senseApiXcbWindow PUBLIC
|
target_include_directories(xcbWindow PUBLIC
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../../include
|
${CMAKE_CURRENT_SOURCE_DIR}/../../include
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../../smocore/include
|
${CMAKE_CURRENT_SOURCE_DIR}/../../smocore/include
|
||||||
@@ -17,11 +17,11 @@ if(ENABLE_SENSEAPI_xcbWindow)
|
|||||||
|
|
||||||
# Link against XCB library directly (libxcbXorg will be loaded dynamically)
|
# Link against XCB library directly (libxcbXorg will be loaded dynamically)
|
||||||
pkg_check_modules(XCB REQUIRED xcb)
|
pkg_check_modules(XCB REQUIRED xcb)
|
||||||
target_link_libraries(senseApiXcbWindow ${XCB_LIBRARIES})
|
target_link_libraries(xcbWindow ${XCB_LIBRARIES})
|
||||||
|
|
||||||
# Set config define for header generation
|
# Set config define for header generation
|
||||||
add_compile_definitions(CONFIG_SENSEAPI_XCBWINDOW_ENABLED)
|
add_compile_definitions(CONFIG_SENSEAPI_XCBWINDOW_ENABLED)
|
||||||
|
|
||||||
# Install rules
|
# Install rules
|
||||||
install(TARGETS senseApiXcbWindow DESTINATION lib)
|
install(TARGETS xcbWindow DESTINATION lib)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user