Skip to content

Commit 03e6e13

Browse files
committed
Merge pull request #340 from kaspervandenberg/0.11-devel-integration
Getting started documentation
2 parents c96464d + f623923 commit 03e6e13

File tree

1 file changed

+40
-9
lines changed

1 file changed

+40
-9
lines changed

libs/network/doc/getting_started.rst

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,21 @@ Once the build has completed, you can now run the test suite by issuing::
159159

160160
$ make test
161161

162+
You can install :mod:`cpp-netlib` by issuing::
163+
164+
$ sudo make install
165+
166+
By default this installs :mod:`cpp-netlib` into ``/usr/local``.
167+
168+
.. note:: As of version 0.9.3, :mod:`cpp-netlib` produces three static
169+
libraries. Using GCC on Linux these are::
170+
171+
libcppnetlib-client-connections.a
172+
libcppnetlib-server-parsers.a
173+
libcppnetlib-uri.a
174+
175+
Users can find them in ``~/cpp-netlib-build/libs/network/src``.
176+
162177
Building On Windows
163178
~~~~~~~~~~~~~~~~~~~
164179

@@ -169,19 +184,35 @@ look for the solution and project files as the artifacts of the call to
169184
with a number of project files for Visual Studio.
170185

171186
.. note:: As of version 0.9.3, :mod:`cpp-netlib` produces three static
172-
libraries. Using GCC on Linux these are::
187+
libraries. Using Visual C++ on Windows they are::
188+
189+
cppnetlib-client-connections.lib
190+
cppnetlib-server-parsers.lib
191+
cppnetlib-uri.lib
192+
193+
Users can find them in ``~/cpp-netlib-build/libs/network/src``.
194+
195+
Using :mod:`cpp-netlib`
196+
=======================
197+
198+
CMake projects
199+
~~~~~~~~~~~~~~
173200

174-
libcppnetlib-client-connections.a
175-
libcppnetlib-server-parsers.a
176-
libcppnetlib-uri.a
201+
Projects using CMake can add the following lines in their ``CMakeLists.txt`` to
202+
be able to use :mod:`cpp-netlib`::
203+
204+
set ( CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ~/cpp-netlib-build )
205+
find_package ( cppnetlib 0.11.0 REQUIRED )
206+
include_directories ( ${CPPNETLIB_INCLUDE_DIRS} )
207+
target_link_libraries ( MyApplication ${CPPNETLIB_LIBRARIES} )
177208

178-
And using Visual C++ on Windows they are::
209+
.. note:: Setting ``CMAKE_PREFIX_PATH`` is only required when :mod:`cpp-netlib`
210+
is not installed to a location that CMake searches. When :mod:`cpp-netlib`
211+
is installed to the default location (``/usr/local``), ``CMake`` can find it.
179212

180-
cppnetlib-client-connections.lib
181-
cppnetlib-server-parsers.lib
182-
cppnetlib-uri.lib
213+
.. note:: We assume that ``MyApplication`` is the application that you are
214+
building and which depends on :mod:`cpp-netlib`.
183215

184-
Users can find them in ``~/cpp-netlib-build/libs/network/src``.
185216

186217
Reporting Issues, Getting Support
187218
=================================

0 commit comments

Comments
 (0)