3 #include <CoreFoundation/CoreFoundation.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 CoreFoundation function... but pull in the link dependency on "-framework
12 // CoreFoundation" via CMake's dependency chaining mechanism. This code exists to
13 // verify that the chaining mechanism works with "-framework blah" style
16 CFBundleRef br = CFBundleGetMainBundle();