CMake: Check for libDl, conditionally check for libXCB
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# XCB/Xorg Mouse Wilzor API backend
|
||||
cmake_dependent_option(ENABLE_WILZORAPI_xcbMouse
|
||||
"Enable XCB/Xorg Mouse Wilzor API backend" OFF
|
||||
"ENABLE_LIB_xcbXorg" OFF)
|
||||
|
||||
if(ENABLE_WILZORAPI_xcbMouse)
|
||||
# For now, just create a placeholder library
|
||||
add_library(wilzorApiXcbMouse STATIC
|
||||
# xcbMouse.cpp would go here
|
||||
)
|
||||
|
||||
target_link_libraries(wilzorApiXcbMouse
|
||||
xcbXorg
|
||||
)
|
||||
|
||||
target_include_directories(wilzorApiXcbMouse PUBLIC
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
# Set config define for header generation
|
||||
add_compile_definitions(CONFIG_WILZORAPI_XCBMOUSE_ENABLED)
|
||||
endif()
|
||||
Reference in New Issue
Block a user