mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-10-06 09:17:07 +02:00
Add cmake QtCreator readme setup
This commit is contained in:
parent
b69d71544c
commit
799a115c36
1
.gitignore
vendored
1
.gitignore
vendored
@ -88,3 +88,4 @@ install_manifest.txt
|
|||||||
compile_commands.json
|
compile_commands.json
|
||||||
CTestTestfile.cmake
|
CTestTestfile.cmake
|
||||||
_deps
|
_deps
|
||||||
|
.cmake/**
|
37
README.md
37
README.md
@ -24,9 +24,9 @@ ScreenPlay is an open source cross plattform app for displaying Wallpaper, Widge
|
|||||||
| Feature | Windows | Linux | MacOS |
|
| Feature | Windows | Linux | MacOS |
|
||||||
|------------------------ |--------- |------- |------- |
|
|------------------------ |--------- |------- |------- |
|
||||||
| __ScreenPlay Main App__ | ✔ | ✔ | ✔ |
|
| __ScreenPlay Main App__ | ✔ | ✔ | ✔ |
|
||||||
| __Steam Binaries__ | ✔ | ❌ | ❌ |
|
| __Steam Binaries__ | ✔ | ❌ | ❌ |
|
||||||
| __Wallpaper__ | ✔ | ❌ Help Needed for Gnome/KDE/etc! | ❓ (Basic implementation) Help Needed! |
|
| __Wallpaper__ | ✔ | ❌ Help Needed for Gnome/KDE/etc! | ✔ |
|
||||||
| __Widgets__ | ✔ | ❓ | ❓ Help Needed! |
|
| __Widgets__ | ✔ | ❓ | ✔ |
|
||||||
| __Multilanguage (EN,DE,RU,FR,ES,KO🆕,VI🆕)__ | ✔ | ✔ | ✔ |
|
| __Multilanguage (EN,DE,RU,FR,ES,KO🆕,VI🆕)__ | ✔ | ✔ | ✔ |
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -50,7 +50,7 @@ __If you want to help and add new desktop environments look at ScreenPlayWallpap
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
## Contributing
|
# Contributing
|
||||||
|
|
||||||
Everyone can contribute with code, design, documentation or translation. Visit our [contributing guide](https://gitlab.com/kelteseth/ScreenPlay/blob/dev/CONTRIBUTING.md) for more informations.
|
Everyone can contribute with code, design, documentation or translation. Visit our [contributing guide](https://gitlab.com/kelteseth/ScreenPlay/blob/dev/CONTRIBUTING.md) for more informations.
|
||||||
|
|
||||||
@ -82,28 +82,43 @@ chmod +x install-dependencies.sh
|
|||||||
* libzippp
|
* libzippp
|
||||||
* nlohmann-json
|
* nlohmann-json
|
||||||
* openSSL 1.1.1d
|
* openSSL 1.1.1d
|
||||||
|
* zlib& libzip
|
||||||
|
* breakpad
|
||||||
* Download these dependencies via __git submodules__
|
* Download these dependencies via __git submodules__
|
||||||
* stomt-qt-sdk
|
* stomt-qt-sdk
|
||||||
* qt-google-analytics
|
* qt-google-analytics
|
||||||
* qt-breakpad
|
* qt-breakpad
|
||||||
5. Follow the steps below for your OS. Then Open The ScreenPlay.pro via QtCreator.
|
5. **Follow the steps below for your OS**. Then open the CMakeLists.txt via QtCreator.
|
||||||
6. Add install to the build steps. Projects -> Build -> Add Build Step -> Select Make -> Insert "install" into Make arguments.
|
6. Add install to the build steps. Projects -> Build -> Add Build Step -> Select Build -> Select "install" .
|
||||||
|
* CMake -> Check if cmake is listed there, otherwise add it
|
||||||
|
* Kits -> CMakeGenerator -> Change... (Otherwhise your builds are slow!)
|
||||||
|
* Generator: Ninja
|
||||||
|
* Extra Generator: CodeBlocks
|
||||||
|
* Add CMAKE_TOOLCHAIN_FILE and VCPKG_TARGET_TRIPLET
|
||||||
|
* Extras -> Tools -> Kits -> <Your Kit> -> CMake Configuration -> Append this:
|
||||||
|
* CMAKE_TOOLCHAIN_FILE:STRING=%{CurrentProject:Path}/ScreenPlay/Common/vcpkg/scripts/buildsystems/vcpkg.cmake
|
||||||
|
* VCPKG_TARGET_TRIPLET:STRING=x64-windows
|
||||||
|
* or Linux: x64-linux MacOSX: x64-osx
|
||||||
7. Press build (the green play button). This will compile the project and copy all necessary files into your Qt installation.
|
7. Press build (the green play button). This will compile the project and copy all necessary files into your Qt installation.
|
||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
1. [Download and install MSVC 2019 Community](https://visualstudio.microsoft.com/vs/community/)
|
1. [Download and install MSVC 2019 Community](https://visualstudio.microsoft.com/vs/community/)
|
||||||
|
- Select "Desktop development with C++"
|
||||||
2. [Download and install Qt 5 binary installer from qt.io](https://www.qt.io/download-qt-installer)
|
2. [Download and install Qt 5 binary installer from qt.io](https://www.qt.io/download-qt-installer)
|
||||||
- Install the Maintaince tool
|
- Install the Maintaince tool
|
||||||
- Select the following features to install:
|
- Select the following features to install:
|
||||||
- Qt 5.14.0
|
- Qt 5.14.2
|
||||||
- MSVC 2017 64-bit
|
- MSVC 2017 64-bit
|
||||||
- Qt WebEngine
|
- Qt WebEngine
|
||||||
|
- Developer and Designer Tools
|
||||||
|
- Cmake
|
||||||
|
- Ninja
|
||||||
|
|
||||||
### Linux
|
### Linux
|
||||||
1. Install dependencies for your distro:
|
1. Install dependencies for your distro:
|
||||||
``` bash
|
``` bash
|
||||||
# Debian/Ubuntu
|
# Debian/Ubuntu
|
||||||
sudo apt install build-essential libgl1-mesa-dev lld
|
sudo apt install build-essential libgl1-mesa-dev lld ninja-build cmake
|
||||||
|
|
||||||
# Fedora/RHEL/CentOS (yum)
|
# Fedora/RHEL/CentOS (yum)
|
||||||
sudo yum groupinstall "C Development Tools and Libraries"
|
sudo yum groupinstall "C Development Tools and Libraries"
|
||||||
@ -115,18 +130,20 @@ sudo zypper install -t pattern devel_basis
|
|||||||
2. [Download and install Qt 5 binary installer from qt.io](https://www.qt.io/download-qt-installer)
|
2. [Download and install Qt 5 binary installer from qt.io](https://www.qt.io/download-qt-installer)
|
||||||
- Install the Maintaince tool
|
- Install the Maintaince tool
|
||||||
- Select the following features to install:
|
- Select the following features to install:
|
||||||
- Qt 5.14.0
|
- Qt 5.14.2
|
||||||
- GCC
|
- GCC
|
||||||
- Qt WebEngine
|
- Qt WebEngine
|
||||||
### OSX
|
### OSX
|
||||||
1. [Download and install Qt 5 binary installer from qt.io](https://www.qt.io/download-qt-installer)
|
1. [Download and install Qt 5 binary installer from qt.io](https://www.qt.io/download-qt-installer)
|
||||||
- Install the Maintaince tool
|
- Install the Maintaince tool
|
||||||
- Select the following features to install:
|
- Select the following features to install:
|
||||||
- Qt 5.14.0
|
- Qt 5.14.2
|
||||||
- Qt WebEngine
|
- Qt WebEngine
|
||||||
- Developer and Designer Tools
|
- Developer and Designer Tools
|
||||||
- OpenSSL 1.1.1.c Toolkit
|
- OpenSSL 1.1.1.c Toolkit
|
||||||
- OpenSSL 64-bit binaries
|
- OpenSSL 64-bit binaries
|
||||||
|
- Cmake
|
||||||
|
- Ninja
|
||||||
2. Install [homebrew](https://brew.sh/)
|
2. Install [homebrew](https://brew.sh/)
|
||||||
- Open a terminal and install clang -> brew install llvm
|
- Open a terminal and install clang -> brew install llvm
|
||||||
3. Change your default kit: QtCreator -> Options -> Kits -> Select your default kit (Desktop Qt 5.13.0) -> Change c and c++ Compiler to Apple Clang (x86_64)
|
3. Change your default kit: QtCreator -> Options -> Kits -> Select your default kit (Desktop Qt 5.13.0) -> Change c and c++ Compiler to Apple Clang (x86_64)
|
||||||
|
@ -43,6 +43,11 @@ string(STRIP ${QT_INSTALL_QML_RAW} QT_INSTALL_QML)
|
|||||||
set(DESTDIR "${QT_INSTALL_QML}/${TARGETPATH}")
|
set(DESTDIR "${QT_INSTALL_QML}/${TARGETPATH}")
|
||||||
message("DESTDIR ${DESTDIR}")
|
message("DESTDIR ${DESTDIR}")
|
||||||
|
|
||||||
|
install(FILES
|
||||||
|
qmldir
|
||||||
|
DESTINATION
|
||||||
|
${DESTDIR} )
|
||||||
|
|
||||||
|
|
||||||
# Copies ScreenPlaySysInfo.* into qt qml plugins folder
|
# Copies ScreenPlaySysInfo.* into qt qml plugins folder
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
|
Loading…
Reference in New Issue
Block a user