mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
Add a wrapper.
Took 35 minutes
This commit is contained in:
parent
e5f23f1906
commit
1d1de904e0
164 changed files with 25 additions and 34 deletions
14
libs/protocol/CMakeLists.txt
Normal file
14
libs/protocol/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Top-level wrapper for the protobuf library
|
||||
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
|
||||
)
|
||||
|
||||
# Expose the pb/ folder so consumers can do #include "pb/header.pb.h"
|
||||
target_include_directories(cockatrice_protocol_wrapper
|
||||
PUBLIC ${CMAKE_BINARY_DIR} # points to the generated headers
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue