[CMake] Need a example to use dll in vs

Scott Aron Bloom scott at towel42.com
Mon Apr 25 01:16:57 EDT 2016


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-bounces at cmake.org] On Behalf Of Chaos Zhang
Sent: Sunday, April 24, 2016 8:14 PM
To: cmake at cmake.org
Subject: [CMake] Need a example to use dll in vs

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 give me one or some? BTW the dll lib seem could be used in Mingw makefile on windows.

Thanks,
Chao Zhang



--
View this message in context: http://cmake.3232098.n2.nabble.com/Need-a-example-to-use-dll-in-vs-tp7593331.html
Sent from the CMake mailing list archive at Nabble.com.
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


More information about the CMake mailing list