mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 14:32:15 -07:00
32 lines
747 B
CMake
32 lines
747 B
CMake
# Top-level wrapper for the protobuf library
|
|
|
|
add_subdirectory(libcockatrice/protocol/pb)
|
|
|
|
add_library(libcockatrice_protocol STATIC)
|
|
|
|
set(SOURCES
|
|
libcockatrice/protocol/pending_command.cpp
|
|
)
|
|
|
|
set(HEADERS
|
|
libcockatrice/protocol/pending_command.h
|
|
)
|
|
|
|
target_sources(libcockatrice_protocol
|
|
PRIVATE
|
|
${SOURCES}
|
|
${HEADERS}
|
|
)
|
|
|
|
add_dependencies(libcockatrice_protocol libcockatrice_protocol_pb)
|
|
|
|
# Link the actual generated protobuf library
|
|
target_link_libraries(libcockatrice_protocol PUBLIC ${COCKATRICE_QT_MODULES} libcockatrice_protocol_pb)
|
|
|
|
# Expose include paths
|
|
target_include_directories(
|
|
libcockatrice_protocol
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_CURRENT_BINARY_DIR} # points to the generated headers
|
|
)
|