Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Tests / BundleTest / BundleTest.cxx
blob29d17dbbed4cb11d53c48802418004821674c816
1 #include <stdio.h>
3 #include <Carbon/Carbon.h>
5 extern int foo(char* exec);
7 int main(int argc, char* argv[])
9 printf("Started with: %d arguments\n", argc);
11 // Call a "Carbon" function... but pull in the link dependency on "-framework
12 // Carbon" via CMake's dependency chaining mechanism. This code exists to
13 // verify that the chaining mechanism works with "-framework blah" style
14 // link dependencies.
16 CFBundleRef br = CFBundleGetMainBundle();
17 (void) br;
19 return foo(argv[0]);