forked from celeritas-project/celeritas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
76 lines (69 loc) · 2.2 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
#----------------------------------*-CMake-*----------------------------------#
# Copyright 2022-2024 UT-Battelle, LLC, and other Celeritas developers.
# See the top-level COPYRIGHT file for details.
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
#-----------------------------------------------------------------------------#
set(SOURCES)
set(PRIVATE_DEPS)
set(PUBLIC_DEPS Celeritas::corecel)
#-----------------------------------------------------------------------------#
# Main code
#-----------------------------------------------------------------------------#
list(APPEND SOURCES
BoundingBoxUtils.cc
MatrixUtils.cc
OrangeParams.cc
OrangeParamsOutput.cc
OrangeTypes.cc
construct/CsgTree.cc
construct/CsgTypes.cc
construct/CsgTreeUtils.cc
construct/DepthCalculator.cc
construct/detail/LocalSurfaceInserter.cc
construct/detail/NodeSimplifier.cc
detail/BIHBuilder.cc
detail/BIHPartitioner.cc
detail/RectArrayInserter.cc
detail/SurfacesRecordBuilder.cc
detail/UnitInserter.cc
detail/UniverseInserter.cc
orangeinp/detail/BoundingZone.cc
orangeinp/detail/CsgUnitBuilder.cc
surf/ConeAligned.cc
surf/CylAligned.cc
surf/FaceNamer.cc
surf/GeneralQuadric.cc
surf/Plane.cc
surf/PlaneAligned.cc
surf/SimpleQuadric.cc
surf/Sphere.cc
surf/SoftSurfaceEqual.cc
surf/SurfaceClipper.cc
surf/SurfaceIO.cc
surf/SurfaceSimplifier.cc
surf/VariantSurface.cc
surf/detail/SurfaceTranslator.cc
surf/detail/SurfaceTransformer.cc
transform/SignedPermutation.cc
transform/TransformIO.cc
transform/Transformation.cc
transform/VariantTransform.cc
)
if(CELERITAS_USE_JSON)
list(APPEND SOURCES
BoundingBoxIO.json.cc
construct/CsgTreeIO.json.cc
construct/OrangeInputIO.json.cc
construct/detail/OrangeInputIOImpl.json.cc
)
list(APPEND PRIVATE_DEPS nlohmann_json::nlohmann_json)
endif()
#-----------------------------------------------------------------------------#
# Create library
#-----------------------------------------------------------------------------#
celeritas_add_library(orange ${SOURCES})
celeritas_target_link_libraries(orange
PRIVATE ${PRIVATE_DEPS}
PUBLIC ${PUBLIC_DEPS}
)
#-----------------------------------------------------------------------------#