Re: [CMake] Need a example to use dll in vs

2016-04-24 Thread Chaos Zhang
Thanks for your reply Mr Scott, but my project worked well on Linux and i am sure the path is right. This question has been asked long before, as below: On Sat, Jul 24, 2010 at 11:00 PM, John Drescher wrote: >>> I know that target_link_libraries can be used to link a .lib , >>> >>> but how to link

Re: [CMake] Need a example to use dll in vs

2016-04-24 Thread Scott Aron Bloom
When I am building DLLs I tend to use an "install step" as part of my cmake process. Then I make sure the builds' install area is in the path of the application. The issue may be your EXE cant find the DLL in its path. Scott -Original Message- From: CMake [mailto:cmake-boun...@cmake.o

[CMake] Need a example to use dll in vs

2016-04-24 Thread Chaos Zhang
Hi all, I faced a problem when i migrate a project from Linux to windows for the visual stdio seem can not use dll directly. I look through a number of material and known i seem should use IMPORTED in add_library(...), but i can not find a practical example about how to use it. Could you please g