Add new CMake build system

This commit is contained in:
2025-07-22 02:46:16 -04:00
parent e7974db324
commit 065b2593f4
7 changed files with 147 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
# Conditional compilation based on feature flags
if(ENABLE_XCB)
add_subdirectory(xcbXorg)
endif()
+14
View File
@@ -0,0 +1,14 @@
add_library(xcbXorg SHARED
xcbXorg.cpp
)
target_include_directories(xcbXorg PUBLIC
${XCB_INCLUDE_DIRS}
)
target_link_libraries(xcbXorg
${XCB_LIBRARIES}
)
# Install rules
install(TARGETS xcbXorg DESTINATION lib)