[CMake] Use FIND_LIBRARY to search & link for an executable?
Bill Hoffman
bill.hoffman at kitware.com
Fri Sep 18 08:41:48 EDT 2009
Hendrik Sattler wrote:
> Zitat von Bill Hoffman <bill.hoffman at kitware.com>:
>
>> If the executable exports symbols, it should create an import .lib
>> file, and find_library should be able to find it. You can not link to
>> a .exe file.
>
> He talks about Linux, not Windows, AFAIK.
>
OK, then he needs to use the correct flags with dlopen so that it will
give the module access to symbols in the .exe. You should be able to
create a .so that has undefined symbols. Then, if you use
dlopen(libname, RTLD_LAZY), it will use the symbols already in the
loading exe.
-Bill
More information about the CMake
mailing list