Finally, CMake linting.

Took 11 minutes

Took 4 minutes
This commit is contained in:
Lukas Brübach 2025-10-05 00:29:52 +02:00
parent ecfcc078c4
commit 33cd0098f8
16 changed files with 302 additions and 311 deletions

View file

@ -2,16 +2,15 @@
add_subdirectory(pb)
add_library(cockatrice_protocol_wrapper STATIC
# Optionally, you can add a dummy source if needed
add_library(
cockatrice_protocol_wrapper STATIC
# Optionally, you can add a dummy source if needed
)
# Link the actual generated protobuf library
target_link_libraries(cockatrice_protocol_wrapper
PUBLIC cockatrice_protocol
)
target_link_libraries(cockatrice_protocol_wrapper PUBLIC cockatrice_protocol)
# Expose the pb/ folder so consumers can do #include "pb/header.pb.h"
target_include_directories(cockatrice_protocol_wrapper
PUBLIC ${CMAKE_CURRENT_BINARY_DIR} # points to the generated headers
target_include_directories(
cockatrice_protocol_wrapper PUBLIC ${CMAKE_CURRENT_BINARY_DIR} # points to the generated headers
)