]> granicus.if.org Git - clang/commitdiff
Add CMake files for tools/driver; I am just guessing here, can someone test/fix?
authorDaniel Dunbar <daniel@zuster.org>
Tue, 24 Mar 2009 02:52:57 +0000 (02:52 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 24 Mar 2009 02:52:57 +0000 (02:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67604 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt
tools/CMakeLists.txt [new file with mode: 0644]
tools/driver/CMakeLists.txt [new file with mode: 0644]

index 6a46c5a78526f801902be4a7ebd443fef909563c..b9100bfdb588824490cb223d0f83533ce1be16d7 100644 (file)
@@ -52,5 +52,6 @@ add_definitions( -D_GNU_SOURCE )
 add_subdirectory(include)
 add_subdirectory(lib)
 add_subdirectory(Driver)
+add_subdirectory(tools)
 
 # TODO: docs.
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
new file mode 100644 (file)
index 0000000..e5dc2cc
--- /dev/null
@@ -0,0 +1 @@
+add_subdirectory(driver)
diff --git a/tools/driver/CMakeLists.txt b/tools/driver/CMakeLists.txt
new file mode 100644 (file)
index 0000000..a47581b
--- /dev/null
@@ -0,0 +1,10 @@
+set( LLVM_USED_LIBS
+  clangDriver
+  clangBasic
+  )
+
+set(LLVM_LINK_COMPONENTS system support bitreader bitwriter)
+
+add_clang_tool(clang-driver
+  driver.cpp
+  )