/cptr

A small repo for learning how to use CMake

Primary LanguageCMake

cptr - Learn how to use CMake

This small repo shows how to structure a C project with the CMake build system.

Instructions

Regular Installation

mkdir build && cd build && cmake .. && make && make install This will install the executable in /usr/local/bin on a Mac OS X.

Custom Location Installation

mkdir build && cd build && cmake .. -DCMAKE_INSTALL_PREFIX=../_install && make && make install

Resources