mirror of
https://github.com/jorenchik/testing-spring-2024.git
synced 2025-10-21 20:10:36 +00:00
build(ninja): add ninja support
- Added ninja build support - Updated readme
This commit is contained in:
parent
42d1f3b908
commit
5faf18d03a
29
.gitignore
vendored
29
.gitignore
vendored
@ -68,6 +68,35 @@ build
|
|||||||
# Clang
|
# Clang
|
||||||
.cache
|
.cache
|
||||||
|
|
||||||
|
# clangd
|
||||||
|
/.clangd/
|
||||||
|
/compile_commands.json
|
||||||
|
/.cache/
|
||||||
|
|
||||||
|
# Ninja output
|
||||||
|
.ninja_deps
|
||||||
|
.ninja_log
|
||||||
|
|
||||||
|
*.pyc
|
||||||
|
*.obj
|
||||||
|
*.ilk
|
||||||
|
/build*/
|
||||||
|
/build.ninja
|
||||||
|
/ninja
|
||||||
|
/ninja.bootstrap
|
||||||
|
/build_log_perftest
|
||||||
|
/canon_perftest
|
||||||
|
/clparser_perftest
|
||||||
|
/depfile_parser_perftest
|
||||||
|
/hash_collision_bench
|
||||||
|
/ninja_test
|
||||||
|
/manifest_parser_perftest
|
||||||
|
/graph.png
|
||||||
|
/doc/manual.html
|
||||||
|
/doc/doxygen
|
||||||
|
*.patch
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
|
||||||
input.txt
|
input.txt
|
||||||
output.txt
|
output.txt
|
||||||
|
|||||||
22
README.md
22
README.md
@ -4,11 +4,11 @@
|
|||||||
|
|
||||||
This is a simple C++ project that includes the function for our colleagues to
|
This is a simple C++ project that includes the function for our colleagues to
|
||||||
test. The function (i.e., the main function and the subfunctions used in it) is
|
test. The function (i.e., the main function and the subfunctions used in it) is
|
||||||
located in `main_lib.cpp`.
|
located in `lib.cpp`.
|
||||||
|
|
||||||
## Additional libraries and executable
|
## Additional libraries and executable
|
||||||
|
|
||||||
Our library `Prep` is concerned with preparation of data prior to the function
|
Our library `prep` is concerned with preparation of data prior to the function
|
||||||
call. `test.cpp` is a single test file that will contain the tests of our colleagues
|
call. `test.cpp` is a single test file that will contain the tests of our colleagues
|
||||||
and our own development tests. GTest is used for tests.
|
and our own development tests. GTest is used for tests.
|
||||||
|
|
||||||
@ -18,12 +18,22 @@ and our own development tests. GTest is used for tests.
|
|||||||
|
|
||||||
Compilation on Linux requires cmake and CXX compiler (e.g., g++).
|
Compilation on Linux requires cmake and CXX compiler (e.g., g++).
|
||||||
|
|
||||||
|
### ninja
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd src
|
cmake -Gninja -Bbuild
|
||||||
mkdir build
|
|
||||||
cd build
|
cd build
|
||||||
cmake ../
|
ninja
|
||||||
cmake --build .
|
./main
|
||||||
|
```
|
||||||
|
|
||||||
|
### Make
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cmake -Bbuild
|
||||||
|
cd build
|
||||||
|
make
|
||||||
|
./main
|
||||||
```
|
```
|
||||||
|
|
||||||
Resulting binaries are `build/main` - the program and `build/runtests` to
|
Resulting binaries are `build/main` - the program and `build/runtests` to
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user