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 - Feed FileReader from server side files -

java - How to create your own button and Use it with Scene Builder for javafx -

c++ - Drawing a circle in directx 9 -