A simple Linux C++ project with a shared library mylib and an executable myapp.
Uses CMake for building and CPack for packaging.
- CMake >= 3.15
- C++11 compiler (g++ or clang++)
- Linux
Run the provided script:
./cpack.shOr build manually:
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --parallel./build/myapp
./build/myapp --versionCPack generates .deb and .tar.gz packages in the build directory.
Default install prefix is /usr/local.
cd build
sudo cmake --install .This project is licensed under the MIT License.
See the LICENSE file for details.