mirror of
https://github.com/Kitware/CMake.git
synced 2026-07-12 10:34:32 +00:00
Also add a test of BundleUtilities including an exe, some shared libs, a plugin, and a framework-style lib. This test presently runs (and this functionality works) on Linux, Mac and Windows. For now, the framework-style lib is built as a plain old shared lib because there is another yet-unresolved issue with local frameworks without rpaths on the Mac.
24 lines
321 B
C++
24 lines
321 B
C++
|
|
#include "framework.h"
|
|
#include "shared.h"
|
|
|
|
#if defined(WIN32)
|
|
#include <windows.h>
|
|
#else
|
|
#include "dlfcn.h"
|
|
#endif
|
|
|
|
int main(int, char**)
|
|
{
|
|
framework();
|
|
shared();
|
|
|
|
#if defined(WIN32)
|
|
HANDLE lib = LoadLibraryA("module.dll");
|
|
#else
|
|
void* lib = dlopen("module.so", RTLD_LAZY);
|
|
#endif
|
|
|
|
return lib == 0 ? 1 : 0;
|
|
}
|