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
-
hello-world. A hello world example.
-
hello-headers. A slightly more complicated hello world example, using separate source and include folders.
-
hello-static-library. An example using a static library.
-
hello-shared-library. An example using a shared library.
-
hello-install. Shows how to create a 'make install' target that will install binaries and libraries.
-
hello-build-type. An example showing how to set a default build and optimization flags for your project.
-
hello-compile-flag. Shows how to set additional compile flags.
-
hello-3rd-party. Shows an example of how to link third party libraries.
-
hello-cxx-standard. Shows various methods to set the C++ standard