A simple command-line tool for Pokémon GO. Motivation for this project was mainly to keep my fingers warm with modern C++ and its ecosystem (build system, testing, CI, package manager, acknowledged libraries) even though it might not be the easiest nor the fastest approach. The aim is to have a proper cross-platform (incl. mobile OSs) GUI application at some point (GUI probably implemented using Cocos2d-x).
- Windows & MSVC
- *nix & GCC/Clang (macOS untested currently)
- CMake (3.0.2 or newer)
- C++17-capable compiler
The dependencies for the project are obtained using vcpkg. Obtain vcpkg if necessary:
> git clone https://github.com/Microsoft/vcpkg.git
> cd vcpkg
> .\bootstrap-vcpkg.bat (or ./bootstrap-vcpkg.sh on *nix)
and install the dependencies:
> set VCPKG_DEFAULT_TRIPLET=x64-windows (x86 by default)
> .\vcpkg.exe install nlohmann-json range-v3
See the beginning of the root CMakeLists.txt
for the build options.
mkdir build && cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=/path/to/vcpkg/scripts/buildsystems/vcpkg.cmake -DEXAMPLE_OPTION=1
Either
cd build
cmake --build . --config RelWithDebInfo
or simply perform Installing as described below, if you are simply interested in the executables.
Use CMAKE_INSTALL_PREFIX
(defaults to <projectDir>/installed
) to control the installation location.
Delete build/CMakeCache.txt
if changing this between builds.
cd build
cmake --build . --target INSTALL --config RelWithDebInfo
If building of tests was enabled (BUILD_TESTS=1
, on by default), simply run ctest
in the build directory:
cd build
ctest --verbose
Assuming current directory <projectDir>/build
and CMAKE_INSTALL_PREFIX
was not modified:
../installed/bin/PoGoCmpCli --help