Re: [cmake-developers] CMake.app Qt5 vs Qt4 on 10.10

2014-11-03 Thread Williams, Norman K
I¹m trying to build CMake with the Qt Dialog on Ubuntu and it¹s really not working. do I have to do something like add -DQT5Widgets_DIR:PATH=/opt/Qt/5.3/gcc_64/lib/cmake/Qt5Widgets to my CMake build line? On 10/21/14, 11:16 AM, Adam Strzelecki o...@java.pl wrote: Following discussion regarding

[CMake] Can't build using NINJA with ITKDCMTK/ITKIODCMTK turned on.

2014-10-23 Thread Williams, Norman K
A couple of years ago, with massive help from Brad King, I managed to get an embedded ExternalProject build of DCMTK embedded into ITK/Modules/ThirdParty. This was workable, because the CMake dependencies were explicitly set up such that the DCMTK libraries depended on the ExternalProject DCMTK

Re: [CMake] [ITK-dev] Can't build using NINJA with ITKDCMTK/ITKIODCMTK turned on.

2014-10-23 Thread Williams, Norman K
Yeah that¹s the problem right there. I would have no problem with including DCMTK in the distro. On 10/23/14, 1:03 PM, Brad King brad.k...@kitware.com wrote: On 10/23/2014 01:32 PM, Williams, Norman K wrote: it fails immediately because the targets in Modules/IO/DCMTK depend on non-existent

[CMake] find_package issues with ITK and VTK (and SlicerExecution Model)

2014-09-30 Thread Williams, Norman K
This is a problem that has been cropping up in our projects that use ITK, VTK and SlicerExecutionModel. You won’t see it UNLESS you turn on the ITKVTK/ITKVtkGlue modules. The problem is this: if you find packages in this order: find_package(VTK REQUIRED) find_package(ITK REQUIRED) You can’t

[cmake-developers] adding command line flags for CMAKE_MAKE_PROGRAM

2014-07-30 Thread Williams, Norman K
I was trying to get ExternalProjects generated with the Ninja generator to do a better job of handling multiple CPUs and load, so I tried the naïve solution below. I needed to add flags to the program named in CMAKE_MAKE_PROGRAM. This is difficult because CMAKE_MAKE_PROGRAM is a string; I can

[CMake] adding command line flags for CMAKE_MAKE_PROGRAM

2014-07-30 Thread Williams, Norman K
I was trying to get ExternalProjects generated with the Ninja generator to do a better job of handling multiple CPUs and load, so I tried the naïve solution below. I needed to add flags to the program named in CMAKE_MAKE_PROGRAM. This is difficult because CMAKE_MAKE_PROGRAM is a string; I can

Re: [CMake] Using CPack with OSX 10.9

2014-07-29 Thread Williams, Norman K
I would look at how CMake itself is packaged for release. The ‘one executable per App bundle’ is Apple-centric thinking that luckily is not enforced. That isn’t how CMakes (or the OS X Emacs, e.g.) works. You can have whatever you want in an app bundle. It does means that after install, users

[cmake-developers] CMake, Ninja generator, and ExternalProjects

2014-07-25 Thread Williams, Norman K
I’ve been using the Ninja generator on Linux and OS X lately, because it handles command output during parallel builds better. But big ‘SuperBuild’ projects — Slicer being exhibit A — which builds using the CMake ExternalProjects Module, have a couple of annoyances. 1. Since Ninja buffers

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

2014-05-28 Thread Williams, Norman K
Mechanical Engineering Building, University of Alberta, Edmonton, AB On Tue, May 27, 2014 at 12:16 PM, Williams, Norman K norman-k-willi...@uiowa.edu wrote: I took what you did it and cleaned it up a bit, but I ran into the same issue. Strangely, in trying to debug it I ran Œmake VERBOSE=1

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

2014-05-27 Thread Williams, Norman K
I took what you did it and cleaned it up a bit, but I ran into the same issue. Strangely, in trying to debug it I ran Œmake VERBOSE=1¹ and THAT command succeeded where Œmake¹ by itself had that problem with finding the target ¹s¹ I then tried setting CMAKE_VERBOSE_MAKEFILE to ON and same thing,

Re: [CMake] What is the best way to clean up CMakeFiles and CMakeCache.txt if aborting build completely?

2014-01-16 Thread Williams, Norman K
What I remember is that when we started adding 'prevent in-source build' macros a couple years ago, we had this exact complaint. The problem is that the test happens at a particular point in the configuration process that makes it difficult to clean up after. I suspect the CMakeCache.txt is

Re: [CMake] Searching once

2014-01-15 Thread Williams, Norman K
You want the load_cache command: * load_cache: Load in the values from another project's CMake cache. load_cache(pathToCacheFile READ_WITH_PREFIX prefix entry1...) Read the cache and store the requested entries in variables with their name prefixed with the given prefix. This only

Re: [CMake] Testing for a target broke for me

2013-12-12 Thread Williams, Norman K
/NamicExternalProjects -- Kent Williams norman-k-willi...@uiowa.edu On 12/12/13 10:31 AM, Richard Shaw hobbes1...@gmail.com wrote: I've had this working and I don't *THINK* I changed anything that would cause it to fail now but I'm not completely sure. I have a project I converted over to cmake

Re: [CMake] Testing for a target broke for me

2013-12-12 Thread Williams, Norman K
On 12/12/13 2:13 PM, Richard Shaw hobbes1...@gmail.commailto:hobbes1...@gmail.com wrote: Very interesting but not quite what I'm looking for, in this case the main CMakeLists.txt does actually build a project, I just need it to build wxWidgets first. Well it's up to you but 'build X and then

Re: [CMake] How to find/run external host executables when using cross compiling

2013-12-10 Thread Williams, Norman K
This is a case for using the ExternalProject module! You have a top level 'SuperBuild' whose job it is to find all the prerequisites for the actual project build. Then it configures and builds it. This means that the tricky configuration is handled by CMake, instead of working it out yourself

[CMake] Building Matlab MEX files - a solution?

2013-12-09 Thread Williams, Norman K
- # BuildMex.cmake # Author: Kent Williams norman-k-willi...@uiowa.edu include(CMakeParseArguments) if(NOT MATLAB_FOUND) find_package(MATLAB REQUIRED) endif() # CMake 2.8.12 earlier apparently don't define the # Mex script path, so find it. if(NOT MATLAB_MEX_PATH) find_program( MATLAB_MEX_PATH

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

2013-11-20 Thread Williams, Norman K
of ' itkLoadWithMetadataStub.mexmaci64' failed. make[2]: *** [mexFiles/itkLoadWithMetadata.mexmaci64] Error 255 make[1]: *** [mexFiles/CMakeFiles/MEX_BLD.dir/all] Error 2 make: *** [all] Error 2 Compilation exited abnormally with code 2 at Wed Nov 20 09:01:17 -- Kent Williams norman-k-willi...@uiowa.edu

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

2013-11-20 Thread Williams, Norman K
Another thing -- the FindMatlabMex.cmake/UseMatlabMex.cmake stuff in VTK is out of date and broken, and apparently no one uses it or it would have been noticed a long time ago. -- Kent Williams norman-k-willi...@uiowa.edu Notice: This UI Health Care e-mail

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

2013-11-19 Thread Williams, Norman K
})endforeach() But all the IMPORTED_LOCATION for ITK libraries is _lib-NOTFOUND -- Kent Williams norman-k-willi...@uiowa.edu Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510

Re: [CMake] multi core project

2013-11-19 Thread Williams, Norman K
. -- Kent Williams norman-k-willi...@uiowa.edu On 11/19/13 12:31 PM, Arne Pagel a...@pagelnet.de wrote: 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

Re: [CMake] Elegant solution for preprocessing a linker script?

2013-11-07 Thread Williams, Norman K
Why doesn't this work? add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/api.lds MAIN_DEPENDENCY ${CMAKE_CURRENT_SOURCE_DIR}/api.lds.S COMMAND ${CMAKE_C_COMPILER} -E ${CMAKE_CURRENT_SOURCE_DIR}/api.lds.S -P -o ${CMAKE_CURRENT_BINARY_DIR}/api.lds.S) The actual target that needs the

Re: [CMake] ExternalProject_Add examples

2013-10-25 Thread Williams, Norman K
to SuperBuild/External_your_project.cmake and editing it to make it specific to that project. This mostly amounts to setting its dependencies, where to download the source from, and which version to download. -- Kent Williams norman-k-willi...@uiowa.edu On 10/24/13 3:35 AM, Witold E Wolski wewol

Re: [CMake] try_compile() to determine the largest available Fortran integer

2013-10-03 Thread Williams, Norman K
CMake string literals can contain newlines, so the version below is more succinct and easier to read. In this case everything works perfectly. If you have to include strings that look like variables to expand (e.g. ${THIS} ) you have to be careful about using escapes. In that particular case

Re: [CMake] Problems with auto-generated sources

2013-10-01 Thread Williams, Norman K
: file.o $(AR) $(ARFLAGS) libLibfile.a file.o test1 : test.o libLibfile.a cc -o test1 test.o -lLibFile test2 : test.o libLibfile.a cc -o test2 test.o -lLibFile On 10/1/13 6:38 AM, Gregor Jasny gja...@googlemail.com wrote: Hello, On 9/30/13 7:19 PM, Williams, Norman K wrote

Re: [CMake] Possible Bug in Cmake

2013-09-30 Thread Williams, Norman K
arguments: Darwin matches Linux Unknown arguments specified -- Kent Williams norman-k-willi...@uiowa.edu On 9/30/13 11:36 AM, Sumit Adhikari sumit.adhik...@gmail.com wrote: Dear All, if(${CMAKE_SYSTEM_NAME} MATCHES Linux) differs from if(${CMAKE_SYSTEM_NAME} matches Linux

Re: [CMake] Problems with auto-generated sources

2013-09-30 Thread Williams, Norman K
file members in the library define global symbols) [ 50%] Built target LibFile Linking C executable test1 [ 75%] Built target test1 Linking C executable test2 [100%] Built target test2 -- Kent Williams norman-k-willi...@uiowa.edu Notice: This UI Health Care e

Re: [CMake] Problems with auto-generated sources

2013-09-30 Thread Williams, Norman K
throws off the normal course of events in make. Make should see that test1 and test2 both depend on LibFile, and build LibFile once, then build test1 and test2 in parallel. You should log this as a CMake bug. -- Kent Williams norman-k-willi...@uiowa.edu On 9/30/13 12:19 PM, Williams, Norman K

Re: [CMake] Possible Bug in Cmake

2013-09-30 Thread Williams, Norman K
syntactic quirks. Once you understand what they are, it's a very powerful tool for managing large build systems. -- Kent Williams norman-k-willi...@uiowa.edu On 9/30/13 12:13 PM, Sumit Adhikari sumit.adhik...@gmail.com wrote: Thanks. This is scary :( Regards, Sumit On Mon, Sep 30, 2013 at 10

Re: [CMake] List CMake source files for external use

2013-09-25 Thread Williams, Norman K
for building the generated files in the target build system's recipes. If I knew what you were actually trying to do I could make suggestions. -- Kent Williams norman-k-willi...@uiowa.edu On 9/25/13 11:15 AM, Kevin Wojniak kain...@kainjow.com wrote: Hi, been searching for a while

[CMake] Warning in CMake Git HEAD

2013-09-19 Thread Williams, Norman K
'? #define __PARSEDATEL_H ^~ __PARSEDATE_H -- Kent Williams norman-k-willi...@uiowa.edu Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521

Re: [CMake] Warning in CMake Git HEAD

2013-09-19 Thread Williams, Norman K
It is a typo. This is a warning generated by a very recent development head version of CLang I built. It looks like it was added to CMake by Andy Cedilnik in revision 9314bb; It looks like an upstream typo that just happened never to cause a real-world problem. -- Kent Williams norman-k-willi

Re: [CMake] Set CMAKE_LANG_FLAGS_* and overriding

2013-09-17 Thread Williams, Norman K
is an open source project, you can just copy and use these; there are macros in there you can call to check if particular compiler flags to use. -- Kent Williams norman-k-willi...@uiowa.edu On 9/17/13 4:59 AM, Cristian Bidea cri...@king.com wrote: Hi David You have a number of options here: 1

Re: [CMake] ExternalProject and redundant update/configure/compile actions.

2013-09-16 Thread Williams, Norman K
it for people who want to build and use applications using the SuperBuild. Not sure who they are, or if I really should try and bend over backwards to make things easy for them. -- Kent Williams norman-k-willi...@uiowa.edu On 9/16/13 10:03 AM, David Cole dlrd...@aol.com wrote: If you don't want