mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-01 03:14:29 +02:00
Initial version
This commit is contained in:
24
conanfile.py
Normal file
24
conanfile.py
Normal 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"]
|
Reference in New Issue
Block a user