|
|
@ -11,7 +11,10 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTATICLIB") |
|
|
|
|
|
|
|
aux_source_directory(. SRC_LIST) |
|
|
|
|
|
|
|
# we may not use it in libp2p, but one of our dependecies is including leveldb in header file |
|
|
|
# and windows is failing to build without that |
|
|
|
include_directories(${LEVELDB_INCLUDE_DIRS}) |
|
|
|
include_directories(${MINIUPNPC_INCLUDE_DIRS}) |
|
|
|
include_directories(..) |
|
|
|
|
|
|
|
set(EXECUTABLE p2p) |
|
|
@ -24,15 +27,12 @@ else() |
|
|
|
add_library(${EXECUTABLE} SHARED ${SRC_LIST} ${HEADERS}) |
|
|
|
endif() |
|
|
|
|
|
|
|
target_link_libraries(${EXECUTABLE} ${LEVELDB_LIBRARIES}) |
|
|
|
|
|
|
|
if(MINIUPNPC_FOUND) |
|
|
|
if (MINIUPNPC_FOUND) |
|
|
|
target_link_libraries(${EXECUTABLE} ${MINIUPNPC_LIBRARIES}) |
|
|
|
endif() |
|
|
|
|
|
|
|
target_link_libraries(${EXECUTABLE} devcrypto) |
|
|
|
target_link_libraries(${EXECUTABLE} devcore) |
|
|
|
target_link_libraries(${EXECUTABLE} secp256k1) |
|
|
|
|
|
|
|
install( TARGETS ${EXECUTABLE} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib ) |
|
|
|
install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} ) |
|
|
|