1 #include <CoreFoundation/CoreFoundation.h>
4 extern int foo(char* exec
);
6 int main(int argc
, char* argv
[])
8 printf("Started with: %d arguments\n", argc
);
10 // Call a CoreFoundation function... but pull in the link dependency on
12 // CoreFoundation" via CMake's dependency chaining mechanism. This code
14 // verify that the chaining mechanism works with "-framework blah" style
17 CFBundleRef br
= CFBundleGetMainBundle();