Re: [CMake] How to recursively copy directories and subdirectories...

2012-02-24 Thread Michael Hertling
On 02/25/2012 03:16 AM, Sumit Kumar wrote: > Hello > > I would like to recursively copy folders/subfolders when I do a make install. > In addition, I would like to copy certain file patterns (typically *.h) files > that may be in these folders. I can do this for individual files (by doing a >

[CMake] How to recursively copy directories and subdirectories...

2012-02-24 Thread Sumit Kumar
Hello I would like to recursively copy folders/subfolders when I do a make install. In addition, I would like to copy certain file patterns (typically *.h) files that may be in these folders. I can do this for individual files (by doing a  glob / glob recurse). However, in doing this I lose th

Re: [CMake] apply for maintainer of FindOpenCL.cmake

2012-02-24 Thread yao wang
Hi, My script now only include AMD's OpenCL finding, and it works for both Windows and Linux. Stefan's script has one step ahead, which enable both AMD and Nvidia's OpenCL finding. And Daniel's script has one more step, which enable AMD, Nvidia and Intel's OpenCL finding. If this script can work on

Re: [CMake] add_executable and extension of source file

2012-02-24 Thread Michael Hertling
On 02/24/2012 06:16 PM, Kris Thielemans wrote: > Hi > > I have a project where I have C++ and C source files. I'm adding executables > for this (via macros) like this > > foreach(executable ${SOURCES}) >add_executable(${executable} ${executable} ) >target_link_libraries(${executable} ${ST

Re: [CMake] Code and API review request for Qt5 CMake files

2012-02-24 Thread Michael Hertling
On 02/24/2012 03:34 PM, Stephen Kelly wrote: > > Just forwarding to the cmake users list. > > > > Stephen Kelly wrote: > >> >> Hi there, >> >> Qt5 generates its own CMake files, which you will be able to use to find >> Qt5 and build with it. >> >> That is, you will port from, eg >> >> find_pac

Re: [CMake] Can't generate Release build in Visual Studio 9

2012-02-24 Thread John Drescher
> 2. Do batch building. I do this option. Look at the cmake --build command > Here is an example of this for one of my current projects (not exactly what I do but close enough): rem configure pushd . cd X:\64Bit\VC.100\Qt\StudyManager cmake X:/CMakeBased/Qt/StudyManager popd rem build the nsis p

Re: [CMake] simplest possible NSIS package

2012-02-24 Thread Clifford Yapp
I'd be up for testing CMake/WiX integration - Windows installers are an ongoing need for BRL-CAD, and WiX looks like an interesting tool. Cheers, Cliff On Fri, Feb 24, 2012 at 11:18 AM, Eric Noulard wrote: > > WiX has been proposed (including a patch) > http://public.kitware.com/Bug/view.php?id=

Re: [CMake] Can't generate Release build in Visual Studio 9

2012-02-24 Thread Michael Jackson
I will thrown my 2 cents in for this. I also use a Command prompt to run CMake on Windows and I generate Visual Studio projects. If I want to do a build and not edit the code I do the following: cmake.exe ../ msbuild /p:Configuration=Release MyProject.sln msbuild /p:Configuration=Release PACKAGE

Re: [CMake] Can't generate Release build in Visual Studio 9

2012-02-24 Thread John Drescher
> The SLN solution contains all possible build-types. The user just have to > select which one they want (i.e. in Visual Studio, not cmake) > Continuing on this subject. The default configuration in Visual Studio is Debug so that is why debug is selected. There are many ways around this: 1. You

Re: [CMake] Can't generate Release build in Visual Studio 9

2012-02-24 Thread Kris Thielemans
Hi Mauricio The SLN solution contains all possible build-types. The user just have to select which one they want (i.e. in Visual Studio, not cmake) Kris > -Original Message- > From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On > Behalf Of Mauricio Klein > Sent: 24 February

[CMake] Can't generate Release build in Visual Studio 9

2012-02-24 Thread Mauricio Klein
Hello fellows! I'm using CMake to compile and CPack to pack my codes. The Linux version is working very well. But now i'm porting the CMakeLists.txt to Windows and i'm having some problems: My main problem is: how can i set the build type in Visual Studio to "Release" instead "Debug"? I've alre

Re: [CMake] Is there a cookbook?

2012-02-24 Thread John Drescher
> but my point > here is that we really need a CMake CookBook or snippet repository. I always > hit the FAQ first, but that /explains/ when what a coder tends to need in > that frame of mind is a living example. Maybe some user committed examples in the wiki just like what has been done for the vt

Re: [CMake] Is there a cookbook?

2012-02-24 Thread Oliver Smith
On 2/23/2012 9:37 PM, John Drescher wrote: You probably want to do some type of file GLOBBING for that Here is an example of file globbing (along with its pitfalls): http://www.cmake.org/pipermail/cmake/2010-September/039558.html I am sorry. It does not look like the code to glob is there. I

[CMake] add_executable and extension of source file

2012-02-24 Thread Kris Thielemans
Hi I have a project where I have C++ and C source files. I'm adding executables for this (via macros) like this foreach(executable ${SOURCES}) add_executable(${executable} ${executable} ) target_link_libraries(${executable} ${STIR_LIBRARIES}) endforeach() where ${SOURCES} is a list of sour

Re: [CMake] simplest possible NSIS package

2012-02-24 Thread Eric Noulard
2012/2/23 Andrea Crotti : > On 02/23/2012 04:48 PM, John Drescher wrote: >>> >>> Just to make you laugh I found the source of the problem. >>> Apparently if you try to run an installer from a directory which is on a >>> shared directory (with the virtualbox >>> sharing) it just won't run :D >>> >>>

Re: [CMake] lexical scoping ... back to the future !

2012-02-24 Thread aaron . meadows
Very fascinating! I've similarly had to deal with spiraling dependencies in our local code. I had two thoughts toward the problems you mentioned below. To handle unique naming of temporaries, you could do something like introduce a counter (probably as a global property) and append it to your

Re: [CMake] Code and API review request for Qt5 CMake files

2012-02-24 Thread Stephen Kelly
Just forwarding to the cmake users list. Stephen Kelly wrote: > > Hi there, > > Qt5 generates its own CMake files, which you will be able to use to find > Qt5 and build with it. > > That is, you will port from, eg > > find_package(Qt4 REQUIRED Core Gui Xml) > > to > > find_package(Qt5Wid

Re: [CMake] mingw vs MSYS makefiles

2012-02-24 Thread Bill Hoffman
On 2/24/2012 5:25 AM, Andrea Crotti wrote: Ideally yes, unfortunately it's not really possible to avoid the python call, without rewriting a lot of code in CMake/C (which is not a good idea). I will check what is the requirement, if the MinGW make is fine then I'll just use that otherwise I'll

Re: [CMake] apply for maintainer of FindOpenCL.cmake

2012-02-24 Thread Sergiu Dotenco
On 24.02.2012 11:11, Daniel Dekkers wrote: > It would be nice to have an OpenCL find module. But it should include easy > access to the Intel and NVIDIA libraries as well, I think, not just AMD. And > what about the different OpenCL versions? And does it work on Mac OS as well? > Finding the Ope

Re: [CMake] apply for maintainer of FindOpenCL.cmake

2012-02-24 Thread Stefan Fendt
Hi, It would be nice to have an OpenCL find module. But it should include easy access to the Intel and NVIDIA libraries as well, I think, not just AMD. I'm not an CMake-expert... but maybe my variant of a FindOpenCL.cmake might be of some use for someone... best regards Stefan Fendt # =

Re: [CMake] mingw vs MSYS makefiles

2012-02-24 Thread Andrea Crotti
On 02/23/2012 10:55 PM, Bill Hoffman wrote: On 2/23/2012 6:20 AM, Andrea Crotti wrote: I don't think anyone really addressed your question. Your question seems to have taken on a whole new life The problem seems to be that your cmake file is creating makefiles that use a python progr

Re: [CMake] apply for maintainer of FindOpenCL.cmake

2012-02-24 Thread Daniel Dekkers
It would be nice to have an OpenCL find module. But it should include easy access to the Intel and NVIDIA libraries as well, I think, not just AMD. And what about the different OpenCL versions? And does it work on Mac OS as well? Finding the OpenCL framework? Daniel Op 24 feb. 2012 om 06:00 he

Re: [CMake] apply for maintainer of FindOpenCL.cmake

2012-02-24 Thread Michael Wild
On 02/24/2012 10:52 AM, yao wang wrote: > Hi, > We've written a module finding AMD's APP SDK's "include" abd "library" > paths. And set "OPENCL_INCLUDE_DIR" and "OPENCL_LIBRARY", which are > useful for compiling OpenCL programs. Is it possible for me to > contribute to the share modules and make i

[CMake] apply for maintainer of FindOpenCL.cmake

2012-02-24 Thread yao wang
Hi, We've written a module finding AMD's APP SDK's "include" abd "library" paths. And set "OPENCL_INCLUDE_DIR" and "OPENCL_LIBRARY", which are useful for compiling OpenCL programs. Is it possible for me to contribute to the share modules and make it included in next release? Thanks! -- Powered b