[CMake] Copying Files on Windows

Mike Jackson mike.jackson at imts.us
Tue Dec 12 12:54:39 EST 2006


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.. 

Any more ideas?

Mike



-----Original Message-----
From:	cmake-bounces+mike.jackson=imts.us at cmake.org on behalf of David Cole
Sent:	Tue 12/12/2006 12:36 PM
To:	Christian Ehrlicher
Cc:	cmake at cmake.org
Subject:	Re: [CMake] Copying Files on Windows

Are they really named ".dylib"...? They shouldn't be under a mingw build...
.dylib is a Mac specific file name extension, isn't it?

On 12/12/06, Christian Ehrlicher <Ch.Ehrlicher at gmx.de> wrote:
>
> Mike Jackson schrieb:
> > There is if I BUILT them. And yes they are in the location specified.
> >
> > I need to copy the libraries so I can have an operational Qt/MinGW based
> Application. The systems that I am deploying to are very tightly locked down
> windows XP systems. The users only have write permissions on a "D:" drive
> and they do not generally have the know how to change their environment
> variables. They just want an App where they double click the .exe file and
> go.
> >
> > Qt provides me with my cross platform GUI toolkit so I need to copy the
> dlls from the location they were built at into the binary directory so I can
> just pack up the binary directory and be down with it.
> >
> Sounds like a task for cpack...
>
> Christian
>
>
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
>
>









More information about the CMake mailing list