mrexodia / CMakePackageExample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CMakePackageExample

Attempt to set up a good CMake packaging example.

Building

First you need to build and install ClimbingStats:

cd ClimbingStats
cmake -B build
cmake --build build
cmake --install build --prefix install

Then you build MainApp:

cd ../MainApp
cmake -B build -DCMAKE_PREFIX_PATH=$(pwd)/../ClimbingStats/install
cmake --build build
build/MainApp

About


Languages

Language:CMake 87.1%Language:C++ 8.9%Language:C 4.0%