mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-17 07:11:30 +02:00
document building and running tests, disable building tests by default
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user