aboutsummaryrefslogtreecommitdiff
path: root/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
commit0c750ec837f7ae06f0a64d3da56d7578d923b3cf (patch)
tree2ccfaec4c376300a4d16bfcdbb1d9db2f4dd3501 /unittests/Lex
parent1071ba9c324d831b437870a1fe63bf2ecdc4e9e4 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158910 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Lex')
-rw-r--r--unittests/Lex/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/unittests/Lex/CMakeLists.txt b/unittests/Lex/CMakeLists.txt
new file mode 100644
index 0000000000..10c936199d
--- /dev/null
+++ b/unittests/Lex/CMakeLists.txt
@@ -0,0 +1,8 @@
+add_clang_unittest(LexTests
+ LexerTest.cpp
+ PreprocessingRecordTest.cpp
+ )
+
+target_link_libraries(LexTests
+ clangLex
+ )