Re: [CMake] [Insight-developers] [ITK Community] Building Matlab Mex extensions that link to ITK?

2013-11-19 Thread Tom Vercauteren
Hi Kent, A long time ago, I also submitted a patch to cmake to support mex file creation: http://public.kitware.com/Bug/view.php?id=8207 It might have been pushed one step further in gerardus: https://code.google.com/p/gerardus/source/browse/trunk/matlab/MatlabMakeMacros.cmake It's closely relat

[CMake] Issue with copy_directoru command

2013-11-19 Thread David Bariod
Hello, While using the ExternalProject module, I've found an issue with the copy_directory command. It seems the copy won't happen completely if somewhere in the tree there is a symbolic link whose target does not exist. Is it a known problem or should I open a bug report somewhere ? Best regards

[CMake] CPACK_COMPONENT__DEPENDS doesn't work

2013-11-19 Thread jeff
Hello CMake group, I'm trying to do a component-based install that will produce multiple packages, where one package depends on another. I am using cmake version 2.8.12.1. Have multiple packages working well but the dependencies have not been easy. The variable CPACK_COMPONENT__DEPENDS, given by

[CMake] Compiling with openmpi installed from macports

2013-11-19 Thread Martin Pierre Hautefeuille
Dear all, I am trying to compile a piece of code, developed on Linux, on a Darwin system. I am using macports as a package manager with which I have installed openmpi. It seems that for some reasons, the mpi c compiler is not called mpicc when installed with macports but called openmpicc instea

Re: [CMake] building a library named 'general'

2013-11-19 Thread Matthew Woehlke
On 2013-11-19 19:07, Michael DiCuccio wrote: Suppose you have a library named general: - add_library(general foo bar) - and then try to link it into an application: - add_executable(myapp baz) target_link_libraries(myapp general) - cmake complains about the fact that 'gener

[CMake] building a library named 'general'

2013-11-19 Thread Michael DiCuccio
Hi! I've come across an odd conundrum and need a little help resolving it. I'm porting a large toolkit to use CMake instead of an autoconf / configure-based makefile system. One problem we tripped across is a library named 'libgeneral.so', built as part of the toolkit itself. The trouble is tha

[CMake] externalproject_add and make -j >2 errors

2013-11-19 Thread Witold E Wolski
when I build the project with cmake ../project make it builds as soon as I am using make -j 2 or greater files within the project are being build before adding the dependencies finished Maybe also someone can also give hint how to speed up or avoid the update step, configure and build step on e

Re: [CMake] multi core project

2013-11-19 Thread Williams, Norman K
Add this: set(proj CORE0) ExternalProject_Add_Step(${proj} forcebuild COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_CURRENT_BUILD_DIR}/${proj}-prefix/src/${proj}-stamp/${proj}-build DEPENDEES configure DEPENDERS build ALWAYS 1 ) ExternalProject keeps track of project phases based on 'st

Re: [CMake] multi core project

2013-11-19 Thread Arne Pagel
Dear all, I just tried to use the ExternalProject_Add for this multicore project, having different separate camke projects for each core Now I have 2 Problems: 1.) with the ExternalProject_Add and a given source dir it seams that my external projects are not rebuild if I made some changes ther

[CMake] Building Matlab Mex extensions that link to ITK?

2013-11-19 Thread Williams, Norman K
Has anyone else come up with an elegant solution for this? If I want to call ITK from a Matlab MEX extension written in C++, I run into problems with telling it the libraries with which to link. The ITK_LIBRARIES variable is a list of imported library targets which CMake converts to actual librar

Re: [CMake] Select the Visual C++ Compiler November 2013 CTP with CMake generated projects?

2013-11-19 Thread Thompson, K T
That did the trick. Thank you. I was looking to set the Toolset from within the GUI, but it doesn't appear that CMake current supports this operation. -kt From: Petr Kmoch [mailto:petr.km...@gmail.com] Sent: Tuesday, November 19, 2013 9:28 AM To: Thompson, K T Cc: cmake@cmake.org Subject: Re:

Re: [CMake] Select the Visual C++ Compiler November 2013 CTP with CMake generated projects?

2013-11-19 Thread Petr Kmoch
Hi Kelly. This should be possible using CMake's command-line option -T which specifies the toolset to use. Petr On Tue, Nov 19, 2013 at 4:41 PM, Thompson, K T wrote: > Hi, > > Is there a way to tell CMake to generate Visual Studio 2013 projects that > use the November 2013 CTP version of the

[CMake] Select the Visual C++ Compiler November 2013 CTP with CMake generated projects?

2013-11-19 Thread Thompson, K T
Hi, Is there a way to tell CMake to generate Visual Studio 2013 projects that use the November 2013 CTP version of the compiler [1]? It looks like I can modify each project in my VS solution manually [2] but this is not particularly convenient when CMake is used to generate the solution files.

[CMake] Stripping debug information of shared libraries on install/packaging

2013-11-19 Thread Stefan Peters
Hello, I am using cmake on a Qt project and we're using google-breakpad for crash reporting. Therefore I am making release builds with debug information which are extracted later by the breakpad tools. Works fine, but I still have one problem on linux. On packaging the debug information are o