mirror of
https://github.com/reactos/CMake.git
synced 2024-12-13 22:58:41 +00:00
09cda9d5e7
Add an `IMPORTED_LIBNAME[_<CONFIG>]` target property to specify a library name to be placed on the link line in place of an interface library since it has no library file of its own. Restrict use of the property to imported `INTERFACE` libraries. This will be particularly useful for find modules that need to provide imported libraries from system SDKs where the full path to the library file is not known. Now such find modules will be able to provide an imported interface library and set `IMPORTED_LIBNAME` to refer to the SDK library by name. Issue: #15267
26 lines
385 B
C++
26 lines
385 B
C++
|
|
#ifndef IFACE_DEFINE
|
|
#error Expected IFACE_DEFINE
|
|
#endif
|
|
|
|
#include "iface_header.h"
|
|
|
|
#ifndef IFACE_HEADER_SRCDIR
|
|
#error Expected IFACE_HEADER_SRCDIR
|
|
#endif
|
|
|
|
#include "iface_header_builddir.h"
|
|
|
|
#ifndef IFACE_HEADER_BUILDDIR
|
|
#error Expected IFACE_HEADER_BUILDDIR
|
|
#endif
|
|
|
|
extern int obj();
|
|
extern int sub();
|
|
extern int item();
|
|
|
|
int main(int, char**)
|
|
{
|
|
return obj() + sub() + item();
|
|
}
|