-
Notifications
You must be signed in to change notification settings - Fork 29
/
CMakeLists.txt
28 lines (25 loc) · 996 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
cmake_minimum_required(VERSION 3.9)
project(ripple-libppdemo)
#[===========================================[
this pulls-in the rippled source code via
git submodule. This demo exe depends on the
xrpl_core library which is defined by the
rippled project.
#]===========================================]
if (MSVC)
#[=======================================[
HACK to patch a one-line windows-only
bug in rippled CMakeLists.txt. This can
be removed once rippled 1.2 is available
and we update the submodule
#]=======================================]
execute_process( COMMAND powershell -Command
"(Get-Content extras/rippled/CMakeLists.txt) \
-replace '^exclude_if_included\\s+\\(rocksdb\\)', '##' \
| Set-Content extras/rippled/CMakeLists.txt"
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
endif ()
add_subdirectory(extras/rippled)
add_executable(ripplelibppdemo src/test/ripple-libpp_demo.cpp)
target_link_libraries (ripplelibppdemo Ripple::xrpl_core)