cmake-examples/01-basic
2015-11-29 23:54:44 +00:00
..
A-hello-cmake #2 consistent headings 2015-11-29 23:54:44 +00:00
B-hello-headers Remove old md files and update asciidoc headers. Fix some cppcheck docs 2015-11-22 12:40:56 +00:00
C-static-library adoc fixes 2015-11-22 14:36:32 +00:00
D-shared-library adoc fixes 2015-11-22 14:36:32 +00:00
E-installing Add the install example 2015-11-22 14:22:12 +00:00
F-build-type add compile flags example 2015-11-22 23:40:53 +00:00
G-compile-flags add compile flags example 2015-11-22 23:40:53 +00:00
H-third-party-library add find_package example 2015-11-28 10:32:20 +00:00
README.adoc Add links to filders and fix some typos 2015-11-29 23:27:56 +00:00

= Basic Examples

The basic examples in this directory show how the setup a CMake project,
set compile flags, create and link executables and libraries, and install them.

The examples included are

  - link:A-hello-cmake[hello-cmake]. A hello world example.
  - link:B-hello-headers[hello-headers]. A slighly more complicated hello world example, using seperate source and include folders.
  - link:C-static-library[static-library]. An example using a static library.
  - link:D-shared-library[shared-library]. An example using a shared library.
  - link:E-installing[installing]. Shows how to create a 'make install' target that will install binaries and libraries.
  - link:F-build-type[build-type]. An example showing how to set a default build and optimization flags for your project.
  - link:G-compile-flags[compile-flags]. Shows how to set additional compile flags.
  - link:H-third-party-library[third-party-library]. Shows an example of how to link third party libraries.