Files
clang-p2996/clang-tools-extra/pseudo/unittests/CMakeLists.txt
Michael Kruse c87a7b3bdb [clang-tools-extra] Revise IDE folder structure (#89744)
Update the folder titles for targets in the monorepository that have not
seen taken care of for some time. These are the folders that targets are
organized in Visual Studio and XCode
(`set_property(TARGET <target> PROPERTY FOLDER "<title>")`)
when using the respective CMake's IDE generator.

 * Ensure that every target is in a folder
 * Use a folder hierarchy with each LLVM subproject as a top-level folder
 * Use consistent folder names between subprojects
 * When using target-creating functions from AddLLVM.cmake, automatically
deduce the folder. This reduces the number of
`set_property`/`set_target_property`, but are still necessary when
`add_custom_target`, `add_executable`, `add_library`, etc. are used. A
LLVM_SUBPROJECT_TITLE definition is used for that in each subproject's
root CMakeLists.txt.
2024-05-25 23:27:33 +02:00

33 lines
619 B
CMake

set(LLVM_LINK_COMPONENTS
Support
)
add_custom_target(ClangPseudoUnitTests)
set_target_properties(ClangPseudoUnitTests PROPERTIES FOLDER "Clang Tools Extra/Tests")
add_unittest(ClangPseudoUnitTests ClangPseudoTests
BracketTest.cpp
CXXTest.cpp
DirectiveTreeTest.cpp
DisambiguateTest.cpp
ForestTest.cpp
GLRTest.cpp
GrammarTest.cpp
LRTableTest.cpp
TokenTest.cpp
)
clang_target_link_libraries(ClangPseudoTests
PRIVATE
clangBasic
clangLex
)
target_link_libraries(ClangPseudoTests
PRIVATE
clangPseudo
clangPseudoCXX
clangPseudoGrammar
LLVMTestingAnnotations
LLVMTestingSupport
)