cmake-examples/01-basic
2016-04-15 00:01:59 +01:00
..
A-hello-cmake add links to files from intro readme. #3 2016-02-14 16:17:33 +00:00
B-hello-headers add links to files from intro readme. #3 2016-02-14 16:17:33 +00:00
C-static-library add links to files from intro readme. #3 2016-02-14 16:17:33 +00:00
D-shared-library link files from intro 2016-02-14 16:28:43 +00:00
E-installing link files from intro 2016-02-14 16:28:43 +00:00
F-build-type link files from intro 2016-02-14 16:28:43 +00:00
G-compile-flags link files from intro 2016-02-14 16:28:43 +00:00
H-third-party-library link files from intro 2016-02-14 16:28:43 +00:00
I-compiling-with-clang added docker files to allow testing with different cmake versions for #8 2016-04-15 00:01:59 +01:00
J-building-with-ninja added docker files to allow testing with different cmake versions for #8 2016-04-15 00:01:59 +01:00
README.adoc fix some missing links and typos 2016-02-14 11:35:44 +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 slightly 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.
  - link:I-compiling-with-clang[compiling-with-clang]. An example of invoking the clang compiler.
  - link:J-building-with-ninja[building-with-ninja] - Shows how to generate ninja build files