import re

from conans import ConanFile, CMake
from conans.tools import load, check_min_cppstd


def read_project_property(property):
    try:
        cmake_lists = load("CMakeLists.txt")
        value = re.search(r"project\(.*{} \"(.*?)\".*?\)".format(property), cmake_lists, re.S).group(1)
        return value.strip()
    except:
        return None


class CppGeoTileConan(ConanFile):
    name = "cppGeoTile"
    scm = {
        "type": "git",
        "url": "https://github.com/Murthy10/cppGeoTile.git",
        "revision": "auto",
    }
    version = read_project_property("VERSION")
    license = "MIT"
    url = read_project_property("HOMEPAGE_URL")
    description = read_project_property("DESCRIPTION")
    settings = "arch", "build_type", "compiler", "os"
    options = {"shared": [False, True]}
    default_options = {"shared": False}
    
    def _configure_cmake(self):
        check_min_cppstd(self, 17, gnu_extensions=False)

        cmake = CMake(self)
        cmake.configure()
        return cmake

    def build(self):
        cmake = self._configure_cmake()
        cmake.build()

    def package(self):
        cmake = self._configure_cmake()
        cmake.install()

    def package_info(self):
        self.cpp_info.libs = ["GeoTile"]
57134a1e9d07e05c4f49b879c82f28c76e1dfaf5
<mask token>


class CppGeoTileConan(ConanFile):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def _configure_cmake(self):
        check_min_cppstd(self, 17, gnu_extensions=False)
        cmake = CMake(self)
        cmake.configure()
        return cmake
    <mask token>

    def package(self):
        cmake = self._configure_cmake()
        cmake.install()

    def package_info(self):
        self.cpp_info.libs = ['GeoTile']

<mask token>


class CppGeoTileConan(ConanFile):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def _configure_cmake(self):
        check_min_cppstd(self, 17, gnu_extensions=False)
        cmake = CMake(self)
        cmake.configure()
        return cmake

    def build(self):
        cmake = self._configure_cmake()
        cmake.build()

    def package(self):
        cmake = self._configure_cmake()
        cmake.install()

    def package_info(self):
        self.cpp_info.libs = ['GeoTile']

<mask token>


class CppGeoTileConan(ConanFile):
    name = 'cppGeoTile'
    scm = {'type': 'git', 'url':
        'https://github.com/Murthy10/cppGeoTile.git', 'revision': 'auto'}
    version = read_project_property('VERSION')
    license = 'MIT'
    url = read_project_property('HOMEPAGE_URL')
    description = read_project_property('DESCRIPTION')
    settings = 'arch', 'build_type', 'compiler', 'os'
    options = {'shared': [False, True]}
    default_options = {'shared': False}

    def _configure_cmake(self):
        check_min_cppstd(self, 17, gnu_extensions=False)
        cmake = CMake(self)
        cmake.configure()
        return cmake

    def build(self):
        cmake = self._configure_cmake()
        cmake.build()

    def package(self):
        cmake = self._configure_cmake()
        cmake.install()

    def package_info(self):
        self.cpp_info.libs = ['GeoTile']

import re
from conans import ConanFile, CMake
from conans.tools import load, check_min_cppstd


def read_project_property(property):
    try:
        cmake_lists = load('CMakeLists.txt')
        value = re.search('project\\(.*{} \\"(.*?)\\".*?\\)'.format(
            property), cmake_lists, re.S).group(1)
        return value.strip()
    except:
        return None


class CppGeoTileConan(ConanFile):
    name = 'cppGeoTile'
    scm = {'type': 'git', 'url':
        'https://github.com/Murthy10/cppGeoTile.git', 'revision': 'auto'}
    version = read_project_property('VERSION')
    license = 'MIT'
    url = read_project_property('HOMEPAGE_URL')
    description = read_project_property('DESCRIPTION')
    settings = 'arch', 'build_type', 'compiler', 'os'
    options = {'shared': [False, True]}
    default_options = {'shared': False}

    def _configure_cmake(self):
        check_min_cppstd(self, 17, gnu_extensions=False)
        cmake = CMake(self)
        cmake.configure()
        return cmake

    def build(self):
        cmake = self._configure_cmake()
        cmake.build()

    def package(self):
        cmake = self._configure_cmake()
        cmake.install()

    def package_info(self):
        self.cpp_info.libs = ['GeoTile']

import re

from conans import ConanFile, CMake
from conans.tools import load, check_min_cppstd


def read_project_property(property):
    try:
        cmake_lists = load("CMakeLists.txt")
        value = re.search(r"project\(.*{} \"(.*?)\".*?\)".format(property), cmake_lists, re.S).group(1)
        return value.strip()
    except:
        return None


class CppGeoTileConan(ConanFile):
    name = "cppGeoTile"
    scm = {
        "type": "git",
        "url": "https://github.com/Murthy10/cppGeoTile.git",
        "revision": "auto",
    }
    version = read_project_property("VERSION")
    license = "MIT"
    url = read_project_property("HOMEPAGE_URL")
    description = read_project_property("DESCRIPTION")
    settings = "arch", "build_type", "compiler", "os"
    options = {"shared": [False, True]}
    default_options = {"shared": False}
    
    def _configure_cmake(self):
        check_min_cppstd(self, 17, gnu_extensions=False)

        cmake = CMake(self)
        cmake.configure()
        return cmake

    def build(self):
        cmake = self._configure_cmake()
        cmake.build()

    def package(self):
        cmake = self._configure_cmake()
        cmake.install()

    def package_info(self):
        self.cpp_info.libs = ["GeoTile"]