mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add note about setting GTEST cmake variables.
Because I keep forgetting them...
This commit is contained in:
parent
176bc89e22
commit
3a794e75be
@ -107,6 +107,11 @@ Then decide what cmake command line options you will need:
|
||||
the top-level `CMakeLists.txt` file. For example, you can disable
|
||||
SQL using these options.
|
||||
|
||||
* Google Test will work without setting options in most Linux distros, but if
|
||||
it doesn't you may need to set GMOCK_ROOT or GTEST_ROOT to the root of the
|
||||
respective sources. Set GTEST_DISABLE to prevent Google Test based tests from
|
||||
running.
|
||||
|
||||
Some examples:
|
||||
|
||||
* Build on Linux, don't want to install, use the Makefile generator:
|
||||
@ -125,6 +130,11 @@ Some examples:
|
||||
|
||||
$ cmake -D CMAKE_INSTALL_PREFIX=/tmp/gnucash -D CMAKE_PREFIX_PATH=$HOME/gnucash-unstable -G Xcode ../gnucash
|
||||
|
||||
* Again, this time pointing to a gmock-1.7.0 source directory:
|
||||
|
||||
$ cmake -D CMAKE_INSTALL_PREFIX=/tmp/gnucash -D
|
||||
CMAKE_PREFIX_PATH=$HOME/gnucash-unstable -D GMOCK_ROOT=$HOME/gmock-1.7.0 -D GTEST_ROOT=$HOME/gmock-1.7.0/gtest -G Xcode ../gnucash
|
||||
|
||||
=== Building
|
||||
|
||||
The Xcode, Ninja and Makefile generators all support parallel builds,
|
||||
|
Loading…
Reference in New Issue
Block a user