This repository was archived by the owner on Apr 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ add_executable(LeNet-MNIST
2
2
main.swift )
3
3
target_link_libraries (LeNet-MNIST PRIVATE
4
4
ImageClassificationModels
5
+ LayerInit
5
6
Datasets )
6
7
7
8
Original file line number Diff line number Diff line change
1
+ add_library (LayerInit
2
+ AutoConv.swift
3
+ AutoDense.swift
4
+ AutoFlatten.swift
5
+ AutoLayer.swift
6
+ AutoPool.swift
7
+ AutoSequenced.swift )
8
+ set_target_properties (LayerInit PROPERTIES
9
+ INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY} )
10
+ target_compile_options (LayerInit PRIVATE
11
+ $< $< BOOL:${BUILD_TESTING} > :-enable-testing> )
12
+
13
+
14
+ install (TARGETS LayerInit
15
+ ARCHIVE DESTINATION lib/swift/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
16
+ LIBRARY DESTINATION lib/swift/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
17
+ RUNTIME DESTINATION bin )
18
+ get_swift_host_arch (swift_arch )
19
+ install (FILES
20
+ $< TARGET_PROPERTY:LayerInit,Swift_MODULE_DIRECTORY> /LayerInit.swiftdoc
21
+ $< TARGET_PROPERTY:LayerInit,Swift_MODULE_DIRECTORY> /LayerInit.swiftmodule
22
+ DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>/${swift_arch} )
You can’t perform that action at this time.
0 commit comments