[CMake] Problem in ADD_CUSTOM_COMMAND
Malhotra, Anupam
Anupam.Malhotra at Safenet-inc.com
Fri Feb 8 06:31:26 EST 2008
Hi
I am using ADD_CUSTOM_COMMAND to copy a library after it is build. But
the copy is giving an error. Below is the snippet from my CMakeLists.txt
file. Please advise.
...
...
ADD_LIBRARY(vpcl "vpcl_dataconversion.c" "vpcl_datetime.c"
"vpcl_string.c" "vpcl_sharedlib.c" "vpcl_platformabs.c"
"vpcl_misc.c" "vpcl_memallocdbg.c" "vpcl_list.c" "vpcl_fileio.c"
"vpcl_datetimeutil.c" )
GET_TARGET_PROPERTY(vpcl_path vpcl LOCATION)
MESSAGE (STATUS "Value of vpcl path is ${vpcl_path}")
SET(CMAKE_COMMAND "copy \"${vpcl_path}\" \"${PROJECT_SOURCE_DIR}\"")
ADD_CUSTOM_COMMAND(TARGET vpcl POST_BUILD COMMAND ${CMAKE_COMMAND}
VERBATIM)
...
Thanks and Regards
Anupam Malhotra
The information contained in this electronic mail transmission
may be privileged and confidential, and therefore, protected
from disclosure. If you have received this communication in
error, please notify us immediately by replying to this
message and deleting it from your computer without copying
or disclosing it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20080208/e43c5252/attachment.htm
More information about the CMake
mailing list