[CMake] Copying Files on Windows

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Tue Dec 12 12:55:19 EST 2006


Mike Jackson schrieb:
> Wow.. couldn't see the forest for the trees on that one.. So I changed the Cmake code a bit.. 
>  #-- If we are on MinGW then copy the required libraries
>  IF (MINGW)
>  	#=== Copy in the Qt Libs===
>  	SET (QTLIBS 
>  		libQtCore4.dll
>  		libQtGui4.dll
>  	)
>   FOREACH (depLib ${QTLIBS})
>  	 	ADD_CUSTOM_COMMAND (
>   			TARGET A2BinGui
>   			POST_BUILD
>   			COMMAND ${CMAKE_COMMAND}
>   			ARGS -E copy ${QT_LIBRARY_DIR}/${depLib} "${EXECUTABLE_OUTPUT_PATH}/"
>   	)
>   ENDFOREACH (depLib)	
>  ENDIF (MINGW)
> 
> but I still get the same error.
> Error copying file "C:/Developer/SDKs/qt-4.2.2/lib/libQtCore4.dll" to "C:/Workspace/a2bin/Build/Bin/"
> 
> I have verified that the initial file is where the path says it is.. 
> 
No - there is also no libQtCore4.dll on windows... why don't you use the
cmake vars for this as I asked earlier?

Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20061212/a40ee1f2/signature.pgp


More information about the CMake mailing list