update README.md for using cmake
This commit is contained in:
parent
ba37ecd7d6
commit
2725eb73e0
21
README.md
21
README.md
|
@ -14,7 +14,24 @@ For more information, see [w3c.github.com/tidy-html5][3]
|
||||||
|
|
||||||
[3]: http://w3c.github.com/tidy-html5/
|
[3]: http://w3c.github.com/tidy-html5/
|
||||||
|
|
||||||
## Building the tidy command-line tool
|
|
||||||
|
## Build the tidy library and command line tool
|
||||||
|
|
||||||
|
1. cd build/cmake
|
||||||
|
|
||||||
|
2. cmake ../.. [-DCMAKE_INSTALL_PREFIX=/path/for/install]
|
||||||
|
|
||||||
|
3. Windows: cmake --build . --config Release
|
||||||
|
Unix/OSX: make
|
||||||
|
|
||||||
|
4. Install, if desired
|
||||||
|
Windows: cmake --build . --config Release --target INSTALL
|
||||||
|
UNix/OSX: [sudo] make install
|
||||||
|
|
||||||
|
|
||||||
|
## Older/Previous Build systems
|
||||||
|
|
||||||
|
### Building the tidy command-line tool
|
||||||
|
|
||||||
For Linux/BSD/OSX platforms, you can build and install the `tidy` command-line
|
For Linux/BSD/OSX platforms, you can build and install the `tidy` command-line
|
||||||
tool from the source code using the following steps.
|
tool from the source code using the following steps.
|
||||||
|
@ -26,7 +43,7 @@ tool from the source code using the following steps.
|
||||||
Note that you will either need to run `make install` as root, or with `sudo make
|
Note that you will either need to run `make install` as root, or with `sudo make
|
||||||
install`.
|
install`.
|
||||||
|
|
||||||
## Building the libtidy shared library
|
### Building the libtidy shared library
|
||||||
|
|
||||||
For Linux/BSD/OSX platforms, you can build and install the `tidylib` shared
|
For Linux/BSD/OSX platforms, you can build and install the `tidylib` shared
|
||||||
library (for use in building other applications) from the source code using the
|
library (for use in building other applications) from the source code using the
|
||||||
|
|
Loading…
Reference in a new issue