cmake install

This commit is contained in:
Daniel Sipka 2015-04-24 01:48:42 +02:00
parent 26aa05fccc
commit 876f982cde
2 changed files with 11 additions and 7 deletions

View File

@ -1,13 +1,13 @@
# mstch - {{mustache}} templates in C++11 # mstch - {{mustache}} templates in C++11
mstch is a complete implementation of [{{mustache}}](http://mustache.github.io/) templates using modern C++. mstch is a complete implementation of [{{mustache}}](http://mustache.github.io/) templates using modern C++.
[![Build Status](https://travis-ci.org/no1msd/mstch.svg?branch=master)](https://travis-ci.org/no1msd/mstch) [![Build Status](https://travis-ci.org/no1msd/mstch.svg?branch=master)](https://travis-ci.org/no1msd/mstch)
## Basic usage ## Basic usage
```c++ ```c++
#include <iostream> #include <iostream>
#include <mstch/mstch.hpp> #include <mstch/mstch.hpp>
int main() { int main() {
@ -30,9 +30,9 @@ int main() {
The output of this example will be: The output of this example will be:
``` ```
Hi chris! Hi Chris!
Hi mark! Hi Mark!
Hi scott! Hi Scott!
``` ```
## Requirements ## Requirements
@ -41,7 +41,7 @@ Hi scott!
- Boost 1.54 - Boost 1.54
- CMake for building - CMake for building
## Building ## Installing
From the root of the source tree: From the root of the source tree:
@ -50,9 +50,10 @@ From the root of the source tree:
$ cd build $ cd build
$ cmake .. $ cmake ..
$ make $ make
$ make install
``` ```
Building with unit tests: ### Running the unit tests
```bash ```bash
$ mkdir build $ mkdir build
@ -62,6 +63,6 @@ Building with unit tests:
$ make test $ make test
``` ```
### Advanced usage ## Advanced usage
TODO TODO

View File

@ -21,3 +21,6 @@ set(SRC
utils.cpp) utils.cpp)
add_library(mstch STATIC ${SRC}) add_library(mstch STATIC ${SRC})
install(TARGETS mstch DESTINATION lib)
install(FILES ${CMAKE_SOURCE_DIR}/include/mstch/mstch.hpp DESTINATION include/mstch)