summaryrefslogtreecommitdiffstats
path: root/Tests/COnly
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-04-02 20:43:23 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-04-02 20:43:23 (GMT)
commit4ea0f6b9494f2b4a4a5a238f8ad51ee6fbbcfe0a (patch)
treeb73c04c8bce53edbdf39e3e98ae6e2a361f47bef /Tests/COnly
parent81ebecaea17cc18dfdda4fc3051eba08f6f076a0 (diff)
downloadCMake-4ea0f6b9494f2b4a4a5a238f8ad51ee6fbbcfe0a.zip
CMake-4ea0f6b9494f2b4a4a5a238f8ad51ee6fbbcfe0a.tar.gz
CMake-4ea0f6b9494f2b4a4a5a238f8ad51ee6fbbcfe0a.tar.bz2
ENH: add enable language support for PROJECT command, this means that a C only project can be built with cmake, even without a cxx compiler
Diffstat (limited to 'Tests/COnly')
-rw-r--r--Tests/COnly/CMakeLists.txt3
-rw-r--r--Tests/COnly/conly.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/Tests/COnly/CMakeLists.txt b/Tests/COnly/CMakeLists.txt
new file mode 100644
index 0000000..1eaeb84
--- /dev/null
+++ b/Tests/COnly/CMakeLists.txt
@@ -0,0 +1,3 @@
+# a simple C only test case
+PROJECT (conly C)
+ADD_EXECUTABLE (conly conly.c)
diff --git a/Tests/COnly/conly.c b/Tests/COnly/conly.c
new file mode 100644
index 0000000..1482f27
--- /dev/null
+++ b/Tests/COnly/conly.c
@@ -0,0 +1,4 @@
+int main ()
+{
+ return 0;
+}