mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
It didn't create the appropriate dependencies on the .rst files. This is a more-principled approach that actually invokes CMake from within itself. Note: expect it to fail if you use the Makefile generator until I rename the .rst files Swift SVN r4545
19 lines
499 B
CMake
19 lines
499 B
CMake
cmake_minimum_required(VERSION 2.8)
|
|
|
|
find_program(LITRE_EXECUTABLE
|
|
NAMES litre
|
|
DOC "LitRe literate programming tool for docutils")
|
|
|
|
# Make the LitreTesting cmake module available
|
|
execute_process(
|
|
COMMAND ${LITRE_EXECUTABLE} --cmake_module_path
|
|
OUTPUT_VARIABLE litre_cmake_module_path
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
)
|
|
|
|
list(APPEND CMAKE_MODULE_PATH ${litre_cmake_module_path})
|
|
set(rst_files "@rst_files@")
|
|
foreach(rst ${rst_files})
|
|
add_subdirectory("${rst}.litre-tests")
|
|
endforeach()
|