mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-17 16:02:14 -07:00
Move pending command, adjust CmakeLists.
Took 24 minutes
This commit is contained in:
parent
c5bf87dfed
commit
eb7c4cae6c
33 changed files with 96 additions and 43 deletions
32
libcockatrice_protocol/libcockatrice/protocol/CMakeLists.txt
Normal file
32
libcockatrice_protocol/libcockatrice/protocol/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# Top-level wrapper for the protobuf library
|
||||
|
||||
add_subdirectory(pb)
|
||||
|
||||
add_library(libcockatrice_protocol STATIC)
|
||||
|
||||
set(SOURCES
|
||||
pending_command.cpp
|
||||
)
|
||||
|
||||
set(HEADERS
|
||||
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}/pb # generated pb headers
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue