Skip to content

Commit

Permalink
move docs and testing
Browse files Browse the repository at this point in the history
Signed-off-by: John Shepherd <[email protected]>
  • Loading branch information
John Shepherd committed Jan 20, 2021
1 parent 34df682 commit d88bce5
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 45 deletions.
41 changes: 39 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,48 @@ This library is used internally by the ignition projects. See other ignition pro

# Documentation

Documentation for `ignition-cmake` can be found within the source code, and also in the [MIGRATION.md guide](https://github.com/ignitionrobotics/ign-cmake/blob/master/MIGRATION.md).
API documentation and tutorials can be accessed at
[https://ignitionrobotics.org/libs/cmake](https://ignitionrobotics.org/libs/cmake)

You can also generate the documentation from a clone of this repository by following these steps.

1. You will need [Doxygen](http://www.doxygen.org/). On Ubuntu Doxygen can be installed using

sudo apt-get install doxygen

2. Clone the repository

git clone https://github.com/ignitionrobotics/ign-cmake

3. Configure and build the documentation.

cd ign-cmake
mkdir build
cd build
cmake ..
make doc

4. View the documentation by running the following command from the `build` directory.

firefox doxygen/html/index.html

**Note** Alternatively, documentation for `ignition-cmake` can be found within the source code, and also in the [MIGRATION.md guide](https://github.com/ignitionrobotics/ign-cmake/blob/master/MIGRATION.md).

# Testing

A fuller suite of tests in the `examples` directory can be enabled by building with `BUILDSYSTEM_TESTING` enabled.
Follow these steps to run tests and static code analysis in your clone of this repository.

1. Follow the [source install instruction](#source-install).

2. Run tests.

make test

3. Static code checker.

make codecheck

Additionally, a fuller suite of tests in the `examples` directory can be enabled by building with `BUILDSYSTEM_TESTING` enabled.
Tests can be run by building the `test` target. From your build directory you can run:

```
Expand Down
47 changes: 4 additions & 43 deletions tutorials/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,55 +162,16 @@ To find `condabin`, search for "Anaconda Prompt" in the search field near the Wi
# Optionally, append `-b ign-cmake#` (replace # with a number) to check out a specific version
git clone https://github.com/ignitionrobotics/ign-cmake.git

1. Build. Tests do not build at this time, so we turn tests off.
1. Build.

cd ign-cmake
mkdir build
cd build
cmake .. -DBUILD_TESTING=OFF # Optionally, -DCMAKE_INSTALL_PREFIX=path\to\install
cmake .. # Optionally, -DCMAKE_INSTALL_PREFIX=path\to\install
cmake --build . --config Release
cmake --install . --config Release

# Documentation
**Note** If you find that the build is failing due to failures in the `test` directory, then you may need to disable tests by adding `-DBUILD_TESTING=OFF` to the `cmake ..` command.

API documentation and tutorials can be accessed at
[https://ignitionrobotics.org/libs/cmake](https://ignitionrobotics.org/libs/cmake)

You can also generate the documentation from a clone of this repository by following these steps.

1. You will need [Doxygen](http://www.doxygen.org/). On Ubuntu Doxygen can be installed using

sudo apt-get install doxygen

2. Clone the repository

git clone https://github.com/ignitionrobotics/ign-cmake

3. Configure and build the documentation.

cd ign-cmake
mkdir build
cd build
cmake ..
make doc

4. View the documentation by running the following command from the `build` directory.

firefox doxygen/html/index.html

# Testing

Follow these steps to run tests and static code analysis in your clone of this repository.

1. Follow the [source install instruction](#source-install).

2. Run tests.

make test

3. Static code checker.

make codecheck

See the [Writing Tests section of the contributor cmakede](https://ignitionrobotics.org/docs/all/contributing#writing-tests) for help creating or modifying tests.
See the [Writing Tests section of the ign-cmake contributor documentation](https://ignitionrobotics.org/docs/all/contributing#writing-tests) for help creating or modifying tests.

0 comments on commit d88bce5

Please sign in to comment.