Oscar Fuentes | d2f4e5e | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 1 | set(LLVM_NO_RTTI 1) |
| 2 | |
| 3 | add_clang_library(clangBasic |
Chris Lattner | 6b15cdc | 2009-06-14 01:05:48 +0000 | [diff] [blame] | 4 | Builtins.cpp |
Steve Naroff | e9b7d8a | 2009-04-01 15:50:34 +0000 | [diff] [blame] | 5 | ConvertUTF.c |
Oscar Fuentes | d2f4e5e | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 6 | Diagnostic.cpp |
| 7 | FileManager.cpp |
| 8 | IdentifierTable.cpp |
Oscar Fuentes | d2f4e5e | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 9 | SourceLocation.cpp |
| 10 | SourceManager.cpp |
| 11 | TargetInfo.cpp |
| 12 | Targets.cpp |
| 13 | TokenKinds.cpp |
Douglas Gregor | b8d1191 | 2009-10-05 20:33:49 +0000 | [diff] [blame^] | 14 | Version.cpp |
Oscar Fuentes | d2f4e5e | 2008-10-26 00:56:18 +0000 | [diff] [blame] | 15 | ) |
Douglas Gregor | a393e9e | 2009-03-16 23:06:59 +0000 | [diff] [blame] | 16 | |
Douglas Gregor | b8d1191 | 2009-10-05 20:33:49 +0000 | [diff] [blame^] | 17 | # Determine Subversion revision. |
| 18 | # FIXME: This only gets updated when CMake is run, so this revision number |
| 19 | # may be out-of-date! |
| 20 | find_package(Subversion) |
| 21 | if (Subversion_FOUND) |
| 22 | Subversion_WC_INFO(${CLANG_SOURCE_DIR} CLANG) |
| 23 | set_source_files_properties(Version.cpp |
| 24 | PROPERTIES COMPILE_DEFINITIONS "SVN_REVISION=\"${CLANG_WC_REVISION}\"") |
| 25 | endif() |
| 26 | |
Douglas Gregor | a393e9e | 2009-03-16 23:06:59 +0000 | [diff] [blame] | 27 | add_dependencies(clangBasic |
| 28 | ClangDiagnosticAnalysis |
| 29 | ClangDiagnosticAST |
| 30 | ClangDiagnosticCommon |
| 31 | ClangDiagnosticDriver |
| 32 | ClangDiagnosticFrontend |
Chris Lattner | 25bcbaf | 2009-04-22 18:59:57 +0000 | [diff] [blame] | 33 | ClangDiagnosticGroups |
Douglas Gregor | a393e9e | 2009-03-16 23:06:59 +0000 | [diff] [blame] | 34 | ClangDiagnosticLex |
| 35 | ClangDiagnosticParse |
| 36 | ClangDiagnosticSema) |