Download firebase cpp sdk from here:
https://firebase.google.com/download/cpp?authuser=0
Create a Firebase project and add an Android application.
Download the SDK configuration file google-services.json
.
Clone the current project and put the google-services.json
file obtained in Step 2 into the project root directory.
If cmake
is not installed on your computer, install it from https://cmake.org/install/
Config FIREBASE_CPP_SDK_DIR
to point to Firebase cpp sdk
folder in CMakeLists.txt
.
Switch to the project directory under cmd
and run cmake .
Switch to the project directory under cmd
and run cmake --build .
Run <project directory>/Debug/testapp.exe
Good luck!