Seems, there is no easy way. You can use the hack
http://stackoverflow.com/questions/7658694/how-to-tell-cmake-that-install-directory-depends-on-phony-target
.
2012/9/7 Totte Karlsson
> Hi,
> I have a c++ library with some wrappers.
> The wrappers are in two folders ./Wrappers/C and ./Wrappers/
Example:
add_library(lib1 SHARED IMPORTED)
add_library(lib2 SHARED IMPORTED)
...
add_executable(program sources)
target_link_libraries(program lib1 lib2 ...)
I want to make the libraries has been copied to program output path. Does
exist an easy way to realize it?
--
Valentin Sarychev
Software
I have several C++ projects (library, tests, examples) for Linux and
Windows. This projects are generated by CMake (Makefile for Linux, *.vcproj
for Windows MS Visual Studio). And I have C++/CLI (C++ library wrapper) and
C# projects (tests, examples). This projects are written in MS Visual
Studio a