summaryrefslogtreecommitdiffstats
path: root/Tests/ObjC++
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-11-14 15:31:18 (GMT)
committerBrad King <brad.king@kitware.com>2019-11-14 15:57:42 (GMT)
commitd2e5e6ff1abec8b3b1579f122b7dcc89a35dbba4 (patch)
tree53e92d69536044321ac31d5543a6c426546b5aba /Tests/ObjC++
parent786954c4893565d8da27329201fd235e347e051d (diff)
downloadCMake-d2e5e6ff1abec8b3b1579f122b7dcc89a35dbba4.zip
CMake-d2e5e6ff1abec8b3b1579f122b7dcc89a35dbba4.tar.gz
CMake-d2e5e6ff1abec8b3b1579f122b7dcc89a35dbba4.tar.bz2
Tests: Organize Objective C/C++ test directories
Move them all under `Tests/ObjC` and `Tests/ObjCXX`.
Diffstat (limited to 'Tests/ObjC++')
-rw-r--r--Tests/ObjC++/CMakeLists.txt6
-rw-r--r--Tests/ObjC++/objc++.mm23
2 files changed, 0 insertions, 29 deletions
diff --git a/Tests/ObjC++/CMakeLists.txt b/Tests/ObjC++/CMakeLists.txt
deleted file mode 100644
index 8b1563e..0000000
--- a/Tests/ObjC++/CMakeLists.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-# a simple objc++ test case that uses Cocoa framework
-project (ObjC++)
-
-add_executable (ObjC++ objc++.mm)
-target_link_libraries(ObjC++ "-framework Cocoa")
-
diff --git a/Tests/ObjC++/objc++.mm b/Tests/ObjC++/objc++.mm
deleted file mode 100644
index 258ebaa..0000000
--- a/Tests/ObjC++/objc++.mm
+++ /dev/null
@@ -1,23 +0,0 @@
-#import <Cocoa/Cocoa.h>
-#import <iostream>
-using namespace std;
-
-int main()
-{
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
- NSMutableSet *mySet = [NSMutableSet set];
- cout<<"Adding values to the set."<<endl;
- [mySet addObject:[NSNumber numberWithInt:356]];
- [mySet addObject:[NSNumber numberWithInt:550]];
- [mySet addObject:[NSNumber numberWithInt:914]];
-
- cout<<"The set contains "<<[mySet count]<<" objects."<<endl;
- if ([mySet containsObject:[NSNumber numberWithInt:911]])
- cout<<"It's there!"<<endl;
- else
- cout<<"It's not there."<<endl;
-
- [pool release];
- return 0;
-}