Compare commits
3 commits
master
...
feature/SO
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6f7b829e1 | ||
|
|
9040a6180c | ||
|
|
a2a58b2ddc |
5 changed files with 42 additions and 0 deletions
|
|
@ -12,3 +12,5 @@ add_subdirectory( debug_witness )
|
||||||
add_subdirectory( snapshot )
|
add_subdirectory( snapshot )
|
||||||
add_subdirectory( peerplays_sidechain )
|
add_subdirectory( peerplays_sidechain )
|
||||||
add_subdirectory( es_objects )
|
add_subdirectory( es_objects )
|
||||||
|
|
||||||
|
add_subdirectory( libbitcoin )
|
||||||
|
|
|
||||||
29
libraries/plugins/libbitcoin/CMakeLists.txt
Normal file
29
libraries/plugins/libbitcoin/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
include(ExternalProject)
|
||||||
|
|
||||||
|
set(LIBBITCOIN_DIR ${CMAKE_CURRENT_SOURCE_DIR}/libbitcoin-system)
|
||||||
|
set(LIBBITCOIN_BIN ${CMAKE_CURRENT_BINARY_DIR}/libbitcoin)
|
||||||
|
set(LIBBITCOIN_STATIC_LIB ${LIBBITCOIN_BIN}/lib/libbitcoin-system.a)
|
||||||
|
set(LIBBITCOIN_INCLUDES ${LIBBITCOIN_DIR}/include)
|
||||||
|
|
||||||
|
file(MAKE_DIRECTORY ${LIBBITCOIN_INCLUDES})
|
||||||
|
|
||||||
|
ExternalProject_Add(
|
||||||
|
bitcoinsystem
|
||||||
|
PREFIX ${LIBBITCOIN_BIN}
|
||||||
|
SOURCE_DIR ${LIBBITCOIN_DIR}
|
||||||
|
DOWNLOAD_COMMAND cd ${LIBBITCOIN_DIR} && ${LIBBITCOIN_DIR}/autogen.sh
|
||||||
|
CONFIGURE_COMMAND ${LIBBITCOIN_DIR}/configure --srcdir=${LIBBITCOIN_DIR} --prefix=${LIBBITCOIN_BIN} --enable-static=yes --disable-shared --with-examples=no
|
||||||
|
BUILD_COMMAND make -j4
|
||||||
|
INSTALL_COMMAND make install
|
||||||
|
BUILD_BYPRODUCTS ${LIBBITCOIN_STATIC_LIB}
|
||||||
|
)
|
||||||
|
|
||||||
|
add_library(libbitcoin STATIC IMPORTED GLOBAL)
|
||||||
|
|
||||||
|
set_target_properties(bitcoinsystem PROPERTIES IMPORTED_LOCATION ${LIBBITCOIN_STATIC_LIB})
|
||||||
|
set_target_properties(bitcoinsystem PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${LIBBITCOIN_INCLUDES})
|
||||||
|
|
||||||
|
add_dependencies(libbitcoin bitcoinsystem)
|
||||||
|
|
||||||
|
set_target_properties(libbitcoin PROPERTIES IMPORTED_LOCATION ${LIBBITCOIN_STATIC_LIB})
|
||||||
|
set_target_properties(libbitcoin PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${LIBBITCOIN_INCLUDES})
|
||||||
|
|
@ -60,3 +60,5 @@ add_executable( es_test ${ES_SOURCES} ${COMMON_SOURCES} )
|
||||||
target_link_libraries( es_test graphene_chain graphene_app graphene_account_history graphene_elasticsearch graphene_es_objects graphene_egenesis_none fc ${PLATFORM_SPECIFIC_LIBS} )
|
target_link_libraries( es_test graphene_chain graphene_app graphene_account_history graphene_elasticsearch graphene_es_objects graphene_egenesis_none fc ${PLATFORM_SPECIFIC_LIBS} )
|
||||||
|
|
||||||
add_subdirectory( generate_empty_blocks )
|
add_subdirectory( generate_empty_blocks )
|
||||||
|
|
||||||
|
add_subdirectory( bitcoin_test )
|
||||||
|
|
|
||||||
3
tests/bitcoin_test/CMakeLists.txt
Normal file
3
tests/bitcoin_test/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
add_executable( bitcoin_test main.cpp )
|
||||||
|
target_link_libraries( bitcoin_test
|
||||||
|
PRIVATE libbitcoin ${CMAKE_DL_LIBS} ${PLATFORM_SPECIFIC_LIBS} )
|
||||||
6
tests/bitcoin_test/main.cpp
Normal file
6
tests/bitcoin_test/main.cpp
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include <bitcoin/system.hpp>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue