Skip to content

Commit

Permalink
Use Cmake for Qt6 only
Browse files Browse the repository at this point in the history
  • Loading branch information
ElTh0r0 committed Apr 10, 2024
1 parent 229263c commit a0f3892
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ Packages in Arch AUR: https://aur.archlinux.org/packages/?K=inyokaedit
* For compiling spell checker plugin "spellchecker-hunspell" *libhunspell-dev* or for "spellchecker-nuspell" *libnuspell-dev* is needed.
* For running InyokaEdit, community files have to be included. Because of this it is recommended to include the community files during **make/cmake install**. For this, the [community branch](https://github.com/inyokaproject/inyokaedit/tree/community) has to be included inside the main branch root folder.

### make / qmake
### make / qmake (Qt 5 or Qt 6)
If Qt 6 shall be used, change export `QT_SELECT = qt5` in make file accordingly.
```
./configure # Execute ./configure --help to see all config options
make -j8 # Adjust -j8 according to your available cores.
make install
```

### cmake
Adjust CMAKE_PREFIX_PATH according to your Qt installation. If Qt 6 shall be used, change `option(QT6 "Use Qt6" OFF)` in CMakeLists.txt accordingly. Optionally set `-DPREVIEW=[none/useqtwebkit/useqtwebengine]` to disable preview / use Qt WebKit / use Qt WebEngine.
### cmake (Qt 6 only)
Adjust CMAKE_PREFIX_PATH according to your Qt installation. Optionally set `-DPREVIEW=[none/useqtwebkit/useqtwebengine]` to disable preview / use Qt WebKit / use Qt WebEngine.
```
cmake -B build-cmake -DCMAKE_PREFIX_PATH=/usr/include/qt -DCOMMUNITY=community/ubuntuusers_de
cmake -B build-cmake -DCMAKE_PREFIX_PATH=/usr/include/qt6 -DCOMMUNITY=community/ubuntuusers_de
cmake --build build-cmake -- -j8 # Adjust -j8 according to your available cores.
sudo cmake --install build-cmake # or DESTDIR=foobar cmake --install build-cmake
```

0 comments on commit a0f3892

Please sign in to comment.