Lines Matching +full:ubuntu +full:- +full:cmake +full:- +full:add_subdirectory
6 :file:`fmt/format-inl.h`, :file:`src/format.cc` and optionally other headers
9 Alternatively, you can :ref:`build the library with CMake <building>`.
16 The included `CMake build script`__ can be used to build the fmt
17 library on a wide range of platforms. CMake is freely available for
18 download from http://www.cmake.org/download/.
22 CMake works by generating native makefiles or project files that can
28 cmake .. # Generate native build scripts.
39 CMake option. This can be useful if you include fmt as a subdirectory in
48 To build a `shared library`__ set the ``BUILD_SHARED_LIBS`` CMake variable to
51 cmake -DBUILD_SHARED_LIBS=TRUE ...
58 ``CMAKE_POSITION_INDEPENDENT_CODE`` CMake variable to ``TRUE``::
60 cmake -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE ...
66 After building the library you can install it on a Unix-like system by running
69 Usage with CMake
75 add_subdirectory(fmt)
81 add_subdirectory(fmt EXCLUDE_FROM_ALL)
83 to exclude it from ``make``, ``make all``, or ``cmake --build .``.
88 target_link_libraries(<your-target> fmt::fmt)
90 Setting up your target to use a header-only version of ``fmt`` is equally easy::
92 target_link_libraries(<your-target> PRIVATE fmt::fmt-header-only)
98 build-system combined, to use ``fmt``.
102 - **https://cppget.org/fmt/** for released and published versions.
103 - `The git repository with the sources of the build2 package of fmt <https://github.com/build2-pack…
108 - ``build2`` package name: ``fmt``
109 - Library target name : ``lib{fmt}``
113 - Add one of the repositories to your configurations, or in your
120 - Add this package as a dependency to your ``./manifest`` file
125 - Import the target and use it as a prerequisite to your own target
135 `toolchain introduction <https://build2.org/build2-toolchain/doc/build2-toolchain-intro.xhtml>`_.
145 * `Less <http://lesscss.org/>`_ with ``less-plugin-clean-css``.
146 Ubuntu doesn't package the ``clean-css`` plugin so you should use ``npm``
149 sudo npm install -g less less-plugin-clean-css.
151 First generate makefiles or project files using CMake as described in
163 `conda-forge <https://conda-forge.org>`__
164 `package <https://github.com/conda-forge/fmt-feedstock>`__, as follows::
166 conda install -c conda-forge fmt
176 ./bootstrap-vcpkg.sh
190 lhelper activate <some-environment>
194 `lhelper's recipe <https://github.com/franko/lhelper-recipes>`__ repository.
202 `android-ndk-example <https://github.com/fmtlib/android-ndk-example>`_