cmake-examples/01-basic
2019-02-11 09:40:08 +09:00
..
A-hello-cmake Update to minimum CMake 3.5 2018-03-18 17:23:57 +00:00
B-hello-headers Update README.adoc 2019-02-11 09:40:08 +09:00
C-static-library add missing word 2018-03-18 17:40:27 +00:00
D-shared-library Fix typo: teh -> the 2018-09-26 00:08:03 -07:00
E-installing Update to minimum CMake 3.5 2018-03-18 17:23:57 +00:00
F-build-type Update to minimum CMake 3.5 2018-03-18 17:23:57 +00:00
G-compile-flags Update to minimum CMake 3.5 2018-03-18 17:23:57 +00:00
H-third-party-library Update to minimum CMake 3.5 2018-03-18 17:23:57 +00:00
I-compiling-with-clang Update to minimum CMake 3.5 2018-03-18 17:23:57 +00:00
J-building-with-ninja Update to minimum CMake 3.5 2018-03-18 17:23:57 +00:00
K-imported-targets Fix typo: alow → allow 2018-09-26 00:28:05 -07:00
L-cpp-standard add examples for setting C++ standard 2016-09-04 23:23:28 +01:00
README.adoc add link to cpp standard examples 2016-09-04 23:26:42 +01: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
  - link:K-imported-targets[imported-targets] - Shows how to link boost using the new imported targets
  - link:L-cpp-standard[cpp-standard] - Shows various methods to set the C++ standard