forked from NHERI-SimCenter/WE-UQ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conanfile.py
32 lines (27 loc) · 1.51 KB
/
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
from conans import ConanFile
class WEUQ(ConanFile):
settings = "os", "compiler", "build_type", "arch"
generators = "qmake"
requires = "zlib/1.2.12", \
"libcurl/7.72.0"
build_policy = "missing"
def imports(self):
appsDestination = "./applications"
if self.settings.os == "Windows":
appsDestination = './%s/applications' % self.settings.build_type
elif self.settings.os == "Macos":
appsDestination = './WE_UQ.app/Contents/MacOS/applications'
self.copy("createEVENT/*wind*", dst=appsDestination, src="bin")
self.copy("createEVENT/*Wind*", dst=appsDestination, src="bin")
self.copy("createEVENT/*CFD*", dst=appsDestination, src="bin")
self.copy("createEVENT/*TPU*", dst=appsDestination, src="bin")
self.copy("createEVENT/*DEDM*", dst=appsDestination, src="bin")
self.copy("createEVENT/multipleSimCenter/*", dst=appsDestination, src="bin")
self.copy("createEVENT/SimCenterEvent/*", dst=appsDestination, src="bin")
self.copy("createSAM/*", dst=appsDestination, src="bin")
self.copy("createEDP/*", dst=appsDestination, src="bin")
self.copy("performSIMULATION/*", dst=appsDestination, src="bin")
self.copy("performUQ/*", dst=appsDestination, src="bin")
self.copy("Workflow/*", dst=appsDestination, src="bin")
self.copy("*", dst="{}/opensees".format(appsDestination), src="opensees")
self.copy("*", dst="{}/dakota".format(appsDestination), src="dakota")