-
Notifications
You must be signed in to change notification settings - Fork 184
/
CMakeLists.txt
414 lines (360 loc) · 15.4 KB
/
CMakeLists.txt
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
# Configure a header file to point to the resources directory
configure_file("resources.hxx.in" "${PROJECT_BINARY_DIR}/src/resources.hxx")
# Configure a lst file for use in transitioning between EnergyPlus versions
configure_file("IdfFilesToTransition.lst.in" "${PROJECT_BINARY_DIR}/resources/IdfFilesToTransition.lst")
########################################################
# utilities resources
# clear runs, calls to RUN_ENERGYPLUS will populate this
set(ENERGYPLUS_OUTPUTS "")
set(utilities_resources_src
"utilities/BCL/Components/philadelphia pa [724086 TMY2-13739]/component.xml"
"utilities/BCL/Components/philadelphia pa [724086 TMY2-13739]/files/USA_PA_Philadelphia_TMY2.epw"
"utilities/BCL/Components/philadelphia pa [724086 TMY2-13739]/images/noimage_100px.png"
utilities/BCL/Components/323_wrongXMLType_float/component.xml
utilities/BCL/Components/323_wrongXMLType_int/component.xml
utilities/BCL/Measures/v2/SetWindowToWallRatioByFacade/measure.xml
utilities/BCL/Measures/v2/SetWindowToWallRatioByFacade/measure.rb
utilities/BCL/Measures/v2/SetWindowToWallRatioByFacade/tests/EnvelopeAndLoadTestModel_01.osm
utilities/BCL/Measures/v2/SetWindowToWallRatioByFacade/tests/EnvelopeAndLoadTestModel_02_Rotated.osm
utilities/BCL/Measures/v2/SetWindowToWallRatioByFacade/tests/ReverseTranslatedModel.osm
utilities/BCL/Measures/v2/SetWindowToWallRatioByFacade/tests/SetWindowToWallRatioByFacade_Test.rb
utilities/BCL/Measures/v2/SetWindowToWallRatioByFacade/tests/test.osm
utilities/BCL/Measures/v2/TestCreateWarningMsgs/measure.rb
utilities/BCL/Measures/v2/TestCreateWarningMsgs/measure.xml
utilities/BCL/Measures/v2/TestFlagAsNotApplicable/measure.rb
utilities/BCL/Measures/v2/TestFlagAsNotApplicable/measure.xml
utilities/BCL/Measures/v2/TestMissingARequiredArgWithNoDefault/measure.rb
utilities/BCL/Measures/v2/TestMissingARequiredArgWithNoDefault/measure.xml
utilities/BCL/Measures/v3/IncreaseRoofRValue/measure.xml
utilities/BCL/Measures/v3/IncreaseRoofRValue/measure.rb
utilities/BCL/Measures/v3/IncreaseWallRValue/measure.xml
utilities/BCL/Measures/v3/IncreaseWallRValue/measure.rb
utilities/BCL/Measures/v3/SetEplusInfiltration/measure.xml
utilities/BCL/Measures/v3/SetEplusInfiltration/measure.rb
utilities/Checksum/Checksum.txt
utilities/Checksum/Checksum2.txt
utilities/Filetypes/CHN_Guangdong.Shaoguan.590820_CSWD.epw
utilities/Filetypes/USA_CO_Golden-NREL.724666_TMY3.epw
utilities/Filetypes/USA_CO_Golden-NREL.wrap.epw
utilities/Filetypes/USA_CO_Golden-NREL.amy
utilities/Filetypes/USA_CO_Golden-NREL.wrap.amy
utilities/Filetypes/USA_CT_New.Haven-Tweed.AP.725045_TMY3.epw
utilities/Filetypes/TDV_2008_kBtu_CZ13.csv
utilities/Filetypes/TUN_Tunis.607150_IWEC.epw
utilities/Filetypes/leapday-test.epw
utilities/Filetypes/min.osw
utilities/Filetypes/full.osw
utilities/Filetypes/test_csv.csv
utilities/Filetypes/Floorspace_Issue4036_BeforeMerge.json
utilities/Filetypes/Floorspace_Issue4036_AfterMerge.json
utilities/Geometry/floorplan.json
utilities/Geometry/simple_test.json
utilities/Geometry/office_floorplan.json
utilities/Geometry/floorplan_colors.json
utilities/Geometry/floorplan_doors.json
utilities/Geometry/floorplan_differing_num_vertices.json
utilities/Geometry/floorplan-paper.json
utilities/Geometry/floorplan_school.json
utilities/Geometry/floorplan_shading.json
utilities/Geometry/multistory_shading_rotation.json
utilities/Geometry/open_to_below.json
utilities/Geometry/split_level.json
utilities/Geometry/story_multipliers.json
utilities/Geometry/story_multipliers2.json
utilities/Geometry/story_space_heights.json
utilities/Geometry/surface_match_floorplan.json
utilities/Geometry/threejs.json
utilities/Geometry/window_floorplan.json
utilities/Geometry/issue-4203.json
utilities/Geometry/issue-4222.json
utilities/Geometry/issue-4237.json
utilities/Geometry/issue-4312.json
utilities/Geometry/issue-4313.json
utilities/Geometry/issue-4323.json
utilities/Geometry/issue-4488.json
utilities/Geometry/issue-4670.json
utilities/Geometry/floorplan_mcve.json
utilities/Geometry/shadingtest.json
utilities/Geometry/minimal_GLTF_File.gltf
utilities/Geometry/7-7_Windows_Complete.gltf
utilities/Geometry/15023_Model12.gltf
utilities/Geometry/exampleModel.gltf
utilities/Geometry/floorplan_school.gltf
utilities/Geometry/open_to_below.gltf
utilities/Geometry/RefBldgFullServiceRestaurantNew2004_Chicago.gltf
utilities/Geometry/Sample_DOE-RefBldgHospitalNew2004_Chicago.gltf
utilities/Geometry/RefBldgLargeHotelNew2004_Chicago.gltf
utilities/Geometry/RefBldgLargeOfficeNew2004_Chicago.gltf
utilities/Geometry/Sample_DOE-RefBldgOutPatientNew2004_Chicago.gltf
utilities/Geometry/Sample_DOE-RefBldgSecondarySchoolNew2004_Chicago.gltf
utilities/Geometry/Sample_DOE-RefBldgSmallHotelNew2004_Chicago.gltf
utilities/Geometry/ParkUnder_Retail_Office_C2.gltf
utilities/Geometry/ASHRAECourthouse.gltf
utilities/Geometry/Space_SurfaceMatch_LargeTest.gltf
utilities/Geometry/split_level.gltf
utilities/Idf/CommentTest.idf
utilities/Idf/DosLineEndingTest.idf
utilities/Idf/UnixLineEndingTest.idf
utilities/Idf/MixedLineEndingTest.idf
utilities/Idf/FormatPropertyTest_Formatted.idf
utilities/Idf/FormatPropertyTest_Unformatted.idf
utilities/SqlFile/1ZoneEvapCooler-V7-0-0.sql
utilities/SqlFile/1ZoneEvapCooler-V7-1-0.sql
utilities/SqlFile/1ZoneEvapCooler-V7-2-0.sql
utilities/SqlFile/1ZoneEvapCooler-V8-0-0.sql
utilities/SqlFile/1ZoneEvapCooler-V8-1-0.sql
utilities/SqlFile/1ZoneEvapCooler-V8-2-0.sql
utilities/SqlFile/1ZoneEvapCooler-V8-3-0.sql
utilities/SqlFile/1ZoneEvapCooler-V8-4-0.sql
utilities/SqlFile/1ZoneEvapCooler-V8-5-0.sql
utilities/SqlFile/1ZoneEvapCooler-V8-6-0.sql
utilities/SqlFile/1ZoneEvapCooler-V8-7-0.sql
utilities/SqlFile/1ZoneEvapCooler-V8-8-0.sql
utilities/SqlFile/1ZoneEvapCooler-V8-9-0.sql
utilities/SqlFile/1ZoneEvapCooler-V9-0-1.sql
utilities/SqlFile/1ZoneEvapCooler-V9-1-0.sql
utilities/SqlFile/1ZoneEvapCooler-V9-2-0.sql
utilities/SqlFile/1ZoneEvapCooler-V9-3-0.sql
utilities/SqlFile/1ZoneEvapCooler-V9-4-0.sql
utilities/SqlFile/1ZoneEvapCooler-V9-5-0.sql
utilities/SqlFile/1ZoneEvapCooler-V9-6-0.sql
utilities/SqlFile/1ZoneEvapCooler-V22-1-0.sql
utilities/SqlFile/1ZoneEvapCooler-V22-2-0.sql
utilities/SqlFile/1ZoneEvapCooler-V23-1-0.sql
utilities/xml/base.xml
utilities/xml/hpxml_with_error.xml
utilities/xml/schema/HPXML.xsd
utilities/xml/schema/HPXMLBaseElements.xsd
utilities/xml/schema/HPXMLDataTypes.xsd
utilities/xml/schema/HPXMLvalidator.xslt
utilities/xml/schema/HPXMLvalidator.xml
utilities/Zip/test1.zip
)
# update the resources
UPDATE_RESOURCES("${utilities_resources_src}")
# add target
add_custom_target(openstudio_utilities_resources
DEPENDS ${utilities_resources_src} ${ENERGYPLUS_OUTPUTS}
SOURCES ${utilities_resources_src}
)
CREATE_SRC_GROUPS("${utilities_resources_src}")
########################################################
# model resources
# clear runs, calls to RUN_ENERGYPLUS will populate this
set(ENERGYPLUS_OUTPUTS "")
set(model_resources_src
model/OpenStudio.idd
model/schedulefile.csv
model/PythonPluginThermochromicWindow.py
model/two_stories_pre_intersect.osm
model/floorplan_school.osm
model/7-7_Windows_Complete.osm
model/15023_Model12.osm
model/RefBldgFullServiceRestaurantNew2004_Chicago.osm
model/Sample_DOE-RefBldgHospitalNew2004_Chicago.osm
model/RefBldgLargeHotelNew2004_Chicago.osm
model/RefBldgLargeOfficeNew2004_Chicago.osm
model/Sample_DOE-RefBldgOutPatientNew2004_Chicago.osm
model/Sample_DOE-RefBldgSecondarySchoolNew2004_Chicago.osm
model/Sample_DOE-RefBldgSmallHotelNew2004_Chicago.osm
model/Space_SurfaceMatch_LargeTest.osm
model/split_level.osm
model/open_to_below.osm
model/TwoStoryOffice_Trane.osm
model/story_multipliers.osm
model/offset_tests.osm
model/ParkUnder_Retail_Office_C2.osm
model/ASHRAECourthouse.osm
model/A205ExampleChiller.RS0001.a205.cbor
model/4837_SpaceVolume.osm
)
# update the resources
UPDATE_RESOURCES("${model_resources_src}")
# add target
add_custom_target(openstudio_model_resources
DEPENDS ${model_resources_src} ${ENERGYPLUS_OUTPUTS}
SOURCES ${model_resources_src}
)
CREATE_SRC_GROUPS("${model_resources_src}")
########################################################
# openstudio resources
set(openstudio_resources_src)
# update the resources
UPDATE_RESOURCES("${openstudio_resources_src}")
# add target
add_custom_target(OpenStudio_resources
DEPENDS ${openstudio_resources_src}
SOURCES ${openstudio_resources_src}
)
CREATE_SRC_GROUPS("${openstudio_resources_src}")
########################################################
# measure resources
# clear runs, calls to RUN_ENERGYPLUS will populate this
set(ENERGYPLUS_OUTPUTS "")
set(measure_resources_src)
# update the resources
UPDATE_RESOURCES("${measure_resources_src}")
# add target
add_custom_target(openstudio_measure_resources
DEPENDS ${measure_resources_src} ${ENERGYPLUS_OUTPUTS}
SOURCES ${measure_resources_src}
)
CREATE_SRC_GROUPS("${measure_resources_src}")
########################################################
# energyplus resources
# clear runs, calls to RUN_ENERGYPLUS will populate this
set(ENERGYPLUS_OUTPUTS "")
set(energyplus_resources_src
energyplus/ProposedEnergy+.idd
energyplus/NewFileTemplate.idf
energyplus/5ZoneAirCooled/in.idf
energyplus/BestestEx/in.idf
energyplus/Components/idf_roof_1/component.xml
energyplus/Components/idf_roof_2/component.xml
energyplus/Components/idf_roof_3/component.xml
energyplus/Components/idf_roof_4/component.xml
energyplus/Components/idf_roof_5/component.xml
"energyplus/Components/idf_roof_1/Large Office TSD_Nonresidential_3A_Roof_Attic and Other.idf"
"energyplus/Components/idf_roof_2/CEC Title 24-2008_Nonresidential_9_Roof_Insulation Entirely Above Deck.idf"
"energyplus/Components/idf_roof_3/ASHRAE Std189_Residential_5B_Roof_Attic and Other.idf"
"energyplus/Components/idf_roof_4/ASHRAE 90.1-2007_Residential_7A_Roof_Metal Building.idf"
"energyplus/Components/idf_roof_5/ASHRAE 90.1-1999_Residential_B-14_Roof_Insulation Entirely Above Deck.idf"
energyplus/Components/idf_designday_1/component.xml
energyplus/Components/idf_designday_2/component.xml
energyplus/Components/idf_designday_3/component.xml
energyplus/Components/idf_designday_4/component.xml
energyplus/Components/idf_designday_5/component.xml
"energyplus/Components/idf_designday_1/Annual_Humidification_99_6.idf"
"energyplus/Components/idf_designday_2/Annual_Heating_Wind_99.idf"
"energyplus/Components/idf_designday_3/Annual_Cooling_DP_MDB_2.idf"
"energyplus/Components/idf_designday_4/Annual_Cooling_WB_MDB_1.idf"
"energyplus/Components/idf_designday_5/Annual_Heating_Wind_99.idf"
energyplus/Daylighting_Office/in.idf
energyplus/Daylighting_School/in.idf
energyplus/HospitalBaseline/in.idf # not run
energyplus/ImfFiles/HPBScheduleSets.imf
energyplus/ErrorFiles/NoErrorsNoWarnings.err
energyplus/ErrorFiles/SevereErrors.err
energyplus/ErrorFiles/Warnings.err
energyplus/ErrorFiles/WarningsAndCrash.err
energyplus/ErrorFiles/WarningsAndSevere.err
energyplus/ErrorFiles/RepeatingWarnings.err
energyplus/Office_With_Many_HVAC_Types/in.idf
energyplus/ScheduleFile/in.idf
energyplus/SimpleSurfaces/SimpleSurfaces_Reference.idf
energyplus/SimpleSurfaces/SimpleSurfaces_Relative.idf
energyplus/SimpleSurfaces/4ZoneWithShading_Simple_2.idf
energyplus/TranslatorV2_Tests/Simple_Construction.idf
energyplus/RefLargeOffice/RefBldgLargeOfficeNew2004_Chicago.idf
energyplus/ZoneBoundaryCondition/Bug_486_zone_bdr_test.idf
energyplus/SmallOffice/SmallOffice.idf
energyplus/AllFuelTypes/in.idf
energyplus/FrameAndDivider/in.idf
)
# update the resources
UPDATE_RESOURCES("${energyplus_resources_src}")
# add runs
RUN_ENERGYPLUS("in.idf" "energyplus/5ZoneAirCooled" "USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw")
RUN_ENERGYPLUS("in.idf" "energyplus/Daylighting_Office" "USA_CO_Golden-NREL.724666_TMY3.epw")
RUN_ENERGYPLUS("in.idf" "energyplus/Daylighting_School" "USA_CO_Golden-NREL.724666_TMY3.epw")
RUN_ENERGYPLUS("in.idf" "energyplus/Office_With_Many_HVAC_Types" "USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw")
RUN_ENERGYPLUS("in.idf" "energyplus/AllFuelTypes" "USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw")
RUN_ENERGYPLUS("in.idf" "energyplus/FrameAndDivider" "USA_IL_Chicago-OHare.Intl.AP.725300_TMY3.epw")
# add target
add_custom_target(openstudio_energyplus_resources
DEPENDS ${energyplus_resources_src} ${ENERGYPLUS_OUTPUTS}
SOURCES ${energyplus_resources_src}
)
CREATE_SRC_GROUPS("${energyplus_resources_src}")
########################################################
# radiance resources
# clear runs, calls to RUN_ENERGYPLUS will populate this
set(ENERGYPLUS_OUTPUTS "")
set(radiance_resources_src
radiance/Daylighting/annual_day.ill
)
# update the resources
UPDATE_RESOURCES("${radiance_resources_src}")
# add target
add_custom_target(openstudio_radiance_resources
DEPENDS ${radiance_resources_src} ${ENERGYPLUS_OUTPUTS}
SOURCES ${radiance_resources_src}
)
CREATE_SRC_GROUPS("${radiance_resources_src}")
########################################################
# gbxml resources
# clear runs, calls to RUN_ENERGYPLUS will populate this
set(ENERGYPLUS_OUTPUTS "")
SET(gbxml_resources_src
gbxml/seb.xml
gbxml/simpleBox_vasari.xml
gbxml/TestCube.xml
gbxml/TestCubeAlternateUnits.xml
gbxml/TwoStoryOffice_Trane.xml
gbxml/ZNETH.xml
gbxml/3951_Geometry_bug.xml
gbxml/3997_WindowScaling_bug.xml
gbxml/TestSchedules.xml
gbxml/gbXMLStandard_Single_Family_Residential_2016.xml
gbxml/TropicBird_BEM_4_2018.xml
gbxml/TropicBird.xml
)
# update the resources
UPDATE_RESOURCES("${gbxml_resources_src}")
# add target
add_custom_target(openstudio_gbxml_resources
DEPENDS ${gbxml_resources_src} ${ENERGYPLUS_OUTPUTS}
SOURCES ${gbxml_resources_src}
)
CREATE_SRC_GROUPS("${gbxml_resources_src}")
########################################################
# sdd resources
# clear runs, calls to RUN_ENERGYPLUS will populate this
set(ENERGYPLUS_OUTPUTS "")
set(sdd_resources_src
simxml/OffLrg-ThermalEnergyStorage_StoragePriority-ap.xml
)
# update the resources
UPDATE_RESOURCES("${sdd_resources_src}")
# add target
add_custom_target(openstudio_sdd_resources
DEPENDS ${sdd_resources_src} ${ENERGYPLUS_OUTPUTS}
SOURCES ${sdd_resources_src}
)
CREATE_SRC_GROUPS("${sdd_resources_src}")
########################################################
# isomodel resources
# clear runs, calls to RUN_ENERGYPLUS will populate this
set(ENERGYPLUS_OUTPUTS "")
set(isomodel_resources_src
isomodel/exampleModel.ISO
isomodel/weather.epw
)
# update the resources
UPDATE_RESOURCES("${isomodel_resources_src}")
# add target
add_custom_target(openstudio_isomodel_resources
DEPENDS ${isomodel_resources_src} ${ENERGYPLUS_OUTPUTS}
SOURCES ${isomodel_resources_src}
)
CREATE_SRC_GROUPS("${isomodel_resources_src}")
########################################################
# CONTAM resources
# clear runs, calls to RUN_ENERGYPLUS will populate this
set(ENERGYPLUS_OUTPUTS "")
set(airflow_resources_src
contam/CONTAMTemplate.osm
)
# update the resources
UPDATE_RESOURCES("${airflow_resources_src}")
# add target
add_custom_target(openstudio_airflow_resources
DEPENDS ${airflow_resources_src} ${ENERGYPLUS_OUTPUTS}
SOURCES ${airflow_resources_src}
)
CREATE_SRC_GROUPS("${airflow_resources_src}")
########################################################
# Copy it for testing
file(COPY "Examples" DESTINATION .)
# And install
install(DIRECTORY "Examples" DESTINATION . COMPONENT "CLI")