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

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -