document building and running tests, disable building tests by default

This commit is contained in:
woodser
2023-09-01 17:19:34 -04:00
parent ff00f0a840
commit 8f91097667
2 changed files with 14 additions and 3 deletions
+3 -3
View File
@@ -18,9 +18,9 @@ endif()
project(MoneroCppLibrary)
set(BUILD_LIBRARY ON)
set(BUILD_SAMPLE ON)
set(BUILD_SCRATCHPAD ON)
set(BUILD_TESTS ON)
set(BUILD_SAMPLE OFF)
set(BUILD_SCRATCHPAD OFF)
set(BUILD_TESTS OFF)
###################
# monero-project
+11
View File
@@ -243,6 +243,17 @@ For example, [monero-java](https://github.com/monero-ecosystem/monero-java) comp
For 32 bit: `make release-static-win32`
10. Build as a shared library to ./build/: `cd ../../ && ./bin/build_libmonero_cpp.sh`
## Running sample code and tests
1. In CMakeLists.txt, set the flags to build:
set(BUILD_LIBRARY ON)
set(BUILD_SAMPLE ON)
set(BUILD_SCRATCHPAD ON)
set(BUILD_TESTS ON)
2. `./bin/build_libmonero_cpp.sh`
3. Run the app, for example: `./build/sample_code`
## Related projects
* [monero-java](https://github.com/monero-ecosystem/monero-java)