Add the subdirectory to the wrapper so it gets processed.

Took 5 minutes
This commit is contained in:
Lukas Brübach 2025-10-04 23:54:25 +02:00
parent 1d1de904e0
commit 4881e084a8

View file

@ -1,4 +1,7 @@
# Top-level wrapper for the protobuf library # Top-level wrapper for the protobuf library
add_subdirectory(pb)
add_library(cockatrice_protocol_wrapper STATIC add_library(cockatrice_protocol_wrapper STATIC
# Optionally, you can add a dummy source if needed # Optionally, you can add a dummy source if needed
) )
@ -10,5 +13,5 @@ target_link_libraries(cockatrice_protocol_wrapper
# Expose the pb/ folder so consumers can do #include "pb/header.pb.h" # Expose the pb/ folder so consumers can do #include "pb/header.pb.h"
target_include_directories(cockatrice_protocol_wrapper target_include_directories(cockatrice_protocol_wrapper
PUBLIC ${CMAKE_BINARY_DIR} # points to the generated headers PUBLIC ${CMAKE_BINARY_DIR} # points to the generated headers
) )