Files
swift-mirror/tools/SourceKit/tools/CMakeLists.txt
Michael Gottesman 872d492029 [cmake] Allow for users to build binaries for testing even if we aren't going to run the actual tests.
Previously, we used SWIFT_INCLUDE_TESTS to control if we created build rules for
binaries just used to test as well as running the tests as well. In this commit,
I changed this behavior by adding an option called SWIFT_INCLUDE_TEST_BINARIES.
This will allow for the stage 1 swift build to build and install test binaries
into the just built toolchain for use by the stage 2 swift that builds the
stdlib.
2021-09-01 16:33:04 -07:00

15 lines
417 B
CMake

set(SOURCEKITD_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/sourcekitd)
include_directories(
${SOURCEKITD_SOURCE_DIR}/include
)
add_swift_lib_subdirectory(sourcekitd)
if(LibEdit_FOUND AND LibEdit_HAS_UNICODE)
add_swift_tool_subdirectory(sourcekitd-repl)
endif()
if(SWIFT_INCLUDE_TESTS OR SWIFT_INCLUDE_TEST_BINARIES)
add_swift_tool_subdirectory(sourcekitd-test)
add_swift_tool_subdirectory(complete-test)
endif()