summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-04-04 20:35:36 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-04-04 20:35:36 +0800
commitf94c43e48e6c335cd708d14c0709ef088e8a1a2c (patch)
tree8933f2984b42467a53b067bb62f392c8246f38fb /README.md
parent7f0fbc63243884f5a3301f3c1af47ee4e38f5ed0 (diff)
Transition to CMake
Diffstat (limited to 'README.md')
-rw-r--r--README.md32
1 files changed, 24 insertions, 8 deletions
diff --git a/README.md b/README.md
index 1f2fe1d..1415803 100644
--- a/README.md
+++ b/README.md
@@ -12,31 +12,47 @@ $ cd qrtclient
## Configuring for various target hosts (with optional debugging)
```sh
-$ qmake CONFIG+=debug -spec android-clang qrtclient.pro
+$ mkdir build
+$ cmake -DCMAKE_BUILD_TYPE=Debug ..
```
or
```sh
-$ qmake CONFIG+=debug -spec linux-g++ qrtclient.pro
+$ mkdir build-Android_arm64_v8a-Debug
+$ cd build-Android_arm64_v8a-Debug
+$ cmake -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk/build/cmake/android.toolchain.cmake -DCMAKE_FIND_ROOT_PATH=/opt/Qt5.14.1/5.14.1/android -DANDROID_NATIVE_API_LEVEL=21 -DANDROID_BUILD_ABI_arm64-v8a=1 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/opt/Qt5.14.1/5.14.1/android -DANDROID_ABI=arm64-v8a -DCMAKE_CXX_STANDARD_LIBRARIES=/opt/android-ndk/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_shared.so ..
```
-or
+and/or
```sh
-$ qmake CONFIG+=debug -spec macx-clang qrtclient.pro
+$ mkdir build-Android_armeabi_v7a-Debug
+$ cd build-Android_armeabi_v7a-Debug
+$ cmake -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk/build/cmake/android.toolchain.cmake -DCMAKE_FIND_ROOT_PATH=/opt/Qt5.14.1/5.14.1/android -DANDROID_NATIVE_API_LEVEL=21 -DANDROID_BUILD_ABI_armeabi_v7a=1 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/opt/Qt5.14.1/5.14.1/android -DANDROID_ABI=armeabi-v7a -DCMAKE_CXX_STANDARD_LIBRARIES=/opt/android-ndk/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/libc++_shared.so ..
```
-or
+and/or
+
+```sh
+$ mkdir build-Android_x86-Debug
+$ cd build-Android_x86-Debug
+$ cmake -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk/build/cmake/android.toolchain.cmake -DCMAKE_FIND_ROOT_PATH=/opt/Qt5.14.1/5.14.1/android -DANDROID_NATIVE_API_LEVEL=21 -DANDROID_BUILD_ABI_x86=1 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/opt/Qt5.14.1/5.14.1/android -DANDROID_ABI=x86 -DCMAKE_CXX_STANDARD_LIBRARIES=/opt/android-ndk/sources/cxx-stl/llvm-libc++/libs/x86/libc++_shared.so ..
+```
+
+and/or
```sh
-$ qmake CONFIG+=debug -spec macx-ios-clang qrtclient.pro
+$ mkdir build-Android_x86_64-Debug
+$ cd build-Android_x86_64-Debug
+$ cmake -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk/build/cmake/android.toolchain.cmake -DCMAKE_FIND_ROOT_PATH=/opt/Qt5.14.1/5.14.1/android -DANDROID_NATIVE_API_LEVEL=21 -DANDROID_BUILD_ABI_x86_64=1 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/opt/Qt5.14.1/5.14.1/android -DANDROID_ABI=x86_64 -DCMAKE_CXX_STANDARD_LIBRARIES=/opt/android-ndk/sources/cxx-stl/llvm-libc++/libs/x86_64/libc++_shared.so ..
```
-or so on.
+and/or so on.
-## Compiling and linking
+## Compiling, linking, and installing
```sh
$ make # -jN (with N an integer number of parallel tasks you allow your computer to run for compiling this)
+$ sudo make install
```