2015-06-08 15:50:35 +00:00
|
|
|
file(GLOB HEADERS "include/graphene/net/*.hpp")
|
|
|
|
|
|
|
|
|
|
set(SOURCES node.cpp
|
|
|
|
|
stcp_socket.cpp
|
|
|
|
|
core_messages.cpp
|
|
|
|
|
peer_database.cpp
|
|
|
|
|
peer_connection.cpp
|
2019-05-11 10:39:15 +00:00
|
|
|
message.cpp
|
2015-06-08 15:50:35 +00:00
|
|
|
message_oriented_connection.cpp)
|
|
|
|
|
|
|
|
|
|
add_library( graphene_net ${SOURCES} ${HEADERS} )
|
|
|
|
|
|
2020-11-12 14:08:25 +00:00
|
|
|
target_link_libraries( graphene_net graphene_chain )
|
|
|
|
|
target_include_directories( graphene_net PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include" )
|
2015-06-08 15:50:35 +00:00
|
|
|
|
|
|
|
|
if(MSVC)
|
|
|
|
|
set_source_files_properties( node.cpp PROPERTIES COMPILE_FLAGS "/bigobj" )
|
|
|
|
|
endif(MSVC)
|
|
|
|
|
|
|
|
|
|
if (USE_PCH)
|
|
|
|
|
set_target_properties(graphene_net PROPERTIES COTIRE_ADD_UNITY_BUILD FALSE)
|
|
|
|
|
cotire(graphene_net)
|
|
|
|
|
endif(USE_PCH)
|
2015-08-03 15:11:27 +00:00
|
|
|
|
|
|
|
|
install( TARGETS
|
|
|
|
|
graphene_net
|
|
|
|
|
|
|
|
|
|
RUNTIME DESTINATION bin
|
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
|
ARCHIVE DESTINATION lib
|
|
|
|
|
)
|
2016-03-17 22:08:27 +00:00
|
|
|
install( FILES ${HEADERS} DESTINATION "include/graphene/net" )
|