CMakeLists.txt 5.35 KB
Newer Older
1
set(jsonAttributeHeaders
2 3 4
  json/jsonAttribute.h
  json/jsonComponentItem.h
  json/jsonComponentItemDefinition.h
5
  json/jsonResource.h
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
  json/jsonDateTimeItem.h
  json/jsonDateTimeItemDefinition.h
  json/jsonDirectoryItem.h
  json/jsonDirectoryItemDefinition.h
  json/jsonDoubleItem.h
  json/jsonDoubleItemDefinition.h
  json/jsonDefinition.h
  json/jsonFileItem.h
  json/jsonFileItemDefinition.h
  json/jsonFileSystemItem.h
  json/jsonFileSystemItemDefinition.h
  json/jsonGroupItem.h
  json/jsonGroupItemDefinition.h
  json/jsonHelperFunction.h
  json/jsonIntItem.h
  json/jsonIntItemDefinition.h
  json/jsonItem.h
  json/jsonItemDefinition.h
  json/jsonMeshItem.h
  json/jsonMeshItemDefinition.h
  json/jsonMeshSelectionItem.h
  json/jsonMeshSelectionItemDefinition.h
  json/jsonModelEntityItem.h
  json/jsonModelEntityItemDefinition.h
  json/jsonStringItem.h
  json/jsonStringItemDefinition.h
32 33
  json/jsonReferenceItem.h
  json/jsonReferenceItemDefinition.h
34 35
  json/jsonRefItem.h
  json/jsonRefItemDefinition.h
36 37
  json/jsonResourceItem.h
  json/jsonResourceItemDefinition.h
38 39
  json/jsonValueItem.h
  json/jsonValueItemDefinition.h
40 41
  json/jsonVoidItem.h
  json/jsonVoidItemDefinition.h
42 43 44
)

set(jsonAttributeSrcs
45 46 47
  json/jsonAttribute.cxx
  json/jsonComponentItem.cxx
  json/jsonComponentItemDefinition.cxx
48
  json/jsonResource.cxx
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
  json/jsonDateTimeItem.cxx
  json/jsonDateTimeItemDefinition.cxx
  json/jsonDirectoryItem.cxx
  json/jsonDirectoryItemDefinition.cxx
  json/jsonDoubleItem.cxx
  json/jsonDoubleItemDefinition.cxx
  json/jsonDefinition.cxx
  json/jsonFileItem.cxx
  json/jsonFileItemDefinition.cxx
  json/jsonFileSystemItem.cxx
  json/jsonFileSystemItemDefinition.cxx
  json/jsonGroupItem.cxx
  json/jsonGroupItemDefinition.cxx
  json/jsonHelperFunction.cxx
  json/jsonIntItem.cxx
  json/jsonIntItemDefinition.cxx
  json/jsonItem.cxx
  json/jsonItemDefinition.cxx
  json/jsonMeshItem.cxx
  json/jsonMeshItemDefinition.cxx
  json/jsonMeshSelectionItem.cxx
  json/jsonMeshSelectionItemDefinition.cxx
  json/jsonModelEntityItem.cxx
  json/jsonModelEntityItemDefinition.cxx
  json/jsonStringItem.cxx
  json/jsonStringItemDefinition.cxx
75 76
  json/jsonReferenceItem.cxx
  json/jsonReferenceItemDefinition.cxx
77
  json/jsonRefItem.cxx
78 79
  json/jsonResourceItem.cxx
  json/jsonResourceItemDefinition.cxx
80 81 82
  json/jsonRefItemDefinition.cxx
  json/jsonValueItem.cxx
  json/jsonValueItemDefinition.cxx
83 84
  json/jsonVoidItem.cxx
  json/jsonVoidItemDefinition.cxx
85
)
86

87
set(attributeHeaders
88
  ${jsonAttributeHeaders}
89
  Attribute.h
90
  Resource.h
91 92
  ComponentItem.h
  ComponentItemDefinition.h
93
  Definition.h
94
  DateTimeItem.h
95
  DateTimeItemDefinition.h
96
  DirectoryInfo.h
97 98 99 100 101 102
  DirectoryItem.h
  DirectoryItemDefinition.h
  DoubleItem.h
  DoubleItemDefinition.h
  FileItem.h
  FileItemDefinition.h
103 104
  FileSystemItem.h
  FileSystemItemDefinition.h
105 106 107 108
  GroupItem.h
  GroupItemDefinition.h
  IntItem.h
  IntItemDefinition.h
109 110
  Item.h
  ItemDefinition.h
111 112
  MeshItem.h
  MeshItemDefinition.h
113 114
  MeshSelectionItem.h
  MeshSelectionItemDefinition.h
115 116
  ModelEntityItem.h
  ModelEntityItemDefinition.h
117 118
  ReferenceItem.h
  ReferenceItemDefinition.h
119 120
  RefItem.h
  RefItemDefinition.h
121
  Registrar.h
T.J. Corona's avatar
T.J. Corona committed
122 123
  ResourceItem.h
  ResourceItemDefinition.h
124
  SearchStyle.h
125 126
  StringItem.h
  StringItemDefinition.h
127
  Tag.h
128 129 130 131 132 133
  ValueItem.h
  ValueItemDefinition.h
  ValueItemDefinitionTemplate.h
  ValueItemTemplate.h
  VoidItem.h
  VoidItemDefinition.h
134 135

  operators/Associate.h
T.J. Corona's avatar
T.J. Corona committed
136
  operators/Dissociate.h
137
  operators/Read.h
138
  operators/Signal.h
139
  operators/Write.h
140
)
141

142
set(attributeSrcs
143
  ${jsonAttributeSrcs}
144
  Attribute.cxx
145
  Resource.cxx
146 147
  ComponentItem.cxx
  ComponentItemDefinition.cxx
148
  DateTimeItem.cxx
149
  DateTimeItemDefinition.cxx
150
  Definition.cxx
151
  DirectoryInfo.cxx
152 153 154 155 156 157
  DirectoryItem.cxx
  DirectoryItemDefinition.cxx
  DoubleItem.cxx
  DoubleItemDefinition.cxx
  FileItem.cxx
  FileItemDefinition.cxx
158 159
  FileSystemItem.cxx
  FileSystemItemDefinition.cxx
160 161 162 163
  GroupItem.cxx
  GroupItemDefinition.cxx
  IntItem.cxx
  IntItemDefinition.cxx
164 165
  Item.cxx
  ItemDefinition.cxx
166 167
  MeshItem.cxx
  MeshItemDefinition.cxx
168 169
  MeshSelectionItem.cxx
  MeshSelectionItemDefinition.cxx
170 171
  ModelEntityItem.cxx
  ModelEntityItemDefinition.cxx
172 173
  RefItem.cxx
  RefItemDefinition.cxx
174 175
  ReferenceItem.cxx
  ReferenceItemDefinition.cxx
176
  Registrar.cxx
T.J. Corona's avatar
T.J. Corona committed
177 178
  ResourceItem.cxx
  ResourceItemDefinition.cxx
179 180 181 182 183 184
  StringItem.cxx
  StringItemDefinition.cxx
  ValueItem.cxx
  ValueItemDefinition.cxx
  VoidItem.cxx
  VoidItemDefinition.cxx
185 186

  operators/Associate.cxx
T.J. Corona's avatar
T.J. Corona committed
187
  operators/Dissociate.cxx
188
  operators/Read.cxx
189
  operators/Signal.cxx
190
  operators/Write.cxx
191 192
)

193 194
#construct operator inputs
smtk_operation_xml("${CMAKE_CURRENT_SOURCE_DIR}/operators/Associate.sbt" defOpXML)
T.J. Corona's avatar
T.J. Corona committed
195
smtk_operation_xml("${CMAKE_CURRENT_SOURCE_DIR}/operators/Dissociate.sbt" defOpXML)
196
smtk_operation_xml("${CMAKE_CURRENT_SOURCE_DIR}/operators/Read.sbt" defOpXML)
197
smtk_operation_xml("${CMAKE_CURRENT_SOURCE_DIR}/operators/Signal.sbt" defOpXML)
198
smtk_operation_xml("${CMAKE_CURRENT_SOURCE_DIR}/operators/Write.sbt" defOpXML)
199

200
#install the headers
201
smtk_public_headers(smtkCore ${attributeHeaders})
202

203
if (SMTK_ENABLE_PARAVIEW_SUPPORT)
204 205 206 207 208
  add_smtk_plugin(
    smtkAttributePlugin "1.0"
    REGISTRAR smtk::attribute::Registrar
    MANAGERS smtk::operation::Manager smtk::resource::Manager
    LIBRARIES smtkCore)
209
  smtk_install_library(smtkAttributePlugin)
210 211
endif()

212
if (SMTK_ENABLE_PYTHON_WRAPPING)
213 214
  add_subdirectory(pybind11)
endif()
215 216

if(SMTK_ENABLE_TESTING)
217
  add_subdirectory(testing)
218
endif(SMTK_ENABLE_TESTING)