summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Lex
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-06-21 09:51:42 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-06-21 09:51:42 +0000
commit016bbd88cf273df5bf2aff901d2f5813e3ab7f8e (patch)
tree194fcf4c175a2c24b4ed7a302990d544e7162483 /clang/unittests/Lex
parent94d025182493c4ffb71194ea148072093171594d (diff)
downloadbcm5719-llvm-016bbd88cf273df5bf2aff901d2f5813e3ab7f8e.tar.gz
bcm5719-llvm-016bbd88cf273df5bf2aff901d2f5813e3ab7f8e.zip
Clang side of a refactoring of the CMake unit test build strategy.
The fundamental change is to put a CMakeLists.txt file in the unittest directory, with a single test binary produced from it. This has several advantages. Among other fundamental advantages, we start to get the checking logic for when a file is missing from the CMake build, and this caught one missing file already! More fun details in the LLVM commit corresponding to this one. Note that the LLVM commit and this one most both be applied, or neither. Sorry for any skew issues. llvm-svn: 158910
Diffstat (limited to 'clang/unittests/Lex')
-rw-r--r--clang/unittests/Lex/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/unittests/Lex/CMakeLists.txt b/clang/unittests/Lex/CMakeLists.txt
new file mode 100644
index 00000000000..10c936199d6
--- /dev/null
+++ b/clang/unittests/Lex/CMakeLists.txt
@@ -0,0 +1,8 @@
+add_clang_unittest(LexTests
+ LexerTest.cpp
+ PreprocessingRecordTest.cpp
+ )
+
+target_link_libraries(LexTests
+ clangLex
+ )
OpenPOWER on IntegriCloud