-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Update README with build instructions
As part of this, let's also move the mfc-utils and photonwidgets submodules into another directory, so that we can check out the public dependencies more easily.
- Loading branch information
1 parent
1aeccd5
commit d6aeec3
Showing
9 changed files
with
80 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# mfc-utils | ||
# ############################################################################## | ||
# We don't compile it, we just need it here for the tests | ||
check_optional_submodule(mfc-utils mfc-utils) | ||
|
||
# photonwidgets | ||
# ############################################################################## | ||
# We don't compile it, we just need it here for the tests | ||
check_optional_submodule(photonwidgets photonwidgets) |
Submodule mfc-utils
updated
from 000000 to b877c0
Submodule photonwidgets
updated
from 000000 to 4da55f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,52 @@ Contact KDAB at <[email protected]> to inquire about licensing options. | |
|
||
Knut includes different 3rd party software, you can find the list and licenses for them in the [3RDPARTY](3RDPARTY.md) document. | ||
|
||
# Building | ||
|
||
To build Knut, you will need an up-to-date C++ & Qt toolchain. | ||
This includes: | ||
- A recent C++ compiler (GCC 11+, Clang 15+, MSVC 19.40+) | ||
- [CMake](https://cmake.org) 3.15+ | ||
- An installation of [Qt 6](https://www.qt.io/download-open-source) | ||
- (optional: [Ninja build system](https://ninja-build.org/)) | ||
|
||
## Download Knut | ||
|
||
To clone the code, simply run: | ||
```bash | ||
git clone https://github.com/KDAB/knut.git && cd knut | ||
``` | ||
|
||
If you are a member of KDAB and have access to our private repositories, you may then simply run: | ||
```bash | ||
git submodule update --init --recursive | ||
``` | ||
To download all dependencies. | ||
|
||
If you are a contributor outside KDAB, you will need to download all submodules in the `3rdparty/` folder, without the private dependencies in the `3rdparty-kdab/` folder. | ||
```bash | ||
git submodule update --init --recursive -- 3rdparty/* | ||
``` | ||
|
||
## Running CMake | ||
|
||
After that you can build Knut with CMake via one of the presets. | ||
E.g.: | ||
```bash | ||
cmake --preset=release | ||
cmake --build --preset=release | ||
``` | ||
Take a look at `CMakePreset.json` for a list of available presets. | ||
|
||
## Running Knut | ||
|
||
After building with CMake, run the knut binary from the bin folder within your build directory. | ||
|
||
e.g.: | ||
```bash | ||
./build-release/bin/knut | ||
``` | ||
|
||
# About KDAB | ||
|
||
Knut is written and maintained by Klarälvdalens Datakonsult AB (KDAB). | ||
|