CMake
References
CMake Documentation (official, latest, top-level)
CMake Tutorial (official, latest)
CMake Practice (tutorial from users)
CMake 3.0.2 Documentation (top level, minimum requirement in Ubuntu 18)
build target and library, set property
about find_package(), etc.
Notes
std::min
andstd::max
min
andmax
are defined as macros on some systems.std::min
andstd::max
may not be used. UsecmMinimum
andcmMaximum
instead.
size_t
Various implementations have differing implementation of
size_t
. When assigning the result of.size()
on a container for example, the result should not be assigned to anunsigned int
or similar.std::size_t
must not be used.
Last updated