Convert structure to open-std Document P1204R0: Canonical Project Structure

Took 2 hours 50 minutes
This commit is contained in:
Lukas Brübach 2025-10-05 23:58:53 +02:00
parent 3e0cf97dff
commit 3fb9689bbb
585 changed files with 1548 additions and 1584 deletions

View file

@ -0,0 +1,13 @@
# Top-level wrapper for the protobuf library
add_subdirectory(libcockatrice/protocol/pb)
add_library(libcockatrice_protocol_wrapper STATIC)
# Link the actual generated protobuf library
target_link_libraries(libcockatrice_protocol_wrapper PUBLIC libcockatrice_protocol)
# Expose the pb/ folder so consumers can do #include <libcockatrice/protocol/pb/header.pb.h>
target_include_directories(
libcockatrice_protocol_wrapper PUBLIC ${CMAKE_CURRENT_BINARY_DIR} # points to the generated headers
)