- Install Dependencies:
conda install -c conda-forge cgal cmake- Clone sdot2d and dependent repositories
git clone --recurse-submodules git@github.com:mparno/sdot2d.git- Run CMake to configure sdot2d
cd sdot2d
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=<Some/Install/Dir> ..where you should replace <Some/Install/Dir> with the location where you want to install the SDOT2d library, for example ~/Installations/SDOT_INSTALL.
You can also tell CMake where to look for GTest using the following command instead:
cmake -DCMAKE_INSTALL_PREFIX=<Some/Install/Dir> -DSDOT_GTEST_DIR=<gtest/install/dir> ..The gtest/install/dir should be the folder that contains the include and
lib folders where GTest has been installed.
- Build SDOT (including optional tests)
make -j4 install- (Optional) Run the tests
make testor, to run just the unit tests
./RunUnitTests- Add the SDOT paths to your environment variables:
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:<Some/Install/Dir>/lib
export PYTHONPATH=$PYTHONPATH:<Some/Install/Dir>/lib:<Some/Install/Dir>/lib/python/export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<Some/Install/Dir>/lib
export PYTHONPATH=$PYTHONPATH:<Some/Install/Dir>/lib:<Some/Install/Dir>/lib/python/Try running the random points in a rectangle example
cd sdot2d/examples/python
python RandomRectangle.py
