Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 912 Bytes

cmake.rst

File metadata and controls

18 lines (11 loc) · 912 Bytes

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.

Note

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

It will link those libraries to a specific target listed in the same CMake list files. Those library names could be confusing sometime. If you want to link a library file libzlog.so.2, you may try zlog or libzlog as parameters to TARGET_LINK_LIBRARIES.

ADD_EXECUTABLE (output src ...)

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