[CMake] How to prevent .lib file to be installed?

Totte Karlsson totte at dunescientific.com
Tue Dec 10 19:38:30 EST 2013


Great, worked perfect!
Thanks,
Tk
On 12/10/2013 1:23 PM, Rolf Eike Beer wrote:
> Am Dienstag, 10. Dezember 2013, 13:07:07 schrieb Totte Karlsson:
>> Hi,
>> I'm creating a 'plugin' DLL and want to prevent the associated .lib file
>> to be installed (cause its not being used).
>>
>> My Install code looks like this now:
>>
>> install (TARGETS ${target}
>> DESTINATION plugins
>> COMPONENT plugins
>> )
>>
>> and it installs both a .DLL and a .lib file. Any simple fix?
> If it is a plugin, i.e. it is only opened using dlopen() or the Windows
> equivalent that I forgot the name, and never linked against, don't use SHARED
> but MODULE in the add_library() call.
>
> Eike

-- 
.........................
Totte Karlsson, Ph.D.
Dune Scientific, LLC
425-296 1980 (office)
425-780 9648 (cell)
www.dunescientific.com
.........................



More information about the CMake mailing list