basic wayland structs made

This commit is contained in:
2025-12-21 21:35:24 -06:00
parent d4b77760fe
commit b808be03a1
7 changed files with 1187 additions and 2 deletions

View File

@@ -67,11 +67,19 @@ pkg_check_modules(FONTCONFIG REQUIRED fontconfig)
add_executable(${PROJECT_NAME} src/main.cpp)
# -----------------------------
# Auto-discover other source files
# Auto-discover C++ and C source files
# -----------------------------
# C++ files
file(GLOB_RECURSE ALL_CPP "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
list(REMOVE_ITEM ALL_CPP "${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp")
target_sources(${PROJECT_NAME} PRIVATE ${ALL_CPP})
# C files
file(GLOB_RECURSE ALL_C "${CMAKE_CURRENT_SOURCE_DIR}/src/*.c")
# Optionally remove main.c if you have it:
# list(REMOVE_ITEM ALL_C "${CMAKE_CURRENT_SOURCE_DIR}/src/main.c")
# Add them to the target
target_sources(${PROJECT_NAME} PRIVATE ${ALL_CPP} ${ALL_C})
# -----------------------------
# Include directories
@@ -121,3 +129,4 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
-Wdouble-promotion
)
endif()