You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: project_template/README.md
+15-7
Original file line number
Diff line number
Diff line change
@@ -6,22 +6,26 @@ Please add some lines describing the project!
6
6
7
7
mkdir build
8
8
cd build
9
-
cmake -DCMAKE_INSTALL_PREFIX=<installdir> <path to sources>
9
+
cmake -DCMAKE_INSTALL_PREFIX=<installdir> [-DPROJECTTEMPLATE_BUILD_DOCS=ON] <path to sources>
10
10
make -j<number of cores on your machine>
11
11
make install
12
12
13
-
## Building the documentation
13
+
The `PROJECTTEMPLATE_BUILD_DOCS` variable is optional, and should be passed if you wish to
14
+
build the Doxygen based API documentation. Please note that this requires an existing
15
+
installation of [Doxygen](http://www.doxygen.org/index.html). If CMake cannot locate
16
+
Doxygen, its install location should be added into `CMAKE_PREFIX_PATH`.
17
+
For further details please have a look at [the CMake tutorial](http://www.cmake.org/cmake-tutorial/).
14
18
15
-
The documentation of the project is based on doxygen.
16
-
If you would like to build it, you have to configure the package with
19
+
## Building the documentation
17
20
18
-
cmake -DPROJECTTEMPLATE_documentation -DCMAKE_INSTALL_PREFIX=<installdir> <path to sources>
19
-
Invoking
21
+
The documentation of the project is based on doxygen. To build the documentation,
22
+
the project must have been configured with `PROJECTTEMPLATE_BUILD_DOCS` enabled, as
23
+
described earlier. It can then be built and installed:
20
24
21
25
make doc
22
26
make install
23
27
24
-
installs the documentation into installdir/share/doc/.
28
+
By default, this installs the documentation into `<installdir>/share/doc/HSFTEMPLATE/share/doc`.
25
29
26
30
## Creating a package with CPack
27
31
@@ -38,3 +42,7 @@ To run the tests of the project, first build it and then invoke
38
42
## Inclusion into other projects
39
43
40
44
If you want to build your own project against PROJECTTEMPLATE, CMake may be the best option for you. Just add its location to _CMAKE_PREFIX_PATH_ and call _find_package(PROJECTTEMPLATE)_ within your CMakeLists.txt.
45
+
46
+
A `pkg-config``.pc` file is also installed if you do not use CMake.
47
+
Simply add the location of the `.pc` file (nominally `<installdir>/lib/pkgconfig`) and run `pkg-config --cflags --libs HSFTEMPLATE` to get the
48
+
include paths and libraries needed to compile and link to HSFTEMPLATE.
0 commit comments