diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 15:39:57 -0700 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 15:39:57 -0700 |
commit | 035c7fabc3b82cbc9a346c11abe2e9462b4c0379 (patch) | |
tree | 7e40f5a790eae329a8c5d3e59f046451767956ff /Tests/BundleTest/BundleTest.cxx | |
download | cmake-035c7fabc3b82cbc9a346c11abe2e9462b4c0379.tar.gz cmake-035c7fabc3b82cbc9a346c11abe2e9462b4c0379.tar.bz2 cmake-035c7fabc3b82cbc9a346c11abe2e9462b4c0379.zip |
Imported Upstream version 2.8.9upstream/2.8.9
Diffstat (limited to 'Tests/BundleTest/BundleTest.cxx')
-rw-r--r-- | Tests/BundleTest/BundleTest.cxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Tests/BundleTest/BundleTest.cxx b/Tests/BundleTest/BundleTest.cxx new file mode 100644 index 000000000..a66d601d3 --- /dev/null +++ b/Tests/BundleTest/BundleTest.cxx @@ -0,0 +1,20 @@ +#include <stdio.h> + +#include <CoreFoundation/CoreFoundation.h> + +extern int foo(char* exec); + +int main(int argc, char* argv[]) +{ + printf("Started with: %d arguments\n", argc); + + // Call a CoreFoundation function... but pull in the link dependency on "-framework + // CoreFoundation" via CMake's dependency chaining mechanism. This code exists to + // verify that the chaining mechanism works with "-framework blah" style + // link dependencies. + // + CFBundleRef br = CFBundleGetMainBundle(); + (void) br; + + return foo(argv[0]); +} |