blob: 9b70e526e7b5e19eb6b0f56be2b2a5eb9209c981 [file] [log] [blame]
#include <CoreFoundation/CoreFoundation.h>
#include <stdio.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]);
}