Skip to content

Commit aa080d1

Browse files
authored
Merge pull request #2464 from drodriguez/cmake-generate-test-fixtures-target
[cmake] Create a GenerateTestFixtures targets in CMake.
2 parents bf67e79 + 5a8fbec commit aa080d1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

CMakeLists.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,28 @@ add_swift_executable(plutil
427427
Foundation
428428
CoreFoundation)
429429

430+
add_swift_executable(GenerateTestFixtures
431+
SOURCES
432+
Tools/GenerateTestFixtures/GenerateTestFixtures/main.swift
433+
Tools/GenerateTestFixtures/GenerateTestFixtures/Utilities.swift
434+
TestFoundation/FixtureValues.swift
435+
TARGET
436+
${CMAKE_C_COMPILER_TARGET}
437+
LINK_FLAGS
438+
${libdispatch_ldflags}
439+
-L${CMAKE_CURRENT_BINARY_DIR}
440+
-lFoundation
441+
${Foundation_INTERFACE_LIBRARIES}
442+
SWIFT_FLAGS
443+
-Xcc -F${CMAKE_CURRENT_BINARY_DIR}
444+
-I;${CMAKE_CURRENT_BINARY_DIR}/swift
445+
-I;${ICU_INCLUDE_DIR}
446+
${libdispatch_cflags}
447+
$<$<NOT:$<CONFIG:Debug>>:-O>
448+
${swift_libc_flags}
449+
DEPENDS
450+
Foundation)
451+
430452
if(ENABLE_TESTING)
431453
add_swift_executable(xdgTestHelper
432454
TARGET

0 commit comments

Comments
 (0)