-
Notifications
You must be signed in to change notification settings - Fork 149
/
Copy pathCMakeLists.txt
43 lines (41 loc) · 1.42 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
add_library(Datasets
CIFAR10/CIFAR10.swift
CIFAR100/CIFAR100.swift
DatasetUtilities.swift
COCO/COCO.swift
COCO/COCODataset.swift
COCO/COCOVariant.swift
CoLA/CoLA.swift
CoLA/DataUtilities.swift
ImageClassificationDataset.swift
Imagenette/ImageNet.swift
Imagenette/Imagenette.swift
Imagenette/Imagewoof.swift
LanguageModelDataset.swift
MNIST/MNISTDatasetHandler.swift
MNIST/MNIST.swift
MNIST/FashionMNIST.swift
MNIST/KuzushijiMNIST.swift
ObjectDetectionDataset.swift
BostonHousing/BostonHousing.swift
TextUnsupervised/TextUnsupervised.swift
MovieLens/MovieLens.swift
TensorPair.swift
TextUnsupervised/TextUnsupervised.swift
WordSeg/WordSegDataset.swift
WordSeg/Phrase.swift
ImageSegmentationDataset.swift
OxfordIIITPets/OxfordIIITPets.swift)
target_link_libraries(Datasets PUBLIC
ModelSupport)
set_target_properties(Datasets PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
install(TARGETS Datasets
ARCHIVE DESTINATION lib/swift/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
LIBRARY DESTINATION lib/swift/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
RUNTIME DESTINATION bin)
get_swift_host_arch(swift_arch)
install(FILES
$<TARGET_PROPERTY:Datasets,Swift_MODULE_DIRECTORY>/Datasets.swiftdoc
$<TARGET_PROPERTY:Datasets,Swift_MODULE_DIRECTORY>/Datasets.swiftmodule
DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>/${swift_arch})