diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2019-02-15 18:43:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-15 18:43:06 +0100 |
| commit | 046117977fc9dd201e8681df25ba7ec4678834af (patch) | |
| tree | 14a25d2832af0752c65c8034df969564a16ec95a | |
| parent | ae88a5224a8e11a84b32d25c3c70df46c08b97bc (diff) | |
| parent | 7710b81abb83657acf740d1751c0cc047e828fe2 (diff) | |
| download | PROJ-046117977fc9dd201e8681df25ba7ec4678834af.tar.gz PROJ-046117977fc9dd201e8681df25ba7ec4678834af.zip | |
Merge pull request #1268 from mwtoews/cmake
Improve CMake sqlite3 dependency docs
| -rw-r--r-- | CMakeLists.txt | 2 | ||||
| -rw-r--r-- | README.md | 10 | ||||
| -rw-r--r-- | docs/source/install.rst | 15 |
3 files changed, 26 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e71d662e..d4524a7b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -91,7 +91,7 @@ if (NOT EXE_SQLITE3) MESSAGE (SEND_ERROR "sqlite3 binary not found!") ENDIF (NOT EXE_SQLITE3) -FIND_PACKAGE(Sqlite3) +FIND_PACKAGE(Sqlite3 REQUIRED) IF (NOT SQLITE3_FOUND) MESSAGE (SEND_ERROR "sqlite3 dependency not found!") ENDIF (NOT SQLITE3_FOUND) @@ -30,6 +30,11 @@ The following command line utilities are included in the PROJ package: ## Installation +### Build dependencies + +PROJ requires C and C++11 compilers. +It also requires SQLite3 (headers, library and executable). + ### Building with CMake cd proj @@ -42,6 +47,11 @@ On Windows, one may need to specify generator: cmake -G "Visual Studio 15 2017" .. +If the SQLite3 dependency is installed in a custom location, specify the +paths to the include directory and the library:: + + cmake -DSQLITE3_INCLUDE_DIR=/opt/SQLite/include -DSQLITE3_LIBRARY=/opt/SQLite/lib/libsqlite3.so .. + Tests are run with ctest diff --git a/docs/source/install.rst b/docs/source/install.rst index 240f81f9..ec441c1e 100644 --- a/docs/source/install.rst +++ b/docs/source/install.rst @@ -110,8 +110,13 @@ Compilation and installation from source code The classical way of installing PROJ is via the source code distribution. The most recent version is available from the :ref:`download page<current_release>`. + +PROJ requires C and C++11 compilers. It also requires SQLite3 (headers, +library and executable). + You will need that and at least the standard *proj-datumgrid* package for a successful installation. + The following guides show how to compile and install the software using the Autotools and CMake build systems. @@ -187,6 +192,16 @@ On Windows, one may need to specify generator:: cmake -G "Visual Studio 15 2017" .. +If the SQLite3 dependency is installed in a custom location, specify the +paths to the include directory and the library:: + + cmake -DSQLITE3_INCLUDE_DIR=/opt/SQLite/include -DSQLITE3_LIBRARY=/opt/SQLite/lib/libsqlite3.so .. + +Alternatively, the custom prefix for SQLite3 can be specified:: + + cmake -DCMAKE_PREFIX_PATH=/opt/SQLite .. + + Tests are run with:: ctest |
