Update README.md to reflect it's possible to generate Ninja build scripts also

This commit is contained in:
Marko Viitanen 2022-05-02 15:40:21 +03:00
parent befdf9c789
commit 6b3dd245f6

View file

@ -423,16 +423,24 @@ possible.
Depending on the platform, some additional tools are required for compiling uvg266 with CMake. Depending on the platform, some additional tools are required for compiling uvg266 with CMake.
For Ubuntu, the required packages are `build-essential cmake`. For Ubuntu, the required packages are `build-essential cmake`.
Run the following commands to compile and install uvg266. Run the following commands to generate the build scripts
cd build cd build
cmake .. cmake ..
Then depending on your generator settings you might want to use Make to compile and install uvg266, force with `-G 'Unix Makefiles'` in CMake command
make make
sudo make install sudo make install
or Ninja, force with `-G Ninja` in the CMake command
ninja
sudo ninja install
Visual Studio natively supports opening the `CMakeLists.txt` of the CMake build package has been installed. Visual Studio natively supports opening the `CMakeLists.txt` of the CMake build package has been installed.
Otherwise CMake-CLI can be used to generate the Visual Studio project files. Otherwise CMake-CLI can be used to generate the Visual Studio project files.
**When building shared library with visual studio the tests will fail to link, the main binary will still work** **When building shared library with visual studio/MSys2/MinGW the tests will fail to link, so they are disabled**
### Docker ### Docker
This project includes a [Dockerfile](./Dockerfile), which enables building for Docker. This project includes a [Dockerfile](./Dockerfile), which enables building for Docker.