correct spelling and add options
This commit is contained in:
parent
fb29686a2e
commit
6497e7b201
|
@ -10,9 +10,9 @@
|
||||||
|
|
||||||
CMake comes in two forms - command line and gui. Some installations only install one or the other, but sometimes both. The build commands below are only for the command line use.
|
CMake comes in two forms - command line and gui. Some installations only install one or the other, but sometimes both. The build commands below are only for the command line use.
|
||||||
|
|
||||||
Also the actual build tools vary for each platform. But that is one of the great features of cmake, it can generate variuous 'native' build files. Running cmake without any paramaters will list the generators available on that platform. For sure one of the common ones is "Unix Makefiles", which needs autotools make installed, but many other generators are supported.
|
Also the actual build tools vary for each platform. But that is one of the great features of cmake, it can generate variuous 'native' build files. Running cmake without any parameters will list the generators available on that platform. For sure one of the common ones is "Unix Makefiles", which needs autotools make installed, but many other generators are supported.
|
||||||
|
|
||||||
In windows cmake offers various versions of MSVC. Again below only the command line use of MSVC is shown, but the tiyd solution (*.sln) file can be loaded into the MSVC IDE, and the building done in there.
|
In windows cmake offers various versions of MSVC. Again below only the command line use of MSVC is shown, but the tidy solution (*.sln) file can be loaded into the MSVC IDE, and the building done in there.
|
||||||
|
|
||||||
|
|
||||||
## Build the tidy library and command line tool
|
## Build the tidy library and command line tool
|
||||||
|
@ -28,6 +28,11 @@ In windows cmake offers various versions of MSVC. Again below only the command l
|
||||||
Windows: `cmake --build . --config Release --target INSTALL`
|
Windows: `cmake --build . --config Release --target INSTALL`
|
||||||
Unix/OS X: `[sudo] make install`
|
Unix/OS X: `[sudo] make install`
|
||||||
|
|
||||||
|
By default cmake sets the install path to /usr/local in unix. If you wanted the binary in say /usr/bin instead, then in 2. above use -DCMAKE_INSTALL_PREFIX=/usr
|
||||||
|
|
||||||
|
In windows the default install is to C:\Program Files\tidy5, or C:/Program Files (x86)/tidy5, which is not very useful. After the build the tidy[n].exe is in the Release directory, and can be copied to any directory in your PATH environment variable, for global use.
|
||||||
|
|
||||||
|
If you need the tidy library built as a 'shared' (DLL) library, then in 2. add the command -DBUILD_SHARED_LIB:BOOL=ON. This option is OFF by default, so the static library is built and linked with the command line tool for convenience.
|
||||||
|
|
||||||
## History
|
## History
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue