forked from mpusz/mp-units
25 lines
740 B
Python
25 lines
740 B
Python
![]() |
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"]
|