The ID types, object_id and object_id_type, were defined in the db library, and the protocol library depends on db to get these types. Technically, the ID types are defined by the protocol and used by the database, and not vice versa. Therefore these types should be in the protocol library, and db should depend on protocol to get them. This commit makes it so.
54 lines
1.7 KiB
CMake
54 lines
1.7 KiB
CMake
file(GLOB HEADERS "include/graphene/protocol/*.hpp")
|
|
|
|
list(APPEND SOURCES account.cpp
|
|
assert.cpp
|
|
asset_ops.cpp
|
|
block.cpp
|
|
confidential.cpp
|
|
chain_parameters.cpp
|
|
fee_schedule.cpp
|
|
memo.cpp
|
|
proposal.cpp
|
|
transfer.cpp
|
|
vote.cpp
|
|
witness.cpp
|
|
address.cpp
|
|
asset.cpp
|
|
authority.cpp
|
|
special_authority.cpp
|
|
committee_member.cpp
|
|
custom.cpp
|
|
market.cpp
|
|
operations.cpp
|
|
pts_address.cpp
|
|
transaction.cpp
|
|
types.cpp
|
|
withdraw_permission.cpp
|
|
worker.cpp
|
|
betting_market.cpp
|
|
competitor.cpp
|
|
event.cpp
|
|
event_group.cpp
|
|
lottery_ops.cpp
|
|
small_ops.cpp
|
|
sport.cpp
|
|
tournament.cpp
|
|
small_ops.cpp
|
|
custom_permission.cpp
|
|
custom_account_authority.cpp
|
|
offer.cpp
|
|
)
|
|
|
|
|
|
add_library( graphene_protocol ${SOURCES} ${HEADERS} )
|
|
target_link_libraries( graphene_protocol fc )
|
|
target_include_directories( graphene_protocol PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" )
|
|
|
|
install( TARGETS
|
|
graphene_protocol
|
|
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
)
|
|
install( FILES ${HEADERS} DESTINATION "include/graphene/protocol" )
|