You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- PR #64 removed json_example, but some references to it still exist in a few places
- Small CMake bug fixed for compiling other projects against the uninstalled
json-fortran build tree.
Currently, several ways are provided to build the jsonfortran library
37
37
(libjsonfortran).
38
38
39
-
* A build script, `build.sh` is provided in the project root directory. This script uses [FoBiS](https://github.com/szaghi/FoBiS) to build the json-fortran library and the example program. Edit the script to use either the [Intel Fortran Compiler](https://software.intel.com/en-us/fortran-compilers) or [Gfortran](https://gcc.gnu.org/wiki/GFortran). Note that version 1.2.5 of FoBiS (or later) is required.
39
+
* A build script, `build.sh` is provided in the project root directory. This script uses [FoBiS](https://github.com/szaghi/FoBiS) to build the json-fortran library and the unit tests. Edit the script to use either the [Intel Fortran Compiler](https://software.intel.com/en-us/fortran-compilers) or [Gfortran](https://gcc.gnu.org/wiki/GFortran). Note that version 1.2.5 of FoBiS (or later) is required.
40
40
41
-
* A [Visual Studio](http://www.visualstudio.com) project is included for building the library (and example program) on Windows with the Intel Fortran Compiler. The project has been tested with Visual Studio 2010 and 2013.
41
+
* A [Visual Studio](http://www.visualstudio.com) project is included for building the library (and unit tests) on Windows with the Intel Fortran Compiler. The project has been tested with Visual Studio 2010 and 2013.
42
42
43
-
* An [SCons](http://www.scons.org)`SConstruct` file. The library and example program are built by typing `scons` and installed by `scons install` or `sudo scons install`.
43
+
* An [SCons](http://www.scons.org)`SConstruct` file. The library and unit tests are built by typing `scons` and tested by typing `scons test`. The library may be optionally installed by `scons install` or `sudo scons install`.
44
44
45
45
* Additionally, a [CMake](http://www.cmake.org) build
46
46
system is provided. This build system has been tested on Mac and Linux
@@ -53,28 +53,33 @@ environment variable `FC` to point to your Fortran compiler, and
53
53
create a build directory. Then `(cmake-gui|ccmake|cmake)
54
54
/path/to/json-fortran-root` to configure, `make` to build and `make
55
55
install` to optionally install. As long as the project is built with
56
-
CMake, other CMake projects can find it and link against it:
56
+
CMake, other CMake projects can find it and link against it. For example,
57
+
if you have a second copy of the json-fortran project tree, and want to build the unit tests
58
+
linking against those compiled/installed by the first copy:
57
59
58
60
```CMake
59
-
cmake_minimum_required ( VERSION 2.8 FATAL_ERROR )
61
+
cmake_minimum_required ( VERSION 2.8.8 FATAL_ERROR )
0 commit comments