diff options
author | Brad King <brad.king@kitware.com> | 2019-11-14 15:31:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-11-14 15:57:42 (GMT) |
commit | d2e5e6ff1abec8b3b1579f122b7dcc89a35dbba4 (patch) | |
tree | 53e92d69536044321ac31d5543a6c426546b5aba /Tests/Objective-C++ | |
parent | 786954c4893565d8da27329201fd235e347e051d (diff) | |
download | CMake-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/Objective-C++')
8 files changed, 0 insertions, 74 deletions
diff --git a/Tests/Objective-C++/cxx-file-extension-test/CMakeLists.txt b/Tests/Objective-C++/cxx-file-extension-test/CMakeLists.txt deleted file mode 100644 index 0b33875..0000000 --- a/Tests/Objective-C++/cxx-file-extension-test/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -cmake_minimum_required(VERSION 3.15) - -project(cxx-file-extension-test CXX) - -add_executable(cxx-file-extension-test main.mm) diff --git a/Tests/Objective-C++/cxx-file-extension-test/main.mm b/Tests/Objective-C++/cxx-file-extension-test/main.mm deleted file mode 100644 index 1c159a9..0000000 --- a/Tests/Objective-C++/cxx-file-extension-test/main.mm +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef __OBJC__ -# error "Compiler cannot compile Objective-C" -#endif - -int main() -{ - return 0; -} diff --git a/Tests/Objective-C++/objcxx-file-extension-test/CMakeLists.txt b/Tests/Objective-C++/objcxx-file-extension-test/CMakeLists.txt deleted file mode 100644 index eda7bba..0000000 --- a/Tests/Objective-C++/objcxx-file-extension-test/CMakeLists.txt +++ /dev/null @@ -1,6 +0,0 @@ -cmake_minimum_required(VERSION 3.15) - -project(objcxx-file-extension-test OBJCXX CXX) - -add_executable(objcxx-file-extension-test main.mm) -target_link_libraries(objcxx-file-extension-test "-framework Foundation") diff --git a/Tests/Objective-C++/objcxx-file-extension-test/main.mm b/Tests/Objective-C++/objcxx-file-extension-test/main.mm deleted file mode 100644 index d4aa1bb..0000000 --- a/Tests/Objective-C++/objcxx-file-extension-test/main.mm +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef __OBJC__ -# error "Compiler is not an Objective-C compiler." -#endif - -#import <Foundation/Foundation.h> -#include <iostream> - -int main() -{ - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - std::cout << "Hello World" << std::endl; - [pool release]; - return 0; -} diff --git a/Tests/Objective-C++/simple-build-test/CMakeLists.txt b/Tests/Objective-C++/simple-build-test/CMakeLists.txt deleted file mode 100644 index cf27683..0000000 --- a/Tests/Objective-C++/simple-build-test/CMakeLists.txt +++ /dev/null @@ -1,11 +0,0 @@ -cmake_minimum_required(VERSION 3.15) - -set(CMAKE_MACOSX_RPATH OFF) - -project(simple-build-test OBJCXX) - -add_library(foo SHARED foo.mm) -target_link_libraries(foo "-framework Foundation") - -add_executable(simple-build-test main.mm) -target_link_libraries(simple-build-test "-framework Foundation" foo) diff --git a/Tests/Objective-C++/simple-build-test/foo.h b/Tests/Objective-C++/simple-build-test/foo.h deleted file mode 100644 index b3fb084..0000000 --- a/Tests/Objective-C++/simple-build-test/foo.h +++ /dev/null @@ -1,9 +0,0 @@ -#import <Foundation/Foundation.h> - -@interface Foo : NSObject { - NSNumber* age; -} - -@property (nonatomic, retain) NSNumber* age; - -@end diff --git a/Tests/Objective-C++/simple-build-test/foo.mm b/Tests/Objective-C++/simple-build-test/foo.mm deleted file mode 100644 index 2d452a8..0000000 --- a/Tests/Objective-C++/simple-build-test/foo.mm +++ /dev/null @@ -1,7 +0,0 @@ -#import "foo.h" - -@implementation Foo - -@synthesize age; - -@end diff --git a/Tests/Objective-C++/simple-build-test/main.mm b/Tests/Objective-C++/simple-build-test/main.mm deleted file mode 100644 index 7c85551..0000000 --- a/Tests/Objective-C++/simple-build-test/main.mm +++ /dev/null @@ -1,14 +0,0 @@ -#import <Foundation/Foundation.h> -#import "foo.h" -#include <iostream> - -int main(int argc, char **argv) -{ - NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - Foo *theFoo = [[Foo alloc] init]; - theFoo.age = [NSNumber numberWithInt:argc]; - NSLog(@"%d\n",[theFoo.age intValue]); - std::cout << [theFoo.age intValue] << std::endl; - [pool release]; - return 0; -} |