diff --git a/CMakeLists.txt b/CMakeLists.txt index b6eae887f..897253d87 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,3 +64,5 @@ else() add_custom_target(amalgamation ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/crow_all.h) endif() + +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/crow_all.h DESTINATION include) diff --git a/docs/getting_started/setup.md b/docs/getting_started/setup.md index 42b4580e8..f5fa623b0 100644 --- a/docs/getting_started/setup.md +++ b/docs/getting_started/setup.md @@ -96,9 +96,21 @@ cd build cmake .. make ``` -Running Cmake will create `crow_all.h` file and place it in the build directory. +Running Cmake will create `crow_all.h` file and place it in the build directory.
-You can run tests with following commands: +You can run tests with following command: ``` ctest -V ``` + +##Installing Crow + +if you wish to use Crow globally without copying `crow_all.h` in your projects, you can install Crow on your machine with the procedure below. + +``` +mkdir build +cd build +cmake .. +make install +``` +`make install` will copy `crow_all.h` automatically in your `/usr/local/include` thus making it available globally for use.