-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
134 lines (106 loc) · 2.46 KB
/
Copy pathCMakeLists.txt
File metadata and controls
134 lines (106 loc) · 2.46 KB
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
set(name CSG)
project(${name} VERSION 0.1.0)
include(OpticksBuildOptions NO_POLICY_SCOPE)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
)
set(SOURCES)
set(HEADERS)
set(CSG_HEADERS)
set(INTERSECT_HEADERS)
list(APPEND SOURCES
CSGNode.cc
CU.cc
CSGPrim.cc
CSGSolid.cc
CSGFoundry.cc
CSGCopy.cc
CSGMaker.cc
CSGImport.cc
CSGTarget.cc
CSGScan.cc
CSGScan.cu
CSGView.cc
CSGGrid.cc
CSGQuery.cc
CSGGeometry.cc
CSGDraw.cc
CSGRecord.cc
CSGSimtraceRerun.cc
CSGSimtraceSample.cc
CSGSimtrace.cc
CSGDebug_Cylinder.cc
CSG_LOG.cc
)
list(APPEND CSG_HEADERS
CSGNode.h
CU.h
CSGPrim.h
CSGSolid.h
CSGParams.h
CSGFoundry.h
CSGCopy.h
CSGMaker.h
CSGImport.h
CSGTarget.h
CSGScan.h
CSGView.h
CSGGrid.h
CSGQuery.h
CSGGeometry.h
CSGDraw.h
CSGRecord.h
CSGEnum.h
CSGSimtraceRerun.h
CSGSimtrace.hh
CSGDebug_Cylinder.hh
CSG_LOG.hh
CSG_API_EXPORT.hh
)
list(APPEND INTERSECT_HEADERS
csg_intersect_leaf.h
csg_intersect_node.h
csg_intersect_tree.h
csg_intersect_leaf_box3.h
csg_intersect_leaf_convexpolyhedron.h
csg_intersect_leaf_cylinder.h
csg_intersect_leaf_disc.h
csg_intersect_leaf_head.h
csg_intersect_leaf_hyperboloid.h
csg_intersect_leaf_infcylinder.h
csg_intersect_leaf_newcone.h
csg_intersect_leaf_oldcone.h
csg_intersect_leaf_oldcylinder.h
csg_intersect_leaf_phicut.h
csg_intersect_leaf_plane.h
csg_intersect_leaf_slab.h
csg_intersect_leaf_sphere.h
csg_intersect_leaf_templated.h
csg_intersect_leaf_thetacut.h
csg_intersect_leaf_zsphere.h
csg_robust_quadratic_roots.h
csg_classify.h
csg_pack.h
csg_stack.h
csg_tranche.h
csg_error.h
csg_postorder.h
f4_stack.h
)
list(APPEND HEADERS
${CSG_HEADERS}
${INTERSECT_HEADERS}
)
add_library( ${name} ${SOURCES} )
target_compile_definitions( ${name} PUBLIC OPTICKS_CSG )
target_compile_definitions( ${name} PUBLIC WITH_CONTIGUOUS )
target_compile_definitions( ${name} PUBLIC WITH_S_BB )
target_include_directories(${name}
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_link_libraries(${name} Opticks::SysRap)
bcm_deploy(TARGETS ${name} NAMESPACE Opticks:: SKIP_HEADER_INSTALL)
install(FILES ${HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
add_subdirectory(tests)