Re: [CMake] Ninja generator is Linux-only?

2012-05-15 Thread Michael Jackson
There was a long discussion about the limitations of ninja on each platform on the mailing list just before the last release. That is where the decisions were made to limit ninja to Linux only at this point. That last thread was on April 17, 2012 with the title Re: [CMake] CMake Ninja

[CMake] Passing back list of files from Function

2012-05-11 Thread Michael Jackson
I have a function where I am generating a number of files and I need to pass that list of files back to the original calling cmake command/file/scope. How would I go about that? function(create_files) set(options) set(multiValueArgs GENERATED_HEADERS) cmake_parse_arguments( WIG

Re: [CMake] Passing back list of files from Function

2012-05-11 Thread Michael Jackson
Thanks. Worked. -- Mike Jackson www.bluequartz.net On May 11, 2012, at 3:40 PM, Alexander Neundorf wrote: On Friday 11 May 2012, Michael Jackson wrote: I have a function where I am generating a number of files and I need to pass that list of files back to the original calling cmake

Re: [CMake] [Boost-users] link error in Visual Studio when using boost from CMake

2012-05-01 Thread Michael Jackson
On May 1, 2012, at 11:37 AM, Mourad Boufarguine wrote: On Tue, May 1, 2012 at 9:10 AM, Rolf Eike Beer e...@sf-mail.de wrote: On Di., 1. Mai. 2012 00:20:58 CEST, Mourad Boufarguine mou...@boufarguine.name wrote: Hi, add this : link_directories(${Boost_LIBRARY_DIRS}) after

Re: [CMake] CMake 2.8.8-RC2 with Mac OS X 10.7.3 Xcode 4.3.2

2012-04-17 Thread Michael Jackson
You may want to take a very detailed look at the command line arguments that Xcode is passing to the compiler. There you can pick apart all the include paths that are being passed to the compiler and you will probably find that /usr/include/boost is missing. Why it is missing is still unknown

Re: [CMake] Architecture problem on OSX+Qt deployment

2012-04-13 Thread Michael Jackson
The unknown load command is because who ever built the Qt libraries did not set the Deployment Target to 10.5. Which is causing the failure. Also printed on the Download page for Qt (qt-project.org) is the following under the system requirements. -- 64-bit Apple Mac OS X 10.6 or later with

Re: [CMake] Can't link Qt libraries CMake 2.8.7 + OSX 10.5 + Qt 4.8.1

2012-03-30 Thread Michael Jackson
The error is this: ld warning: in /Library/Frameworks//QtGui.framework/QtGui, file is not of required architecture Your program is compiling for one architecture but the Qt libs are compiled for another. My guess is that you are default compiling for 32 bit (since that is the default under

Re: [CMake] Can't link Qt libraries CMake 2.8.7 + OSX 10.5 + Qt 4.8.1

2012-03-30 Thread Michael Jackson
,-headerpad_max_install_names CMakeFiles/QtTest.dir/main.cpp.o CMakeFiles/QtTest.dir/mainwindow.cpp.o CMakeFiles/QtTest.dir/moc_mainwindow.cxx.o -o QtTest.app/Contents/MacOS/QtTest -framework QtGui -framework QtCore 2012/3/30 Michael Jackson mike.jack...@bluequartz.net The error is this: ld

Re: [CMake] OS X Icon file

2012-03-09 Thread Michael Jackson
SET_SOURCE_FILES_PROPERTIES(${ICON_FILE_PATH} PROPERTIES MACOSX_PACKAGE_LOCATION Resources) -- Mike Jackson www.bluequartz.net On Mar 9, 2012, at 3:46 PM, Chuck Theobald wrote: Hello all, How do I specify that my icon file (.icns) be installed to the correct

Re: [CMake] Forcibly run 'moc' on Qt files that are NOT part of the build

2012-03-08 Thread Michael Jackson
On Thu, Mar 8, 2012 at 11:30 AM, Andreas Pakulat ap...@gmx.de wrote: On 08.03.12 09:50:55, Michael Jackson wrote: On Mar 7, 2012, at 11:43 AM, Andreas Pakulat wrote: On 07.03.12 10:10:27, Michael Jackson wrote: In an effort to speed up the build of a project that uses Qt (and moc) I

Re: [CMake] Automatically add a revision number to the CPack installer name

2012-03-08 Thread Michael Jackson
I do something like this in my CPack file: set(DREAM3D_VERSION_SHORT ${DREAM3DLib_VER_MAJOR}.${DREAM3DLib_VER_MINOR}) set(CPACK_PACKAGE_FILE_NAME DREAM3D-${DREAM3D_VERSION_SHORT}-${CMAKE_SYSTEM_NAME}) Where the DREAM3D_Lib_VER_* variables are generated with a call to my SCM (git in my case)

Re: [CMake] Automatically add a revision number to the CPack installer name

2012-03-08 Thread Michael Jackson
. -- Mike Jackson www.bluequartz.net On Mar 8, 2012, at 4:44 PM, Glenn Ramsey wrote: Hi Mike, When, during the build process is the call to the SCM made? If it is at build time, rather than cmake time, then how do you do it? Glenn On 09/03/12 10:15, Michael Jackson wrote: I do something

Re: [CMake] CMake configuration times with Microsoft Visual C++

2012-03-07 Thread Michael Jackson
On Mar 6, 2012, at 9:45 PM, Bill Hoffman wrote: On 3/6/2012 9:09 PM, Clifford Yapp wrote: We use the same configuration tests on all platforms in an effort to avoid having large chunks of platform-specific code in our build files, but we pay a price for this on Windows - the same test process

[CMake] Forcibly run 'moc' on Qt files that are NOT part of the build

2012-03-07 Thread Michael Jackson
In an effort to speed up the build of a project that uses Qt (and moc) I tried an alternate approach with the moc files. Normally I use the basic idea of gathering the headers that need to be moc'ed and feed those to moc with this type of CMake Code: QT4_WRAP_CPP(

Re: [CMake] Forcibly run 'moc' on Qt files that are NOT part of the build

2012-03-07 Thread Michael Jackson
On Mar 7, 2012, at 10:50 AM, Michael Hertling wrote: On 03/07/2012 04:10 PM, Michael Jackson wrote: In an effort to speed up the build of a project that uses Qt (and moc) I tried an alternate approach with the moc files. Normally I use the basic idea of gathering the headers that need

Re: [CMake] Forcibly run 'moc' on Qt files that are NOT part of the build

2012-03-07 Thread Michael Jackson
On Mar 7, 2012, at 12:05 PM, Michael Wild wrote: On 03/07/2012 04:10 PM, Michael Jackson wrote: In an effort to speed up the build of a project that uses Qt (and moc) I tried an alternate approach with the moc files. Normally I use the basic idea of gathering the headers that need

Re: [CMake] Ninja + CMake on a dashboard?

2012-03-06 Thread Michael Jackson
On Mar 6, 2012, at 2:41 PM, Andreas Pakulat wrote: On 06.03.12 18:47:05, Peter Collingbourne wrote: On Tue, Mar 06, 2012 at 07:09:03PM +0100, Andreas Pakulat wrote: On 06.03.12 17:10:41, Peter Collingbourne wrote: On Tue, Mar 06, 2012 at 10:41:19AM -0500, David Cole wrote: 2 things I'd like

Re: [CMake] Copying Files into build-dir under Visual Studio vs. Codeblocks/Win32 vs. Codeblocks/Linux

2012-02-10 Thread Michael Jackson
Specifically on point b below. I configure a header file with the location of each input file. That header file is then used in the unit tests as the path to the file. That way it works for anyone in any directory on any operating system. // Example Input header file namespace Test1 { const

Re: [CMake] How to use CMake with icc via configuration options when needing interprocedural optimization?

2012-02-07 Thread Michael Jackson
Not sure that is really going to work because by the time CMake has parsed your option code the compiler (and who knows how many other internal variables) has already been set. -- Mike Jackson www.bluequartz.net On Feb 7, 2012, at 8:43 AM, janitor 048 wrote: Hello, this is a question I

Re: [CMake] fixup_bundle already-fixed-up dependencies

2012-01-24 Thread Michael Jackson
I think you need to feed BundleUtilities another argument that lists where to find the ogre frameworks. I think. ___ Mike JacksonPrincipal Software Engineer BlueQuartz SoftwareDayton, Ohio

Re: [CMake] User configuration files for Visual Studio

2012-01-11 Thread Michael Jackson
In light of the current topic about copying 3rd Party DLLs into the build directory on Visual Studio one suggestion was to create this type of file. With that in mind I am now interested in this feature. Would make a nice addition and help those of us who do 32/64 dev all on the same machine

Re: [CMake] Copying of 3rd party DLLs in a POST-BUILD step

2012-01-10 Thread Michael Jackson
I am VERY interested in how you did this. Did you have CMake write a file for you? Do you have some code to share by any chance? Thanks -- Mike Jackson www.bluequartz.net On Jan 10, 2012, at 3:17 PM, Ben Medina wrote: I'd guess the performance of fixup_bundle will be a big pitfall if you're

Re: [CMake] Copying of 3rd party DLLs in a POST-BUILD step

2012-01-09 Thread Michael Jackson
I was going to chime in with my own macro: # #-- Copy all the Qt4 dependent DLLs into the current build directory so that #-- one can debug an application or library that depends on Qt4 libraries. macro

[CMake] FindQt4 with Official Nokia install

2012-01-09 Thread Michael Jackson
I am having an issue with my project compiling against the Official Nokia Qt4 downloaded from Nokia. The issue (I think) is that for some reason when FindQt4 is running it determines that QT_USE_FRAMEWORKS is false and so I don't get all of the proper include directories. Namely the

Re: [CMake] FindQt4 with Official Nokia install

2012-01-09 Thread Michael Jackson
: On Monday, January 09, 2012 11:26:15 am Michael Jackson wrote: I am having an issue with my project compiling against the Official Nokia Qt4 downloaded from Nokia. The issue (I think) is that for some reason when FindQt4 is running it determines that QT_USE_FRAMEWORKS is false and so I don't get

Re: [CMake] FindQt4 with Official Nokia install

2012-01-09 Thread Michael Jackson
...@bluequartz.net www.bluequartz.net On Jan 9, 2012, at 2:10 PM, Clinton Stimpson wrote: On Monday, January 09, 2012 11:26:15 am Michael Jackson wrote: I am having an issue with my project compiling against the Official Nokia Qt4 downloaded from Nokia. The issue (I think) is that for some

Re: [CMake] Some issues with visual studio

2012-01-08 Thread Michael Jackson
This is going to sound either harsh or flame bait but is written in all seriousness and with a lot of practical experience. When coming from a makefile based system like Unix and going to Visual Studio there are a few things you need to give up on (In my opinion). Visual Studio (And Xcode)

Re: [CMake] Interrupt problems in cmake-gui

2012-01-06 Thread Michael Jackson
In addition the issue is with the Qt base GUI and Qt has all the APIs necessary to accomplish what you need. There is no need for boost to fix the problem. - Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software

Re: [CMake] DeployQt4 example

2012-01-05 Thread Michael Jackson
On Jan 5, 2012, at 11:30 AM, James Sutherland wrote: On Wed, Jan 4, 2012 at 2:28 AM, noru...@me.com wrote: Does anyone have a working example for the new DeployQt4 module? I was just looking for the same thing and found this:

[CMake] Add Custom COmmand and CMAKE_CFG_INTDIR

2012-01-04 Thread Michael Jackson
I am having trouble getting add_custom_Command and CMAKE_CFG_INTDIR to work correctly together. This is what I have so far. # -- Setup output Directories - SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/Bin CACHE PATH Single Directory for all

Re: [CMake] Add Custom COmmand and CMAKE_CFG_INTDIR

2012-01-04 Thread Michael Jackson
www.bluequartz.net On Jan 4, 2012, at 3:54 PM, clin...@elemtech.com wrote: Have you tried excluding the .exe thing? I thought cmake did the right thing for targets used in custom commands. Clint - Reply message - From: Michael Jackson mike.jack...@bluequartz.net Date: Wed, Jan

Re: [CMake] Add Custom COmmand and CMAKE_CFG_INTDIR

2012-01-04 Thread Michael Jackson
Thanks! The definitely fixed the issue for ALL the platforms. I guess I just have not been keeping up with all the additions to CMake. At what version was this syntax introduced? -- Mike Jackson www.bluequartz.net On Jan 4, 2012, at 4:11 PM, Bill Hoffman wrote: On 1/4/2012 4:03 PM, Michael

Re: [CMake] help texts

2011-12-08 Thread Michael Jackson
On Thursday, December 8, 2011, Michael Wild them...@gmail.com wrote: On 12/08/2011 10:35 AM, Rolf Eike Beer wrote: words, the markers are doubled, e.g. **bold words**. * lists formatting. E.g: - bullet list * another bullet item ** nested bullet list *** deeply nested list How

Re: [CMake] Build doesn't work with Mac OS X Lion...

2011-12-08 Thread Michael Jackson
in a standard Xcode setting (armv7 (standard)) which is also set when you let Xcode create a fresh iOS app (from its own templates). But you also see this a lot on the fora: SET(CMAKE_OSX_ARCHITECTURES $(ARCHS_UNIVERSAL_IPHONE_OS)) Not sure. On Nov 26, 2011, at 4:38 AM, Michael Jackson

Re: [CMake] import/export and DLL's

2011-12-07 Thread Michael Jackson
On Dec 7, 2011, at 7:57 AM, David Cole wrote: See also the new in 2.8.6 module GenerateExportHeader: http://cmake.org/cmake/help/cmake-2-8-docs.html#module:GenerateExportHeader cmake --help-module GenerateExportHeader HTH, David -- +1 for that. Now to get all my developers to

Re: [CMake] Best practices/preferred methods for linking external libraries

2011-12-06 Thread Michael Jackson
On Dec 6, 2011, at 9:56 AM, Matthew LeRoy wrote: On Dec 5, 2011, at 5:57 PM, Michael Jackson wrote: On Dec 5, 2011, at 5:36 PM, Matthew LeRoy wrote: On Dec 4, 2011, at 11:59 AM, Michael Jackson wrote: On Dec 1, 2011, at 4:56 PM, Matthew LeRoy wrote: We began using CMake a few

Re: [CMake] import/export and DLL's

2011-12-06 Thread Michael Jackson
Read this article. http://www.cmake.org/Wiki/BuildingWinDLL If you have questions after that please post. That article should clear everything up. Thanks ___ Mike JacksonPrincipal Software Engineer BlueQuartz

Re: [CMake] Automatically pull in dependencies from QtDesigner plugins

2011-12-05 Thread Michael Jackson
On Dec 5, 2011, at 8:29 AM, David Doria wrote: On Sun, Dec 4, 2011 at 11:34 AM, Michael Jackson mike.jack...@bluequartz.net wrote: Do you have MyWidget packaged as a true library, or did you just create the Designer Plugin and then have a loose .cpp/.h file? The is a project called Qwt

Re: [CMake] Best practices/preferred methods for linking external libraries

2011-12-05 Thread Michael Jackson
On Dec 5, 2011, at 5:36 PM, Matthew LeRoy wrote: On Dec 4, 2011, at 11:59 AM, Michael Jackson wrote: On Dec 1, 2011, at 4:56 PM, Matthew LeRoy wrote: We began using CMake a few months ago for a couple of small cross-platform projects, and we're still learning all the ins and outs

Re: [CMake] Automatically pull in dependencies from QtDesigner plugins

2011-12-04 Thread Michael Jackson
Do you have MyWidget packaged as a true library, or did you just create the Designer Plugin and then have a loose .cpp/.h file? The is a project called Qwt* that has a similar setup. It has a Designer plugin for its various widgets and it has a qwt.dylib/.dll/.so that your program links

Re: [CMake] Best practices/preferred methods for linking external libraries

2011-12-04 Thread Michael Jackson
On Dec 1, 2011, at 4:56 PM, Matthew LeRoy wrote: We began using CMake a few months ago for a couple of small cross-platform projects, and we're still learning all the ins and outs and capabilities CMake has to offer, as well as how to get the most out of CMake by using it The Right Way.

Re: [CMake] BundleUtilities without install target as post build process?

2011-12-02 Thread Michael Jackson
Just thinking out loud here: Create a shell script template. Configure the template at cmake time Run the script as a POST_BUILD custom target. Inside the custom script you would call cmake with the specific bundleUtilities code that you need to fix up the application.

Re: [CMake] Program with Qt opening with a bash screen on windows before showing the gui...

2011-12-01 Thread Michael Jackson
And in a cross platform environment you want to detect the system being compiled for and insert the proper keyword to add_executable(). # Default GUI type is blank set(GUI_TYPE ) #-- Configure the OS X Bundle Plist if (APPLE) SET(GUI_TYPE MACOSX_BUNDLE)

Re: [CMake] Program with Qt opening with a bash screen on windows before showing the gui...

2011-12-01 Thread Michael Jackson
(QT_USE_QTMAIN TRUE) Best Regards NoRulez Am 01.12.2011 um 19:25 schrieb Michael Jackson mike.jack...@bluequartz.net: And in a cross platform environment you want to detect the system being compiled for and insert the proper keyword to add_executable(). # Default GUI type is blank

Re: [CMake] Build doesn't work with Mac OS X Lion...

2011-11-25 Thread Michael Jackson
There is a cmake variable that you set during onfiguration time. Something like os_x_architectures. There you can add the specific arch that you want to build for. - Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz

Re: [CMake] VS2005 and cmake

2011-11-24 Thread Michael Jackson
What version of visual studio are you using? The paid for versions should not have this problem. - Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Dayton, Ohio

Re: [CMake] VS2005 and cmake

2011-11-24 Thread Michael Jackson
www.bluequartz.net Sent from my mobile device. Please excuse the shortness of the reply. On Nov 24, 2011, at 11:31, Tom Deblauwe tom.debla...@traficon.com wrote: Hello, I'm using VS2005 PRO SP1 on windows 7. Best regards Tom, Op 24/11/2011 15:58, Michael Jackson schreef

Re: [CMake] cmake / xcode / c++ header files

2011-11-22 Thread Michael Jackson
I have my own macro that I use for this: MACRO (cmp_IDE_SOURCE_PROPERTIES SOURCE_PATH HEADERS SOURCES INSTALL_FILES) if (${INSTALL_FILES} EQUAL 1) INSTALL (FILES ${HEADERS} DESTINATION include/${SOURCE_PATH} COMPONENT Headers )

Re: [CMake] VC2010 Express + CMake = fails

2011-11-21 Thread Michael Jackson
I has been my experience with multiple versions of Visual studio installed on Windows to remove any trace of visual studio from the system path. Period. Having any path in the system wide PATH or User Wide PATH variable will inevitably lead to odd ball issues like this. Then, like I said

Re: [CMake] VC2010 Express + CMake = fails

2011-11-19 Thread Michael Jackson
The best way to ensure your environment is setup correctly is to launch cmake from one of the dedicated command prompts that come with visual studio. - Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software

Re: [CMake] Workflow of a collaborative project in Visual Studio+CMake

2011-11-12 Thread Michael Jackson
On Nov 12, 2011, at 11:08 AM, Bill Hoffman wrote: On 11/12/2011 10:51 AM, John Drescher wrote: It basically comes down to the inconvenience of having to do that with Visual Studio being outweighed (considerably!) by the cross-platform benefits of CMake. (It does help that none of our

Re: [CMake] QtCreator generator?

2011-11-11 Thread Michael Jackson
On Nov 11, 2011, at 4:44 PM, Alexander Neundorf wrote: On Friday 11 November 2011, David Doria wrote: Ok. one more: how exactly did you run cmake ? From the command line or cmake-gui ? From the CMake-GUI. Which generator did you choose ? It should be the CodeBlocks - NMake Makefiles

Re: [CMake] QtCreator generator?

2011-11-11 Thread Michael Jackson
There should have been a *.sln file that you open.? ___ Mike JacksonPrincipal Software Engineer BlueQuartz SoftwareDayton, Ohio mike.jack...@bluequartz.net www.bluequartz.net On

Re: [CMake] Workflow of a collaborative project in Visual Studio+CMake

2011-11-11 Thread Michael Jackson
It is worse and better. 1: CMake will generate the VS projects and solutions every time it needs to run. DO NOT EDIT the generated VS projects and solutions. Add the requirements to the CMake files. 2: If you are on VS2007/VS2008 and you do a git pull and then switch to VS and click build a

Re: [CMake] QtCreator generator?

2011-11-11 Thread Michael Jackson
But said he was trying to own it in visual studio express. Mike J On Friday, November 11, 2011, John Drescher dresche...@gmail.com wrote: There should have been a *.sln file that you open.? Not for a Code Blocks -NMake Makefile project. John --

Re: [CMake] Shared Library in a Mac OS X Bundle?

2011-11-03 Thread Michael Jackson
You will want to look for BundleUtilities in the CMake Wiki for a working example of this. ___ Mike JacksonPrincipal Software Engineer BlueQuartz SoftwareDayton, Ohio

Re: [CMake] Need a full list of reserved words

2011-10-30 Thread Michael Jackson
I have a C++ program that I use to generate the list for CMakeEd Eclipse Plugin: git://scm.bluequartz.net/CMakeDocParser.git You will need boost and the output from cmake --help-full out.docbook as the input. You can hack the code to get what you need. I also have it generate the TextMate

Re: [CMake] XCode workspace with projects and Visual Studio solution with projects

2011-10-20 Thread Michael Jackson
Yes you will get a top level Solution with projects. No you will not get that in Xcode. ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software

[CMake] CMakeEd has been updated

2011-10-19 Thread Michael Jackson
After a very long hiatus at updating the CMakeEd Eclipse plugin I have finally updated it to coincide with CMake version 2.8.6. The only thing that has changed is the documentation and the list of keywords/reserved words/cmake variables. No other new features have been added. Again, hopefully

Re: [CMake] CMakeEd has been updated

2011-10-19 Thread Michael Jackson
://cmakeed.sourceforge.net/updates On Wed, Oct 19, 2011 at 2:38 PM, Michael Jackson mike.jack...@bluequartz.net wrote: After a very long hiatus at updating the CMakeEd Eclipse plugin I have finally updated it to coincide with CMake version 2.8.6. The only thing that has changed is the documentation

[CMake] Is there a DocBook file anymore

2011-10-18 Thread Michael Jackson
Hello, I am the maintainer of the CMakeEd Eclipse plugin and I was finally going to update update the plugin to have the latest information for CMake 2.8.6. The process that I have used in the past to populate the command completion is to parse the DocBook file because it was reasonably well

Re: [CMake] Is there a DocBook file anymore

2011-10-18 Thread Michael Jackson
THANKS!!! I had forgotten I had to actually generate it first. Man, I was having a heart attack trying to come up with a different way to parse all the information. Thanks again. ___ Mike JacksonPrincipal Software

Re: [CMake] ExternalProject and clean targets

2011-10-15 Thread Michael Jackson
Couldn't an option be added to the add_external_project to NOT_CLEAN and the would solve parties issues? I personally would like to use external project but i do not really want to rebuild all my external libraries each time i need to clean my project and start over. Just a thought. - Mike

[CMake] Using Bundle Utilities on an OS X Command line Tool

2011-09-22 Thread Michael Jackson
I am trying to figure out how to possibly use BundleUtilities.cmake to fix up a Unix type install versus a .app bundle. In my situation I would like the following layout (Simplified) DREAM3D/bin/MyExecutable DREAM3D/lib/libHDF5.dylib DREAM3D/lib/libSupport.dylib When I run BundleUtlities I get

[CMake] dmg CPack Options

2011-09-22 Thread Michael Jackson
Is there an option to pack the entire installation folder _including_ the folder itself into the dmg disk image during CPack? I have several applications, tools, documents and such and they are all currently put loose in the dmg file, I would rather have and enclosing folder. I am using unix

Re: [CMake] dmg CPack Options

2011-09-22 Thread Michael Jackson
:49 am Michael Jackson wrote: Is there an option to pack the entire installation folder _including_ the folder itself into the dmg disk image during CPack? I have several applications, tools, documents and such and they are all currently put loose in the dmg file, I would rather have

[CMake] Post Packaging Script?

2011-09-22 Thread Michael Jackson
Is there some way to run a shell script/command/cmake script AFTER all the packaging is completed? When I run make package from the command line everything goes just fine. The issue is that the folder _CPack_Packages is left over which contains a Symlink to /Applications for OS X systems.

Re: [CMake] linker default library path /usr/local/lib on OSX

2011-09-22 Thread Michael Jackson
the problem ? On Tue, Sep 20, 2011 at 2:19 AM, Michael Jackson mike.jack...@bluequartz.net wrote: Yes. Who ever built the irrklang library has set an install_name of /usr/local/lib on that library. So it does not matter where the library is located. OS X thinks it is in /usr/local/lib

Re: [CMake] dmg CPack Options

2011-09-22 Thread Michael Jackson
PM, Michael Jackson mike.jack...@bluequartz.net wrote: I just found that and have been playing with it but if I set it to 1 then I get the following error: CPack: Create package using DragNDrop CPack: Install projects CPack: - Run preinstall target for: DREAM3D CPack: - Install project

Re: [CMake] CMake 2.8.6 RC3 FindBoost Regression Error

2011-09-22 Thread Michael Jackson
...@bluequartz.net BlueQuartz Software Dayton, Ohio On Sep 22, 2011, at 12:14 PM, Michael Jackson wrote: There seems to be either a regression or my project has been slipping through the cracks with respect to FindBoost. I have the following CMake code in my project: # -- Find

Re: [CMake] CMake 2.8.6 RC3 FindBoost Regression Error

2011-09-22 Thread Michael Jackson
comments on this one, guys? Thanks, David On Thu, Sep 22, 2011 at 12:23 PM, Michael Jackson mike.jack...@bluequartz.net wrote: Semi Answering my own question if I set (Boost_NO_BOOST_CMAKE 1) my project seems to configure ok. So I guess that is new

Re: [CMake] linker default library path /usr/local/lib on OSX

2011-09-19 Thread Michael Jackson
My guess is that the audio library has an install path of /usr/local/lib encoded in it. Try posting tue output of otool for the actual audio library. - Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software

Re: [CMake] User generated header file

2011-09-19 Thread Michael Jackson
On Sep 19, 2011, at 11:58 AM, Perry Ismangil wrote: On Mon, Sep 19, 2011 at 12:47, Eric Noulard eric.noul...@gmail.com wrote: The fact is it works the way you want, which is good, but beside that why would it be better for the user to face a failing build (because he forgot to create the

Re: [CMake] linker default library path /usr/local/lib on OSX

2011-09-19 Thread Michael Jackson
.dylib (compatibility version 7.0.0, current version 7.4.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.3) Does it help ? On Mon, Sep 19, 2011 at 1:56 PM, Michael Jackson mike.jack

Re: [CMake] dyld: library not loaded

2011-08-31 Thread Michael Jackson
You need to copy the library into the .app bundle at MeshVisualization.app/Contents/Libraries/. Your add_executable() command should have the MACOSX_BUNDLE set in. See the help listing for the add executable. ___ Mike Jackson

Re: [CMake] dyld: library not loaded

2011-08-31 Thread Michael Jackson
version 159.0.0) Yifei On Aug 31, 2011, at 9:52 AM, Michael Jackson wrote: You need to copy the library into the .app bundle at MeshVisualization.app/Contents/Libraries/. Your add_executable() command should have the MACOSX_BUNDLE set in. See the help listing for the add

Re: [CMake] dyld: library not loaded

2011-08-31 Thread Michael Jackson
(compatibility version 1.0.0, current version 159.0.0) Yifei On Aug 31, 2011, at 9:52 AM, Michael Jackson wrote: You need to copy the library into the .app bundle at MeshVisualization.app/Contents/Libraries/. Your add_executable() command should have the MACOSX_BUNDLE set in. See the help

[CMake] OpenCL Module?

2011-08-29 Thread Michael Jackson
Does anyone have an FindOpenCL.cmake file that they would like to share? ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Dayton, Ohio

[CMake] Not matching versions of MSVC Runtime Libraries in Manifest

2011-08-09 Thread Michael Jackson
Not sure if this is a CMake issue or not but I'll give it a shot. I am packaging up my application using CPack (zip) and all seems fine. I get the MSVC runtime libraries copied and the manifest file created and all seems to run just fine. If I use Dependency Walker to look at exactly _which_

Re: [CMake] Not matching versions of MSVC Runtime Libraries in Manifest

2011-08-09 Thread Michael Jackson
, at 3:07 PM, Michael Wild wrote: On Tue 09 Aug 2011 06:48:34 PM CEST, Michael Jackson wrote: Not sure if this is a CMake issue or not but I'll give it a shot. I am packaging up my application using CPack (zip) and all seems fine. I get the MSVC runtime libraries copied and the manifest file

Re: [CMake] Not matching versions of MSVC Runtime Libraries in Manifest

2011-08-09 Thread Michael Jackson
, Michael Wild wrote: On Tue 09 Aug 2011 06:48:34 PM CEST, Michael Jackson wrote: Not sure if this is a CMake issue or not but I'll give it a shot. I am packaging up my application using CPack (zip) and all seems fine. I get the MSVC runtime libraries copied and the manifest file

Re: [CMake] Automate Cmake for ITK Projects

2011-06-06 Thread Michael Jackson
cmake -DITK_DIR=/some/path/to/ITK -G Visual Studio 8 2005 Win64 ../src ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Dayton, Ohio On

Re: [CMake] Visual C++ and cpack

2011-06-01 Thread Michael Jackson
If that really is your exact code from cmake you are building a static library only. There must be another argument to the add_library command that says SHARED. With out that argument cmake will always generate a static library build. Also Visual Studio will generate the Release subdirectory

Re: [CMake] Visual C++ and cpack

2011-06-01 Thread Michael Jackson
On Jun 1, 2011, at 11:08 AM, Mathias Bavay wrote: On 06/01/2011 12:37 PM, Michael Jackson wrote: If that really is your exact code from cmake you are building a static library only. There must be another argument to the add_library command that says SHARED. In a subdirectory (after

Re: [CMake] How do you put specific files in the build directory?

2011-06-01 Thread Michael Jackson
What they do is hard code the path to the zip file into a preprocessor define and then use that preprocessor define in their code. So you have a header template: ZipFileLocation.h.in and in there have something like this: #define ZIP_FILE_LOCATION @ZIP_FILE_LOCATION@ Then in your normal

Re: [CMake] Newbie question: Static linking

2011-05-23 Thread Michael Jackson
You might want to take a look at the Factory design pattern. - Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Dayton, Ohio Sent from my mobile device. On May 23, 2011, at 5:51, Sanatan Rai

Re: [CMake] Newbie question: Static linking

2011-05-23 Thread Michael Jackson
On May 23, 2011, at 10:11 AM, Michael Wild wrote: On 05/23/2011 03:25 PM, Sanatan Rai wrote: On 23 May 2011 13:38, Michael Wild them...@gmail.com wrote: On 05/23/2011 02:20 PM, Sanatan Rai wrote: On 23 May 2011 12:54, Michael Jackson mike.jack...@bluequartz.net wrote: You might want to take

Re: [CMake] Newbie question: Static linking

2011-05-23 Thread Michael Jackson
On May 23, 2011, at 11:09 AM, Sanatan Rai wrote: On 23 May 2011 16:00, Michael Wild them...@gmail.com wrote: Everything that relies on static/global initialization to register factories is an implicit scheme. An explicit scheme is where the dependent code (e.g. the main() function) calls a

Re: [CMake] Forcing CMake to never search install path

2011-05-16 Thread Michael Jackson
On May 15, 2011, at 9:12 PM, John Drescher wrote: I've been struggling to find a way to prevent CMake from using CMAKE_INSTALL_PREFIX in any of its FIND_* routines. Generally speaking, stripping it out of CMAKE_SYSTEM_PREFIX_PATH seems to work, but we're still getting situations on Windows

Re: [CMake] OSX Bundling

2011-05-10 Thread Michael Jackson
Does the app actually use carbon or cocoa for it's windowing API or is it simply an x11 app that compiles on OS x? What is the name of the project? Is it open source so that we can download it and take a look? Mike Jackson On Tuesday, May 10, 2011, jtwadsworth jtwadswo...@gmail.com wrote: So I

Re: [CMake] manifest version mismatch with VS 2008 and InstallRequiredSystemLibraries

2011-05-09 Thread Michael Jackson
I am a bit late to the thread but I also had this problem so I made it a policy NOT to install the VS update that broke the Manifest thing. Easy for me as I am a single guy shop :-) but it did get rid of the problem, or more correctly worked around the problem. Of course the downside is that I

Re: [CMake] OSX Bundling

2011-05-07 Thread Michael Jackson
If it is a true OS X native app then you will want to look at BundleUtilities in CMake to build the app bundle. If it is an X11 wrapper that you want then there is an x11 packaging target that you can use. Both are covered in the documentation. Mike Jackson Www.bluequartz.net On Saturday, May 7,

Re: [CMake] OSX Bundling

2011-05-07 Thread Michael Jackson
On May 7, 2011, at 10:07 AM, jtwadsworth wrote: Michael Jackson wrote: If it is a true OS X native app then you will want to look at BundleUtilities in CMake to build the app bundle. If it is an X11 wrapper that you want then there is an x11 packaging target that you can use. Both

Re: [CMake] Testing and DLLs

2011-05-04 Thread Michael Jackson
Funny, I did the same thing using pure CMake code because I couldn't figure out batch files. # #-- Copy all the dependent DLLs into the current build directory so that the test #-- can run. MACRO (CMP_COPY_DEPENDENT_LIBRARIES

Re: [CMake] Testing and DLLs

2011-05-04 Thread Michael Jackson
Are you talking about the actual library/DLL that you are creating or some 3rd party library that your built library depends on? If you do this: # -- Setup output Directories - SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/Bin CACHE PATH Single

Re: [CMake] What is the proper way to 'distribute' .cmake-files?

2011-05-03 Thread Michael Jackson
I took your second approach for my own projects and have a project that just contains all of my custom CMake files. Using Git submodules (or the equivalent SVN/CVS) makes this relatively easy to implement. Your main project just has this subproject as a git submodule. This way

Re: [CMake] BundleUtilities (was RPATH on Mac)

2011-05-02 Thread Michael Jackson
location i.e. without installing on my machine On Apr 23, 2011, at 6:37 PM, Michael Jackson mike.jack...@bluequartz.net wrote: To Copy in a framework into a .app bundle or to fixup a framework? In the first case things should just work as I copy in Qt Frameworks all the time. -- Mike

Re: [CMake] MSVC10_REDIST_DIR-NOTFOUND/x86/Microsoft.VC100.CRT/msvcr100.dll

2011-05-02 Thread Michael Jackson
Just saw this posting on the Qt-interest mailing list which might be helpful here. If you are using Visual C++ Express, the 2010 edition does not appear to include *.msm merge modules for C++ runtime redistributable. That makes it impossible to build a .msi installer incorporating

Re: [CMake] osx 10.6 10.5 compability issue

2011-04-29 Thread Michael Jackson
Levinsen yngve.levin...@gmail.com wrote: Hi Michael, I notice you know a lot about CMake and OSX, thanks once again! I'll give it a try asap. Cheers, Yngve On Thursday 28 April 2011 06:04:18 PM Michael Jackson wrote: You probably want to set the CMAKE_OSX_DEPLOYMENT_TARGET to 10.5

Re: [CMake] osx 10.6 10.5 compability issue

2011-04-28 Thread Michael Jackson
You probably want to set the CMAKE_OSX_DEPLOYMENT_TARGET to 10.5 and recompile. ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Dayton,

<    1   2   3   4   5   6   7   8   9   >