From 4d7283bc2bd77e3c5a9122b0cf85b7f4d2b1a63e Mon Sep 17 00:00:00 2001 From: ayaankhan98 Date: Sat, 5 Dec 2020 12:51:00 +0530 Subject: [PATCH 1/5] cmake install rules --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) 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) From 552db5bfa55e35f5e299bb1e67b369e219d965e2 Mon Sep 17 00:00:00 2001 From: ayaankhan98 Date: Sun, 6 Dec 2020 15:32:56 +0530 Subject: [PATCH 2/5] added docs --- docs/getting_started/setup.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/getting_started/setup.md b/docs/getting_started/setup.md index 42b4580e8..d60512247 100644 --- a/docs/getting_started/setup.md +++ b/docs/getting_started/setup.md @@ -98,6 +98,18 @@ make ``` Running Cmake will create `crow_all.h` file and place it in the build directory. +##Installing Crow + +if you wish to use crow globally without copying `crow_all.h` in your projects, you can install `crow` on your machine by using `make install` command instead of `make` after `cmake..`. Thus, the procedure will look like + +``` +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.
+ You can run tests with following commands: ``` ctest -V From 383860a22edcf0a6df479b9837d59fa19b12bad8 Mon Sep 17 00:00:00 2001 From: ayaankhan98 Date: Sun, 6 Dec 2020 18:33:19 +0530 Subject: [PATCH 3/5] fix: docs --- docs/getting_started/setup.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/getting_started/setup.md b/docs/getting_started/setup.md index d60512247..51bda4a7e 100644 --- a/docs/getting_started/setup.md +++ b/docs/getting_started/setup.md @@ -96,11 +96,16 @@ 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: +``` +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 by using `make install` command instead of `make` after `cmake..`. Thus, the procedure will look like +if you wish to use crow globally without copying `crow_all.h` in your projects, you can install `Crow` on your machine with the following procedure below. ``` mkdir build @@ -109,8 +114,3 @@ cmake .. make install ``` `make install` will copy `crow_all.h` automatically in your `/usr/local/include` thus making it available globally for use.
- -You can run tests with following commands: -``` -ctest -V -``` From 5a2af02e75f51149912a12fc21fa42577a543fac Mon Sep 17 00:00:00 2001 From: ayaankhan98 Date: Sun, 6 Dec 2020 18:54:39 +0530 Subject: [PATCH 4/5] fix: docs --- docs/getting_started/setup.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/getting_started/setup.md b/docs/getting_started/setup.md index 51bda4a7e..033a47ad7 100644 --- a/docs/getting_started/setup.md +++ b/docs/getting_started/setup.md @@ -98,14 +98,14 @@ make ``` 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 following procedure below. +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 From 91ec742a8e2d9090a7d946f9e3086e4fc14eeefb Mon Sep 17 00:00:00 2001 From: ayaankhan98 Date: Sun, 6 Dec 2020 18:55:59 +0530 Subject: [PATCH 5/5] fix: c -> C --- docs/getting_started/setup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting_started/setup.md b/docs/getting_started/setup.md index 033a47ad7..f5fa623b0 100644 --- a/docs/getting_started/setup.md +++ b/docs/getting_started/setup.md @@ -105,7 +105,7 @@ 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. +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