CCGL - Common Cross-platform Geographic-computing Library

Build on native C++ Build with GDAL Build with MongoDB Build with GDAL and MongoDB codecov

UnitTest

  • Google Test Tag-release-1.8.0 is adopted as UnitTest framework. Note that other versions that higher than release-1.8.0 will cause error C2220: warning treated as error - no 'object' file generated on MSVS 2013.
  • Unittest code should name like test_xx.cpp in the test directory.
  • To run UnitTest, use the common commands:

    cd <path-to-CCGL>
    mkdir build
    cd build
    cmake .. -DCMAKE_BUILD_TYPE=Debug -DUNITTEST=1
    make -j4
    ctest -C Debug --rerun-failed --output-on-failure

Subtree

CCGL use CMake for cross-platform build. The cmake repository is adopted as subtree.

  • Add subtree Open .git/CONFIG and append the following remote repository information at the end of this file.

    [remote "cmake"]
    url = git@github.com:lreis2415/cmake.git
    fetch = +refs/heads/*:refs/remotes/cmake/*
  • Pull updates from remote repository

    git fetch cmake master
    git subtree pull --prefix=cmake cmake master --squash
  • Push local changes to remote repository

    git subtree push --prefix=cmake cmake master