CMake Nightly Date Stamp
[kiteware-cmake.git] / Tests / BundleTest / BundleTest.cxx
blob9b70e526e7b5e19eb6b0f56be2b2a5eb9209c981
1 #include <CoreFoundation/CoreFoundation.h>
2 #include <stdio.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
11 // "-framework
12 // CoreFoundation" via CMake's dependency chaining mechanism. This code
13 // exists to
14 // verify that the chaining mechanism works with "-framework blah" style
15 // link dependencies.
17 CFBundleRef br = CFBundleGetMainBundle();
18 (void)br;
20 return foo(argv[0]);