Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 1.23 KB

File metadata and controls

51 lines (41 loc) · 1.23 KB

Installing cpp-pre::named_param

named_param can be installed in three ways :

Copy paste in your project

  1. Copy this folder in your project
  2. Add the following to your include path :

GCC / Clang / MSVC

-I named_param/ \
-I named_param/deps/cpp-pre/preprocess/ \

Install

Install the library

mkdir build/ && cd build/
cmake ..
make install

You can tweak destination with -DCMAKE_INSTALL_PREFIX=/install/path to change the default /usr/local.

If you use CMake :

find_package(named_param REQUIRED)
add_executable(app your_code.cpp)
target_link_libraries(app cpp-pre::named_param)

If you don't use CMake :

Add to your include path :

INSTALL_PREFIX/include/named_param/deps/
INSTALL_PREFIX/include/

Install without dependencies

Install the library

mkdir build/ && cd build/
cmake .. -DINGLUED=OFF
make install

This library was built with #inglued <> therefore it forwards dependencies with it, but you might prefer the use of your own deps, therefore simply disable them via INGLUED=OFF.