[CMake] Adding external executable
Manoj Vaghela
manoj.vaghela at gmail.com
Fri Nov 9 02:13:57 EST 2012
Hi cmake,
I have just started learning use of CPack for my application.
I have an application which uses Qt and other third party libraries.
In CMakeLists.txt,
For adding libraries of external package, I used
INSTALL( FILES Lib1 lib2 DESTINATION ${INSTALL_DIR} )
For installing target generated from this CMakeLists.txt,
INSTALL( TARGETS ${EXECUTABLE_NAME} DESTINATION ${INSTALL_DIR} )
Here, while installing TARGETS, I want to add an executable of external
package.
When I included it with the above INSTALL, it says that "install TARGETS
given target "some/path/exe" which does not exist in this directory."
I want to do it without copying in to the CMakeLists.txt folder. Is there
any other way?
Also, can somebody throw some light on while making package, which type of
libraries should I include ?? SHARED or STATIC ??
Please guide.
Thank you.
--
regards,
Manoj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121109/b1b0301f/attachment.htm>
More information about the CMake
mailing list