Useful CMake Commands

These are useful CMake commands. They are parts of CMake, not my project. But I think you will need them everywhere. If you need detail information, please refer to CMake offical documents.


You can always check out latest usage of CMake here. Every commands are listed and documented.

ADD_EXECUTABLE (output src ...)

It will produce the binary output from all the source files.