[CMake] cmake install qt5 library to Specified directory?

2015-03-10 Thread kl222
Hello all: I thank to install qt5(>=5.3.0) library to sepcified directory. I write: get_target_property(QtCore_location Qt5::Core LOCATION) install(files ${QtCore_location} DESTINATION .) Ok, it is copy /usr/local/Qt-5.5.0/lib/libQt5Core.so.5.5.0 to destination directory, but it don't creat

Re: [CMake] Setting build type

2015-03-10 Thread Adam Getchell
Hello all, You were correct, when CGAL is built it overrides CMAKE_BUILD_TYPE, as documented here: http://doc.cgal.org/latest/Manual/installation.html The solution is to invoke: cmake -DCGAL_DONT_OVERRIDE_CMAKE_FLAGS=True -DCMAKE_BUILD_TYPE=Debug .. Thanks for your help! Adam On Sun, Mar 1

Re: [CMake] Inconsistency with INSTALL(TARGETS) destinations...

2015-03-10 Thread J Decker
> > > And it's mostly wrong, e.g. lib64 is not correct for many systems. If you > want Unix like subdirectories, use the GnuIntallDirs module. > > Better? if( WIN32 ) install( TARGETS MatrixSSL RUNTIME DESTINATION bin LIBRARY DESTINATION bin ARCHIVE DESTINATION lib ) else( WIN32 ) include( G

Re: [CMake] control dependencies in cmake stage

2015-03-10 Thread Mark Abraham
Hi, Sure, this is straightforward to do all at make time, if you're prepared to find out what the names of the generated files are. They must follow some pattern ;-). Solutions with make-time globbing are surely impossible, and Petr's IF idea seems brittle to me. See (for example) https://github.

Re: [CMake] Inconsistency with INSTALL(TARGETS) destinations...

2015-03-10 Thread Hendrik Sattler
Am 10. März 2015 23:33:41 MEZ, schrieb J Decker : >I recently added cmakelists to a library that didn't support cmake. >It started with a simple make system, and was easy to create and use >simple >cmake support. > >I was building using visual studio, and this was my install command > install(

[CMake] Inconsistency with INSTALL(TARGETS) destinations...

2015-03-10 Thread J Decker
I recently added cmakelists to a library that didn't support cmake. It started with a simple make system, and was easy to create and use simple cmake support. I was building using visual studio, and this was my install command install( TARGETS MatrixSSL LIBRARY DESTINATION bin

Re: [CMake] control dependencies in cmake stage

2015-03-10 Thread Tomasz Majchrowski
Hi Peter, Good point. Then it will be possible to manage workflow with pure cmake. Without of using of external scripts. Thanks, Tomasz. 2015-03-10 8:40 GMT+01:00 Petr Kmoch : > Hi Tomasz, > > the if() command also supports this operator: > > if(file1 IS_NEWER_THAN file2) > > Perhaps you coul

Re: [CMake] CMake "permission denied" problem (Windows 7 64-bit, CMake 2.8.1)

2015-03-10 Thread Phil Smith
Well, I finally got around this. I narrowed it down to a step in our build "scaffolding"--the stuff that makes a front-end script be the compiler, do both the C and asm steps. It was doing this, from within CMakeFiles\CmakeTmp: cp CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.o testCCompiler.z

Re: [CMake] Linking to Qt static libraries fails using cmake but not qmake (both OSX and Linux)

2015-03-10 Thread Ghyslain Leclerc
Hi, I have just run into this problem a few weeks ago.  My explanation might not be perfect, but from what I understand, it is related to the fact that the libraries which Qt depends upon have to be available for static linking to your application.  Those dependencies are “magically” brought i

Re: [CMake] Linking to Qt static libraries fails using cmake but not qmake (both OSX and Linux)

2015-03-10 Thread Hendrik Sattler
Hi, that's because qmake uses its some extra files to track the additional libraries that are needed when you link qt statically (.prl IIRC). You are missing these, somehow. Maybe the cmake files from qt5 don't handle this case? HS Am 10. März 2015 18:28:18 MEZ, schrieb paul johnson : >This h

Re: [CMake] control dependencies in cmake stage

2015-03-10 Thread Tomasz Majchrowski
(sorry if you received this message twice) Hi Mark This is the set of C++ source code files. This set will be compiled during the make stage. Ideally will be to move generation to make stage. Unfortunately I don't know the name of the files that will be generated before generation phase occurs.

[CMake] missing bin folder

2015-03-10 Thread Maffei, Chiara
Dear Cmake experts, I am trying to use cmake to build some source code of neuroimaging softwares. however I am facing a quite dramatic issue: after configuration and generation I do have my build folder, but I miss the bin folder inside it, and all build folders result empty. Could you help me

[CMake] Check_library_exists don't found a function in a static library

2015-03-10 Thread victor sv
Hello all, I'm a newbie using CMake and I'm trying to migrate the compilation of a fortran project to CMake. I'm trying to detect the METIS library with find_library(). Inside my FindMETIS.cmake I want to check the existence of some functions to set the library version with: CHECK_LIBRARY_EXISTS

Re: [CMake] control dependencies in cmake stage

2015-03-10 Thread Petr Kmoch
Hi Tomasz, the if() command also supports this operator: if(file1 IS_NEWER_THAN file2) Perhaps you could use this to make it work for you. Petr Per On Tue, Mar 10, 2015 at 7:05 AM, Mark Abraham wrote: > Hi, > > What are you generating that must be done at cmake time? > > Mark > On 09/03/2