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

2016-04-25 Thread Chaos Zhang
Jakob van Bethlehem wrote > Hej, > > You really should provide more detailed information about your project > structure, and what is going wrong. There are some subtle differences > between Linux/Windows, but not at the level you're referring to. Certainly > the IMPORTED property has nothing to

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

2016-04-25 Thread Jakob van Bethlehem
Hej, You really should provide more detailed information about your project structure, and what is going wrong. There are some subtle differences between Linux/Windows, but not at the level you're referring to. Certainly the IMPORTED property has nothing to do with a platform distinction.

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

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

[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