Lines Matching full:cmake
1 This directory contains *CMake* files that can be used to build protobuf
5 You need to have [CMake](http://www.cmake.org), [Visual Studio](https://www.visualstudio.com)
31 If *cmake* command is not available from *Command Prompt*, add it to system *PATH* variable:
33 C:\Path\to>set PATH=%PATH%;C:\Program Files (x86)\CMake\bin
75 Now go to *cmake* folder in protobuf sources:
77 C:\Path\to\protobuf\gmock>cd ..\cmake
78 C:\Path\to\protobuf\cmake>
80 Good. Now you are ready to *CMake* configuration.
82 CMake Configuration
85 *CMake* supports a lot of different
86 [generators](http://www.cmake.org/cmake/help/latest/manual/cmake-generators.7.html)
89 [Makefile](http://www.cmake.org/cmake/help/latest/manual/cmake-generators.7.html#makefile-generators)
91 [Visual Studio](http://www.cmake.org/cmake/help/latest/manual/cmake-generators.7.html#visual-studio-generators)
98 C:\Path\to\protobuf\cmake>mkdir build & cd build
99 C:\Path\to\protobuf\cmake\build>
106 C:\Path\to\protobuf\cmake\build>mkdir release & cd release
107 C:\Path\to\protobuf\cmake\build\release>cmake -G "NMake Makefiles" ^
116 C:\Path\to\protobuf\cmake\build>mkdir debug & cd debug
117 C:\Path\to\protobuf\cmake\build\debug>cmake -G "NMake Makefiles" ^
126 C:\Path\to\protobuf\cmake\build>mkdir solution & cd solution
127 C:\Path\to\protobuf\cmake\build\solution>cmake -G "Visual Studio 12 2013 Win64" ^
134 you need to add *cmake* command argument `-Dprotobuf_BUILD_TESTS=OFF` to disable testing.
141 C:\Path\to\protobuf\cmake\build\release>nmake
145 C:\Path\to\protobuf\cmake\build\debug>nmake
163 C:\Path\to\protobuf\cmake\build\release>nmake check
167 C:\Path\to\protobuf\cmake\build\debug>nmake check
184 C:\Path\to\protobuf>cmake\build\release\tests.exe --gtest_filter=AnyTest*
211 C:\Path\to\protobuf\cmake\build\release>nmake install
215 C:\Path\to\protobuf\cmake\build\debug>nmake install
223 * lib - that contains linking libraries and *CMake* configuration files for *protobuf* package.
245 * Add an additional flag `-Dprotobuf_BUILD_SHARED_LIBS=ON` when invoking cmake
286 C:\Path\to\zlib\build\release>cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release ^
297 You need reconfigure protobuf with flag `-Dprotobuf_WITH_ZLIB=ON` when invoking cmake.