Skip to content
Snippets Groups Projects
Forked from ogs / ogs
18272 commits behind the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
conanfile.py 737 B
from conans import ConanFile, CMake

class OpenGeoSysConan(ConanFile):
    settings = "os", "compiler", "build_type", "arch"

    requires = \
        "Boost/[>=1.56.0]@lasote/stable", \
        "Shapelib/1.3.0@bilke/stable", \
        "VTK/[>=6.3,<7.1]@bilke/stable", \
        "Eigen3/3.2.8@bilke/stable", \
        "libgeotiff/1.4.1@bilke/stable", \
        "Qt/5.6.2@bilke/testing"

    generators = "cmake"

    default_options = \
        "Boost:shared=False", \
        "Boost:header_only=True", \
        "Qt:xmlpatterns=True"

    def build(self):
        cmake = CMake(self.settings)
        self.run('cmake "%s" %s' % (self.conanfile_directory, cmake.command_line))
        self.run('cmake --build . %s' % cmake.build_config)