- CMake 3.20+
- C++17 compiler
- vcpkg (for OpenCV, libhv, and cpr)
-
Install vcpkg
cd C:\ git clone https://github.com/microsoft/vcpkg.git cd vcpkg .\bootstrap-vcpkg.bat .\vcpkg integrate install
-
Install dependencies
.\vcpkg install opencv4:x64-windows-static libhv:x64-windows-static cpr:x64-windows-static
-
Build
cmake -B build -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows-static cmake --build build --config Release
vcpkg maybe not the best option for linux, but it is what it is, maybe in the future i'll remake this. but if you just install them on your linux computer, it will automatically find them via findPackage (I think)
-
Install vcpkg
cd ~ git clone https://github.com/microsoft/vcpkg.git cd vcpkg ./bootstrap-vcpkg.sh ./vcpkg integrate install
-
Install dependencies
./vcpkg install opencv4:x64-linux libhv:x64-linux cpr:x64-linux
-
Build
cmake -B build -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-linux cmake --build build --config Release
- Windows:
build\bin\Release\photoGraph.exe - Linux:
build/bin/photoGraph
Note: The executable is fully static and requires no external DLLs or libraries.