| 1 |
set(LLVM_LINK_COMPONENTS support) |
| 2 |
|
| 3 |
add_clang_tool(clang-pseudo |
| 4 |
ClangPseudo.cpp |
| 5 |
HTMLForest.cpp |
| 6 |
) |
| 7 |
|
| 8 |
clang_target_link_libraries(clang-pseudo |
| 9 |
PRIVATE |
| 10 |
clangBasic |
| 11 |
) |
| 12 |
|
| 13 |
target_link_libraries(clang-pseudo |
| 14 |
PRIVATE |
| 15 |
clangPseudo |
| 16 |
clangPseudoGrammar |
| 17 |
clangPseudoCLI |
| 18 |
) |
| 19 |
|
| 20 |
add_custom_command(OUTPUT HTMLForestResources.inc |
| 21 |
COMMAND "${Python3_EXECUTABLE}" bundle_resources.py |
| 22 |
${CMAKE_CURRENT_BINARY_DIR}/HTMLForestResources.inc |
| 23 |
HTMLForest.css HTMLForest.js HTMLForest.html |
| 24 |
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} |
| 25 |
COMMENT "Bundling HTMLForest resources" |
| 26 |
DEPENDS bundle_resources.py HTMLForest.css HTMLForest.js HTMLForest.html |
| 27 |
VERBATIM) |
| 28 |
add_custom_target(clang-pseudo-resources DEPENDS HTMLForestResources.inc) |
| 29 |
add_dependencies(clang-pseudo clang-pseudo-resources) |