mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
Add install section with homebrew formula to README
This commit is contained in:
parent
651e4edf46
commit
60fb76f53d
32
README.md
32
README.md
@ -143,17 +143,39 @@ To demonstrate that sqlpp11 can work with other backends as well, here is an exp
|
|||||||
* STL Container: https://github.com/rbock/sqlpp11-connector-stl
|
* STL Container: https://github.com/rbock/sqlpp11-connector-stl
|
||||||
|
|
||||||
__Date Library:__
|
__Date Library:__
|
||||||
sqlpp11 requires [Howard Hinnant's date library](https://github.com/HowardHinnant/date) for `date` and `date_time` data types. Sqlpp11 includes CMake search module for this, but if you didn't install this library system-wide, you should modify CMakeLists.txt or add some flags to compile sqlpp11:
|
sqlpp11 requires [Howard Hinnant's date library](https://github.com/HowardHinnant/date) for `date` and `date_time` data types. Sqlpp11 includes CMake search module for this, but if you didn't install this library system-wide, you need to point cmake to it:
|
||||||
|
|
||||||
```
|
```
|
||||||
cmake -DHinnantDate_ROOT_DIR=/%PATH_TO_HinnantDate_SOURCE%/ -DHinnantDate_INCLUDE_DIR=/%PATH_TO_HinnantDate_SOURCE%/
|
cmake -DHinnantDate_ROOT_DIR=/%PATH_TO_HinnantDate_SOURCE%/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Build and Install
|
||||||
|
-----------------
|
||||||
|
__Build from Source:__
|
||||||
|
|
||||||
|
Download and unpack the latest release from https://github.com/rbock/sqlpp11/releases or clone the repository. Inside the directory run the following commands:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
```
|
||||||
|
|
||||||
|
The last step will install the library system wide.
|
||||||
|
|
||||||
|
__Install via Homebrew (MacOS):__
|
||||||
|
|
||||||
|
```bash
|
||||||
|
brew install marvin182/zapfhahn/sqlpp11
|
||||||
|
```
|
||||||
|
|
||||||
|
Some connectors can be installed with the formula. See `brew info marvin182/zapfhahn/sqlpp11` for available options.
|
||||||
|
|
||||||
|
|
||||||
Basic usage:
|
Basic usage:
|
||||||
-------------
|
-------------
|
||||||
__Linux install:__
|
|
||||||
git clone date library, needed connectors, cmake and make install them.
|
|
||||||
|
|
||||||
|
|
||||||
__Create DDL files__:
|
__Create DDL files__:
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user