Lines Matching full:cmake

7 # Building with CMake
10 from source code using the CMake build tool. To build with CMake, you of
11 course first have to install CMake. The minimum required version of CMake is
13 tree. Once the correct version of CMake is installed you can follow the
16 CMake builds can be configured either from the command line, or from one of
17 CMake's GUIs.
21 A CMake configuration of curl is similar to the autotools build of curl.
24 ## Using `cmake`
31 $ cmake -B .
36 $ cmake -B ../curl-build
38 ### Fallback for CMake before version 3.13
40 CMake before version 3.13 does not support the `-B` option. In that case,
41 you must create the build directory yourself, `cd` to it and run `cmake`
46 $ cmake ../curl
50 $ cmake .
54 You can override CMake's default by using `-G <generator-name>`. For example
57 [List of generator names](https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html).
61 CMake comes with a curses based interface called `ccmake`. To run `ccmake`
62 on a curl use the instructions for the command line cmake, but substitute
63 `ccmake` for `cmake`.
69 ## Using `cmake-gui`
71 CMake also comes with a Qt based GUI called `cmake-gui`. To configure with
72 `cmake-gui`, you run `cmake-gui` and follow these steps:
91 $ cmake --build ../curl-build
95 The CMake build setup is primarily done to work with shared/dynamic third
112 ### Fallback for CMake before version 3.13
114 CMake before version 3.13 does not support the `--build` option. In that
116 corresponds to the build files that CMake generated for you. This example
117 assumes that CMake generates `Makefile`:
124 (The test suite does not yet work with the cmake build)
130 $ cmake --install ../curl-build
132 ### Fallback for CMake before version 3.15
134 CMake before version 3.15 does not support the `--install` option. In that
136 corresponds to the build files that CMake generated for you. This example
137 assumes that CMake generates `Makefile`:
142 # CMake build options
155 - `CURL_ENABLE_EXPORT_TARGET`: Enable CMake export target. Default: `ON`
250 ## CMake options
253 - `CMAKE_IMPORT_LIBRARY_SUFFIX` (see CMake)
254 - `CMAKE_INSTALL_BINDIR` (see CMake)
255 - `CMAKE_INSTALL_INCLUDEDIR` (see CMake)
256 - `CMAKE_INSTALL_LIBDIR` (see CMake)
257 - `CMAKE_INSTALL_PREFIX` (see CMake)
258 - `CMAKE_STATIC_LIBRARY_SUFFIX` (see CMake)
262 Details via CMake
263 [variables](https://cmake.org/cmake/help/latest/manual/cmake-variables.7.html) and
264 [install directories](https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html).
298 ## Dependency options (via CMake)