Initial version

This commit is contained in:
Mateusz Pusz
2018-08-22 12:11:19 +02:00
commit 4b376e3c2e
25 changed files with 1927 additions and 0 deletions

24
conanfile.py Normal file
View File

@@ -0,0 +1,24 @@
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"]