I am creating a visual studio project in C++ using CMake to show how to use a DLL (This is our SDK so the codes are samples for the dll)
What I have at the moment, is to document to users that they need to manually copy the DLL to the debug/release directory of sample application so they can be found by sample applications.
I am wondering how I can add a file to a Visual Studio project in a way that the file is copied to output directory during build process.
the directory structure is as follow
MySDK\
CMakeLists.txt
src\
main.cpp
sdkDLL\
MYSDK.DLL
and I am building the project in a build directory, so after I build a project with CMake, I should have a new directory called build in the root directory as follow: MySDK\ build\ MyProject.sln
at this stage there no debug or release folder, so I can not copy the dlls to them using CMake, it should be done using VS as part of the build.