cmake - Need a example to use dll in vs -


i faced problem when migrated project linux windows visual studio seem can not use dll lib directly. through number of materials , known seem should use imported in add_library(...), can not find practical example how use , used this:

add_library(hello_lib shared hello.c) add_library(hello_lib shared imported) 

and error happened

cmake error @ sub_haha/cmakelists.txt:6 (add_library): add_library cannot create imported target "haha_lib" because target same name exists. 

could please give me 1 or some? btw dll lib seem used in mingw makefile on windows.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -