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-cmake. A hello world example.
hello-headers. A slightly more complicated hello world example, using separate source and include folders.
static-library. An example using a static library.
shared-library. An example using a shared library.
installing. Shows how to create a 'make install' target that will install binaries and libraries.
build-type. An example showing how to set a default build and optimization flags for your project.
compile-flags. Shows how to set additional compile flags.
third-party-library. Shows an example of how to link third party libraries.
compiling-with-clang. An example of invoking the clang compiler.
building-with-ninja - Shows how to generate ninja build files
imported-targets - Shows how to link boost using the new imported targets
cpp-standard - Shows various methods to set the C++ standard
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。