Re: [CMake] What do Visual Studio users do so they can run/debug their programs when using 3rd party .dlls?

2014-05-23 Thread Michael Jackson
Eric, For my project I ran into the same problems (http://www.github.com/dream3d/DREAM3D) and I chose to solve the issues by having CMake setup custom build rules to copy the DLLs into the appropriate Debug or Release directory for what I am building. I do this because simply adding the dire

Re: [CMake] What do Visual Studio users do so they can run/debug their programs when using 3rd party .dlls?

2014-05-23 Thread J Decker
INCLUDE(InstallRequiredSystemLibraries) INSTALL( FILES ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} DESTINATION ${BINARY_OUTPUT_DIR} ) but that doesn't cover third party libraries; which should be in the path anyway. Oh; but that's install... so I don't use projects to run, I set the debug properties of

Re: [CMake] What do Visual Studio users do so they can run/debug their programs when using 3rd party .dlls?

2014-05-23 Thread Eric Wing
On 5/23/14, Dan Kegel wrote: > On Fri, May 23, 2014 at 4:38 PM, Eric Wing wrote: >> On 5/23/14, Dan Kegel wrote: >>> You can add the directory containing the 3rd party DLLs to the global >>> PATH environment variable, I bet. >> >> ... I just want a >> work-out-of-the-box solution with CMake doin

Re: [CMake] What do Visual Studio users do so they can run/debug their programs when using 3rd party .dlls?

2014-05-23 Thread Dan Kegel
On Fri, May 23, 2014 at 4:38 PM, Eric Wing wrote: > On 5/23/14, Dan Kegel wrote: >> You can add the directory containing the 3rd party DLLs to the global >> PATH environment variable, I bet. > > ... I just want a > work-out-of-the-box solution with CMake doing local copies. So... copy the DLLs t

Re: [CMake] What do Visual Studio users do so they can run/debug their programs when using 3rd party .dlls?

2014-05-23 Thread Eric Wing
On 5/23/14, Dan Kegel wrote: > You can add the directory containing the 3rd party DLLs to the global > PATH environment variable, I bet. So I'm looking for a CMake way to deal with this. I don't want to change the system environment. My stuff is highly distributed among lots of different people a

Re: [CMake] What do Visual Studio users do so they can run/debug their programs when using 3rd party .dlls?

2014-05-23 Thread Dan Kegel
You can add the directory containing the 3rd party DLLs to the global PATH environment variable, I bet. As for how to ship the Microsoft DLLs, http://msdn.microsoft.com/en-us/library/ms235299.aspx might be a good place to start reading? - Dan -- Powered by www.kitware.com Please keep messages o

[CMake] What do Visual Studio users do so they can run/debug their programs when using 3rd party .dlls?

2014-05-23 Thread Eric Wing
My project has lots of 3rd party .dlls. I can build my project just fine with CMake/Visual Studio. But when I try to debug/run within Visual Studio, it fails because my 3rd party .dlls are not in the same directory as where VS generated the .exe. I know I can manually copy all my .dlls and put the

Re: [CMake] Running tests that depends on third-party DLL

2014-05-23 Thread Scott Aron Bloom
I just ran into this exact problem. For me it was the TCL shared library, the technique I used worked fine for windows and linux. Im not sure about OSX since you are running fixup_bundle.. I also used an ADD_CUSTOM_COMMAND, but I simply did a copy of the shared library, and copied it into the

[CMake] Mac @loader_path for @rpath questions

2014-05-23 Thread Eric Wing
I have a bunch of libraries and frameworks that properly use @rpath. Now I am trying to build an application that uses those library and frameworks via CMake. >From this blog: http://www.kitware.com/blog/home/post/510 I see I am supposed to do: set(CMAKE_MACOSX_RPATH 1) set_target_properties(bar P

[CMake] ExternalPackage_Add with Non-CMake project that runs differently then equivalent shell script

2014-05-23 Thread Chad Balen
Hello, I'm trying to install an Metis as an external package to our software and I'm having some issues. The typical shell script that I ran before to install Metis was: $ make config shared=1 prefix=/path/to/installation $ make $ make install So I tried to use the following in the ExternalPacka

[CMake] Running tests that depends on third-party DLL

2014-05-23 Thread Alexander Lamaison
What is the best way to make tests that depend on a third-party DLL (found through `find_package`) work when run from the RUN_TESTS target? This scenario must be common so I surprised how hard it seems to be to get it to work. Let's say I have a library project that depends on OpenSSL (just an ex

Re: [CMake] cdash/ctest multi test reports

2014-05-23 Thread Burlen Loring
On 05/22/2014 02:34 PM, David Cole wrote: Where there's a will, there's a way... Lucky for you CDash is open source. :-) :-), OK, thanks Dave -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various

[CMake] [ANNOUNCE] CMake 3.0-rc6 now ready for testing!

2014-05-23 Thread Robert Maynard
I am proud to announce the CMake 3.0 sixth and hopefully last release candidate. Sources and binaries are available at: http://www.cmake.org/files/v3.0/?C=M;O=D Documentation is available at: http://www.cmake.org/cmake/help/v3.0 Release notes appear below and are also published at http://w

[CMake] Missing Qt4 plugins

2014-05-23 Thread Mathieu MARACHE
I have filled a issue in CMake's bugtraker http://public.kitware.com/Bug/view.php?id=14930 FindQt4.cmake is missing some platform dependent bearer plugins and the qtga image format plugin. By setting them like this : set( QT_BEARER_PLUGINS qcorewlanbearer qgenericbearer qnativewifibearer qconnma

[CMake] QT4_CREATE_TRANSLATION cannont fill my *.ts files

2014-05-23 Thread Sergio Vera
Hello fellow CMakers I'm following the CMake guide to Qt based internationalization of my app: http://www.cmake.org/Wiki/CMake:How_To_Build_Qt4_Software However, After many attempts I cannot generate the proper files: Here is an digest of my CMakeLists.txt FILE(GLOB INCLUDE_FILES *.h) FILE(GLOB

[CMake] ANN: CMake Course - June 20 in Lyon, France

2014-05-23 Thread Julien Jomier
Kitware will be holding a CMake training course on June 20, 2014 in Lyon, France. This one-day course will cover CMake, CTest, CPack and CDash. Visit our website for more information and registration details (early registration ends next week): http://training.kitware.fr/browse/66 Note th