This repository was archived by the owner on Apr 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +26
-1
lines changed Expand file tree Collapse file tree 4 files changed +26
-1
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
1
add_subdirectory (ImageClassification )
2
+ add_subdirectory (LayerInit )
2
3
add_subdirectory (Recommendation )
3
4
add_subdirectory (Text )
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ set_target_properties(ImageClassificationModels PROPERTIES
15
15
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY} )
16
16
target_compile_options (ImageClassificationModels PRIVATE
17
17
$< $< BOOL:${BUILD_TESTING} > :-enable-testing> )
18
-
18
+ target_link_libraries (ImageClassificationModels PUBLIC
19
+ LayerInit )
19
20
20
21
install (TARGETS ImageClassificationModels
21
22
ARCHIVE DESTINATION lib/swift/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
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