Files
mp-units/conanfile.py

25 lines
740 B
Python
Raw Normal View History

2018-08-22 12:11:19 +02:00
from conans import ConanFile, CMake
class UnitConan(ConanFile):
name = "units"
version = "0.0.1"
author = "Mateusz Pusz"
license = "https://github.com/mpusz/units/blob/master/LICENSE"
url = "https://github.com/mpusz/units"
description = "Physical Units library implementation for C++"
settings = "os", "compiler", "build_type", "arch"
build_requires = (
"gtest/1.8.0@bincrafters/stable"
)
default_options = "gtest:shared=False"
generators = "cmake_paths"
def build(self):
cmake = CMake(self)
cmake.configure(source_dir="%s/src" % self.source_folder)
cmake.build()
# cmake.install()
def package_info(self):
self.cpp_info.libs = ["units"]