basic wayland structs made
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user