File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ if(ENABLE_TESTING)
97
97
endif ()
98
98
99
99
100
+ set_property (GLOBAL APPEND PROPERTY XCTest_EXPORTS XCTest )
100
101
get_swift_host_arch (swift_arch )
101
102
install (TARGETS XCTest
102
103
ARCHIVE DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>
@@ -106,3 +107,5 @@ install(FILES
106
107
${CMAKE_CURRENT_BINARY_DIR} /swift/XCTest.swiftdoc
107
108
${CMAKE_CURRENT_BINARY_DIR} /swift/XCTest.swiftmodule
108
109
DESTINATION lib/swift$<$<NOT:$<BOOL:${BUILD_SHARED_LIBS}>>:_static>/$<LOWER_CASE:${CMAKE_SYSTEM_NAME}>/${swift_arch} )
110
+
111
+ add_subdirectory (cmake/modules )
Original file line number Diff line number Diff line change
1
+
2
+ set (XCTest_EXPORTS_FILE ${CMAKE_CURRENT_BINARY_DIR} /XCTestExports.cmake )
3
+ configure_file (XCTestConfig.cmake.in
4
+ ${CMAKE_CURRENT_BINARY_DIR} /XCTestExports.cmake )
5
+
6
+ get_property (XCTest_EXPORTS GLOBAL PROPERTY XCTest_EXPORTS )
7
+ export (TARGETS ${XCTest_EXPORTS} FILE ${XCTest_EXPORTS_FILE} )
Original file line number Diff line number Diff line change
1
+
2
+ if (NOT TARGET XCTest )
3
+ include (@XCTest_EXPORTS_FILE@ )
4
+ endif ()
You can’t perform that action at this time.
0 commit comments