from distutils.core import setup, Extension
import numpy.distutils.misc_util

# Adding Eigen to project
# ***********************

EIGEN_INCLUDE = ["/usr/include/eigen3"]

# Adding sources of the project
# *****************************

SOURCES = ["../src/cloud/cloud.cpp",
           "../src/cloud/points.cpp",
           "../src/npm_ply/ply_file_in.cc",
           "../src/npm_ply/ply_file_out.cc",
           "../src/pointmap/pointmap.cpp",
           "../src/polar_processing/polar_processing.cpp",
           "../src/icp/icp.cpp",
           "wrap_icp.cpp"]

module = Extension(name="icp",
                   sources=SOURCES,
                   include_dirs=EIGEN_INCLUDE,
                   extra_compile_args=['-std=c++17'])


setup(ext_modules=[module], include_dirs=numpy.distutils.misc_util.get_numpy_include_dirs())








