forked from NHERI-SimCenter/GroundMotionUtilities
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconanfile.py
34 lines (26 loc) · 997 Bytes
/
conanfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from conans import ConanFile, CMake, tools
import os
class GMUConan(ConanFile):
name = "GMU"
description = "Ground Motion Utilities"
topics = ("Earthquake", "Ground Motion", "Hazards")
url = "https://github.com/NHERI-SimCenter/GroundMotionUtilities"
homepage = "https://github.com/NHERI-SimCenter/GroundMotionUtilities/blob/master/Readme.md"
license = "BSD"
version = "1.2.0"
# Options may need to change depending on the packaged library
settings = "os", "arch", "compiler", "build_type"
_build_subfolder = "build"
_source_subfolder = "."
exports_sources = "*"
def _configure_cmake(self):
cmake = CMake(self)
cmake.configure(build_folder=self._build_subfolder)
return cmake
def build(self):
cmake = CMake(self)
cmake.configure(source_folder=".")
cmake.build()
cmake.install()
def package(self):
self.copy(pattern="build/bin/*", dst="bin", keep_path=False)