Re: [CMake] Missing Software\Microsoft\VisualStudio\8.0\vsmacros\OtherProjects7

2010-02-19 Thread Michael Jackson
Is this the "Express" version of Visual Studio? Visual Studio Express does NOT support the macros. ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software

[CMake] CMake Code for Deploying Qt Plugins for Image Formats

2010-02-04 Thread Michael Jackson
Are there any examples or does anyone have any CMake code for copying Qt plugins for the various image formats that come with a Qt installation. I could probably hack something together similar to what I have for the main QtCore and QtGui libraries, but existing code is always better, and m

[CMake] CMakeEd Maintenance Release - Version 1.1.5

2010-02-03 Thread Michael Jackson
It has been a while but I was finally able to get some time to put together a new Release for the CMakeEd Eclipse plugin. CMakeEd provides syntax coloring and command completion for CMake files in Eclipse. All the CMake help is also integrated into the Eclipse Help system and is fully searc

Re: [CMake] Java Support

2010-01-22 Thread Michael Jackson
What specific problems are you having with your Java code? ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Dayton, Ohio On Jan 22, 2010

Re: [CMake] Double @-substitution and configure_file()??

2010-01-18 Thread Michael Jackson
I came across the same problem. I never really found a suitable working solution. ___ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Dayto

Re: [CMake] Proposal for new generator options

2010-01-15 Thread Michael Jackson
For your project you can always add your own "flags" such as: CMakeLists.txt Begin if (VS_USE_STATIC_RUNTIME) set (CMAKE_CXX_FLAGS ".") endif() CMakeLists.txt-- END Then on the command line do the following: cmake -G "Visual Studio 9 2008" -DVS_USE_STATIC_RUNTIME=ON ../ or from a

Re: [CMake] Source code configuration management in CMake?

2010-01-15 Thread Michael Jackson
On Jan 15, 2010, at 2:17 PM, Tyler Roscoe wrote: On Fri, Jan 15, 2010 at 05:57:20PM +, Ian Scott wrote: I have an existing large hierarchically structured code base, but I want to extract a cut-down source code tree that only contains the source code files necessary for a particular proj

Re: [CMake] FindQt in a Specific place?

2010-01-15 Thread Michael Jackson
On Jan 13, 2010, at 4:58 PM, Andreas Pakulat wrote: On 13.01.10 13:34:34, clin...@elemtech.com wrote: I've also seen people put a qt.conf file in the Qt installation, to override the compiled-in paths. That's probably how its done by the Windows installer. Thats one way to do it, but appar

Re: [CMake] Feature requests for CMake-GUI

2010-01-14 Thread Michael Jackson
On Jan 14, 2010, at 5:49 AM, Adolfo Rodríguez Tsouroukdissian wrote: 2010/1/14 Michael Wild On 14. Jan, 2010, at 11:00 , Adolfo Rodríguez Tsouroukdissian wrote: > On Thu, Jan 14, 2010 at 10:47 AM, Michael Wild wrote: > >> >> On 14. Jan, 2010, at 10:43 , Michael Wild wrote: >> >>> Hi al

Re: [CMake] FindQt in a Specific place?

2010-01-13 Thread Michael Jackson
On Jan 13, 2010, at 4:58 PM, Andreas Pakulat wrote: On 13.01.10 13:34:34, clin...@elemtech.com wrote: I've also seen people put a qt.conf file in the Qt installation, to override the compiled-in paths. That's probably how its done by the Windows installer. Thats one way to do it, but appare

Re: [CMake] FindQt in a Specific place?

2010-01-13 Thread Michael Jackson
Um, yea, you don't want to do that, change the location of the Qt libraries after they are built in one location. On Windows, the only way you can do that (to my knowledge) is to use the MinGW precompiled binaries from Nokia. When the installer runs all the paths are updated for the install

Re: [CMake] FindQt in a Specific place?

2010-01-13 Thread Michael Jackson
SEt the QT_QMAKE_EXECUTABLE variable. _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio On Jan 13, 2010, at 1:07 PM

Re: [CMake] configure_file without continuous re-build

2010-01-12 Thread Michael Jackson
you shouldn't have to do that. There are multitudes of projects that do exactly what you are doing and don't have continuous rebuilds. Now, having said that I am _assuming_ that osconfig.h.in is NOT being changed, generated, updated or in any way changed? osconfig.h.in being changed would c

Re: [CMake] Qt qmake not found

2010-01-09 Thread Michael Jackson
On Jan 8, 2010, at 10:26 PM, David Doria wrote: On Fri, Jan 8, 2010 at 10:10 PM, David Doria wrote: On Fri, Jan 8, 2010 at 10:07 PM, Mike Jackson wrote: You installed qt version 3 instead of qt version 4. Sudo apt-get install qt4-dev. Or something like that. Mike Sent from my iPod O

Re: [CMake] mingw crosscompile error: invalid option `macosx-version-min=10.5' ?

2010-01-03 Thread Michael Jackson
This is probably a "bug" in the Darwin-gcc.cmake file that gets called to initialize all the compilers and flags. There is a bunch of code which tries to figure out which OS X version you are compiling for and what flags to use. I say this because there probably needs to be an IF( NOT CROSS_

Re: [CMake] cmake file in build directory

2009-12-30 Thread Michael Jackson
On Dec 30, 2009, at 10:48 AM, Hicham Mouline wrote: -Original Message- From: John Drescher [mailto:dresche...@gmail.com] Sent: 29 December 2009 23:16 To: Hicham Mouline Cc: cmake@cmake.org Subject: Re: [CMake] cmake file in build directory On Tue, Dec 29, 2009 at 6:01 PM, Hicham Moulin

Re: [CMake] what is the right way to set CMAKE_USE_RELATIVE_PATHS?

2009-12-21 Thread Michael Jackson
There are lots of questions on this CMake variable and the consensus is DO NOT USE IT. PERIOD. The implementation is basically broken for all but the most trivial case. _ Mike Jackson mike.jack...@bluequartz.net BlueQuart

Re: [CMake] ExternalProject() Question

2009-12-17 Thread Michael Jackson
On Dec 17, 2009, at 11:34 AM, David Cole wrote: On Thu, Dec 17, 2009 at 10:53 AM, Michael Wild wrote: On 17. Dec, 2009, at 15:01 , David Cole wrote: > On Thu, Dec 17, 2009 at 3:20 AM, Michael Wild wrote: > >> >> On 16. Dec, 2009, at 20:35 , Michael Jackson wrote: >

[CMake] ExternalProject() Question

2009-12-16 Thread Michael Jackson
I am intrigued by the "ExternalProject" feature of CMake 2.8. One question that I have after reading through the Oct 09 "Kitware Source" is this. If I do a "make clean" or "rebuild" are all the "ExternalProjects" also cleaned/rebuilt? I could make an argument both ways but I was curious wha

Re: [CMake] qt .qrc file modifications require two builds

2009-12-16 Thread Michael Jackson
On Dec 15, 2009, at 7:24 PM, Glenn Hughes wrote: Really? How could it? Suppose I only have 1 qrc file, named foo.qrc: wouldn't these two lines be equivalent? FILE (GLOB my_RESOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "res/ *.qrc" ) SET( my_RESOURCES "res/foo.qrc") ??? TIA G On Tue, Dec

Re: [CMake] SDL troubles on Mac OS X

2009-12-15 Thread Michael Jackson
On Dec 15, 2009, at 10:03 AM, Clinton Stimpson wrote: On Dec 15, 2009, at 2:31 AM, Werner Smekal wrote: Hi Michael, On 12/15/09 9:58 AM, Michael Wild wrote: Hi What is the install-name of SDL.framewor/SDL? What does otool -L ~/Library/Frameworks/SDL.framework/SDL tell you? I suspect it

Re: [CMake] source_group with XCode?

2009-12-11 Thread Michael Jackson
Post a bug to the bug tracker. Maybe someone will get to it. -- Mike Jackson On Dec 11, 2009, at 5:26 PM, Glenn Hughes wrote: Xcode definitely supports it. I'm moving to CMake from a pure Xcode project, and we have some deeply nested folders. My guess is its a bug in the generator. I'm running

Re: [CMake] source_group with XCode?

2009-12-11 Thread Michael Jackson
grouping under Target, i.e. /Sources/Target/SubFolder but not /Sources/Target/SubFolder/SubSubFolder Can you make Sources/ModelEditor/ModelEditor/SomeSubGroup/ ? G On Fri, Dec 11, 2009 at 4:43 PM, Michael Jackson wrote: You mean like this

Re: [CMake] source_group with XCode?

2009-12-11 Thread Michael Jackson
al groups I add are under Target. I can get one level of grouping under Target, i.e. /Sources/Target/SubFolder but not /Sources/Target/SubFolder/SubSubFolder Can you make Sources/ModelEditor/ModelEditor/SomeSubGroup/ ? G On Fri, Dec 11, 2009 at 4:43 PM, Michael Jackson w

Re: [CMake] source_group with XCode?

2009-12-11 Thread Michael Jackson
source_group( NameSubName FILES ${source} ) _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio On Dec 11, 2009,

Re: [CMake] Framework Installation Directory / Framework copying

2009-12-08 Thread Michael Jackson
http://www.cmake.org/Wiki/BundleUtilitiesExample Might Help Mike Jackson On Dec 8, 2009, at 5:11 PM, Glenn Hughes wrote: Hi all, Does anyone have any experience with how to copy a built framework into the application bundle? In Xcode we set the Installation Directory of the Framework to @ex

Re: [CMake] where are the output files?

2009-12-08 Thread Michael Jackson
Some projects have CMake code in the top most CMakeLists.txt file such as the following: # -- Setup output Directories - SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/Bin) # - Setup the executable output Directory - SET (CMAKE_RUN

Re: [CMake] Building CMake on Windows

2009-12-08 Thread Michael Jackson
If you have cmake installed, you can bootstrap newer versions of CMake on Windows. -1 for not being helpful. +1 for General information. ;-) Mike Jackson On Dec 8, 2009, at 7:34 AM, Pau Garcia i Quiles wrote: On Tue, Dec 8, 2009 at 12:58 PM, steve naroff wrote: The 'Readme.txt' for t

Re: [CMake] Idea - Modules development and management

2009-12-07 Thread Michael Jackson
On Dec 7, 2009, at 3:37 PM, Eric Noulard wrote: 2009/12/7 Nicholas Yue : Hi, Does it make sense to separate out the development and deployment of "Modules" in CMake? This kind of idea have already been raised on the ML. May be you should dig the ML archive in order to collect past idea

Re: [CMake] Build only what you need in third party libs

2009-12-07 Thread Michael Jackson
On Dec 7, 2009, at 1:28 PM, troy d. straszheim wrote: Michael Jackson wrote: So you are wanting to include the Boost sources in your project and you just want to build a specific subset of Boost to use with your project? Here's what I came up with: http://sodium.resophonic.com/

Re: [CMake] Build only what you need in third party libs

2009-12-07 Thread Michael Jackson
Please keep on list so that others may benefit/help So you are wanting to include the Boost sources in your project and you just want to build a specific subset of Boost to use with your project? I guess I might try setting the # Set what boost libraries will be built BUILD_PROJECTS=file_s

Re: [CMake] CMake 2.8.0 built on OS X crashes on Startup.

2009-12-04 Thread Michael Jackson
And just to follow up more, using the autoconf system to build and install cmake does not work either. Still missing the qt_menu.nib file. What is the officially supported Qt version for to build CMake? -- Mike Jackson On Dec 4, 2009, at 1:21 PM, Bill Hoffman wrote: Michael Jackson

Re: [CMake] CMake 2.8.0 built on OS X crashes on Startup.

2009-12-04 Thread Michael Jackson
_ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio On Dec 4, 2009, at 1:21 PM, Bill Hoffman wrote: Michael

[CMake] CMake 2.8.0 built on OS X crashes on Startup.

2009-12-04 Thread Michael Jackson
I tried to build CMake 2.8.0 from source on OS X 10.5.8 Intel in Release mode with Qt 4.5.3 (as cocoa frameworks). I did a "make install" and when I try to double click the CMake 2.8-0.app bundle I get the following error: Process: CMake 2.8-0 [33756] Path:/Users/Shared/

Re: [CMake] CTest - Prefixing the launch of each executable

2009-12-04 Thread Michael Jackson
OK, Really the last follow up. I guess I didn't clean the build directory good enough last time. I now only get 2 tests based on using CMAKE_OSX_ARCHITECTURES=i386;x86_64. Sorry for the noise. -- Mike Jackson On Dec 4, 2009, at 11:10 AM, Michael Jackson wrote: Just to follow up a b

Re: [CMake] CTest - Prefixing the launch of each executable

2009-12-04 Thread Michael Jackson
. -- Mike Jackson On Dec 4, 2009, at 10:18 AM, Michael Jackson wrote: So the issue is to test OS X Universal binary with at least 3 different code paths: i386, x86_64 and PPC. There is the "arch" command on the command line that can be used launch an executable using the indicate

[CMake] CTest - Prefixing the launch of each executable

2009-12-04 Thread Michael Jackson
So the issue is to test OS X Universal binary with at least 3 different code paths: i386, x86_64 and PPC. There is the "arch" command on the command line that can be used launch an executable using the indicated architecture. I am wondering how this might be used with CTest to test the diff

Re: [CMake] Source file symlinks on out-of-source builds

2009-12-03 Thread Michael Jackson
you. I envy the distributed GCC folks who do -j50. ;-) -- Mike Jackson PS: Had to use an old single CPU PPC the other day.. Painful going from a Dual Xeon 5500 to a 1.25GHz ppc.. On Dec 3, 2009, at 3:46 PM, Rodolfo Schulz de Lima wrote: Michael Jackson wrote: cmake -C ${workspace

Re: [CMake] Source file symlinks on out-of-source builds

2009-12-03 Thread Michael Jackson
On Dec 3, 2009, at 3:11 PM, Rodolfo Schulz de Lima wrote: I'm interested to know how they manage this. But even with if you run make with -C to change to the build directory, the executable would be generated there. This feels awkward when you are used to in-source builds. Inside vi I usually

Re: [CMake] Source file symlinks on out-of-source builds

2009-12-03 Thread Michael Jackson
: Michael Jackson wrote: I'll throw a "no" vote on that but what I would like to hear is some more detail from Rodolfo explaining why he thinks he needs this? Have you tried embedding the build directory inside the source directory? Some of us use this type of setup and it seems to wor

Re: [CMake] Source file symlinks on out-of-source builds

2009-12-03 Thread Michael Jackson
I'll throw a "no" vote on that but what I would like to hear is some more detail from Rodolfo explaining why he thinks he needs this? Have you tried embedding the build directory inside the source directory? Some of us use this type of setup and it seems to work really nicely with IDEs, Tex

Re: [CMake] Intel Compiler with OSX 10.6

2009-12-02 Thread Michael Jackson
es care of them both. Is there documentation (or readable source code) which could help me understand how things in this directory work? Thanks, Brad On Dec 1, 2009, at 4:34 PM, Michael Jackson wrote: I think I wrote part of that file. Didn't realize I was putting any OS X 10.4 spe

Re: [CMake] Intel Compiler with OSX 10.6

2009-12-01 Thread Michael Jackson
I think I wrote part of that file. Didn't realize I was putting any OS X 10.4 specific items in there. Any ways, I don't have access to ICC anymore so you will probably have to experiment with some settings and then update the darwin-icc.cmake files. Sorry I can not be of any more help. _

Re: [CMake] CDash Setup for HDF5

2009-11-30 Thread Michael Jackson
Project >" button... Allows 10 submissions per day for free. :-) On Tue, Nov 17, 2009 at 5:20 PM, Michael Jackson > wrote: So it looks like there is an "experiment" underway at the HDF5 site. They are willing to "CMakeify" the HDF5 library build system on a trial

[CMake] Adding support to ignore build directory for TimeMachine Backups (OS X 10.5 and above)

2009-11-30 Thread Michael Jackson
I was wanting to hack around a bit in the CMake code based in order to add in a "feature" to have Build directories ignored by TimeMachine on OS X 10.5 and above. Xcode seems to do this automatically for you but if you use any of the other generators then you are out of luck. I realize I _c

Re: [CMake] LIBRARY_OUTPUT_PATH - CMAKE_LIBRARY_OUTPUT_DIRECTORY

2009-11-30 Thread Michael Jackson
John, I actually have this same problem with a ParaView plugin that I am developing. I have the following in the plugin's CMakeLists.txt file ( where MXA_OUTPUT_DIRS_DEFINED _is_ defined in the before the CMakeLists.txt is included via an 'add_subdirectory()' command from the MXADataMode

Re: [CMake] Eclipse CDT 4.0 + CMake (2.8.0)

2009-11-25 Thread Michael Jackson
i-page on my own and had to bother, i just found the "Option #1 Eclipse CDT4 Generator <http://www.cmake.org/Wiki/Eclipse_CDT4_Generator >" via google search. Next time i will use the wiki-page search! Kind regards, Peter Kluger Michael Jackson wrote: You may want to try o

Re: [CMake] Eclipse CDT 4.0 + CMake (2.8.0)

2009-11-24 Thread Michael Jackson
You may want to try option #2 from the following page: http://www.cmake.org/Wiki/CMake:Eclipse_UNIX_Tutorial This would solve your problem as the .project and .cproject files are never actually generated. It is up to you to generate those files. But this means that you can customize the proj

Re: [CMake] CTest Submission to CDash on MSVC

2009-11-23 Thread Michael Jackson
at support build configurations such as Visual Studio. Clint On Monday 23 November 2009 01:43:33 pm Michael Jackson wrote: What is the "accepted" setup to run a CTest with CDash submission on Windows using Visual Studio tools? I tried writing a "Hdf5Dashboard.cmake&quo

Re: [CMake] CTest Submission to CDash on MSVC

2009-11-23 Thread Michael Jackson
t;all" I think ctest -VV will show the command used to build the visual studio project. And for the CMakeCache.txt, you should need to set the generator, or set CMAKE_BUILD_TYPE for generators that support build configurations such as Visual Studio. Clint On Monday 23 November 200

Re: [CMake] CDash Setup for HDF5

2009-11-23 Thread Michael Jackson
the autoconf checks in Cmake. -- Will Michael Jackson wrote: Ahh. did not see that the CDash provided a CTestConfig.cmake file. I'll try to work on that. I have old ParaView dashboard scripts that can get me started. _

[CMake] CTest Submission to CDash on MSVC

2009-11-23 Thread Michael Jackson
What is the "accepted" setup to run a CTest with CDash submission on Windows using Visual Studio tools? I tried writing a "Hdf5Dashboard.cmake" file with some basics in it: cmake_minimum_required ( VERSION 2.6 ) set (CTEST_SITE "vs2...@bluequartz.net") set (CTEST_BUILD_NAME "Debug-Visual Studi

[CMake] "Copy if Different" question

2009-11-23 Thread Michael Jackson
if I have the following code: EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${TEMP_CONFIG_FILE} ${HDF5_BINARY_DIR}/ H5pubconf.h) How exactly is "Different" determined? By date modified, by content, by some sort of hash? _

Re: [CMake] CDash Setup for HDF5

2009-11-23 Thread Michael Jackson
it to the HDF5 source tree next to the top level CMakeLists.txt file. Then clients just need to run HDF5 dashboards and submit... HTH, David On Fri, Nov 20, 2009 at 5:08 PM, Michael Jackson > wrote: Ok, So I registered with my.cdash.org and created the HDF5 project.

Re: [CMake] CDash Setup for HDF5

2009-11-20 Thread Michael Jackson
click the "Start My Project >" button... Allows 10 submissions per day for free. :-) On Tue, Nov 17, 2009 at 5:20 PM, Michael Jackson > wrote: So it looks like there is an "experiment" underway at the HDF5 site. They are willing to "CMakeify" the HDF5 librar

Re: [CMake] Create an XXXConfig.cmake file

2009-11-19 Thread Michael Jackson
t 11:14 AM, Michael Wild wrote: On 19. Nov, 2009, at 16:24 , Michael Jackson wrote: So, there are a few of us quickly port the HDF5 1.8 code to CMake. I'm thinking that we should put in an HDF5Config.cmake file for other projects use. Simple question: What goes in one of those? I

[CMake] Create an XXXConfig.cmake file

2009-11-19 Thread Michael Jackson
So, there are a few of us quickly port the HDF5 1.8 code to CMake. I'm thinking that we should put in an HDF5Config.cmake file for other projects use. Simple question: What goes in one of those? Is there a tutorial somewhere? Where does the file get installed into? What does the consumer

Re: [CMake] Testing the size of long throws error when more than one OS X Arch is passed

2009-11-17 Thread Michael Jackson
On Nov 17, 2009, at 6:45 PM, Sean McBride wrote: On 11/17/09 5:57 PM, Michael Jackson said: cmake -DCMAKE_OSX_ARCHITECTURES='x86_64;i386' ../ Will throw the following error: -- Check size of size_t CMake Error at /Users/Shared/Toolkits/CMake-2.6.4/share/cmake-2.

[CMake] Testing the size of long throws error when more than one OS X Arch is passed

2009-11-17 Thread Michael Jackson
cmake -DCMAKE_OSX_ARCHITECTURES='x86_64;i386' ../ Will throw the following error: -- Check size of size_t CMake Error at /Users/Shared/Toolkits/CMake-2.6.4/share/cmake-2.6/ Modules/CheckTypeSize.cmake:89 (MESSAGE): CHECK_TYPE_SIZE found different results, consider setting CMAKE_OSX_ARCHITE

[CMake] CDash Setup for HDF5

2009-11-17 Thread Michael Jackson
So it looks like there is an "experiment" underway at the HDF5 site. They are willing to "CMakeify" the HDF5 library build system on a trial basis. What all is involved in setting up a CDash drop site for the regression tests? Thanks _

Re: [CMake] using cmake to link window lib and dll files

2009-11-16 Thread Michael Jackson
You will need to create an "install" command that copies the library into the runtime directory. There are lots of examples in the email archives. Here is what I do for the Qt libraries: if (AIM_BUILD_QT_APPS AND NOT Q_WS_MAC) if (DEFINED QT_QMAKE_EXECUTABLE) SET (QTLIBLIST QtCore

Re: [CMake] Need to run scripts during packaging

2009-11-13 Thread Michael Jackson
On Nov 13, 2009, at 7:23 PM, Clinton Stimpson wrote: On Friday 13 November 2009 05:05:36 pm Michael Jackson wrote: OS X classic dylib problems. My Dylibs have the full path as their "install_name". When I do a "make install" I have scripts run over those libraries to &qu

[CMake] Need to run scripts during packaging

2009-11-13 Thread Michael Jackson
OS X classic dylib problems. My Dylibs have the full path as their "install_name". When I do a "make install" I have scripts run over those libraries to "fix them up" using the BundleUtilities.cmake stuff. Um, so how do I get those same scripts to run when I do a "make package" ? Thanks.

[CMake] Finding the "Temp" directory code

2009-11-13 Thread Michael Jackson
Does anyone have any CMake code to find the designated temp folder location for each platform? Was thinking this might be in CMake somewhere but I did not seem to find anything. Thanks _ Mike Jackson mike.jack...@bluequa

[CMake] CPack not packaging DLL, only the import library.

2009-11-13 Thread Michael Jackson
Another dumb friday question: I have the packaging mostly working except that when I generate a windows DLL project only the import library is packaged up, leaving the actual DLL library behind. What might be causing this? _ Mike Jac

Re: [CMake] Compiling zlib and libpng with one command

2009-11-12 Thread Michael Jackson
Well, Having gone down this path just this morning with BOTH of those libraries, here is what I did. In my png/CMakeList.txt file, I have the following: include_directories(${CxImage_SOURCE_DIR}/Utilities/cxzlib) include_directories(${CxImage_BINARY_DIR}/CxZLib) ADD_LIBRARY(CxPng ${LIB_

Re: [CMake] How to include Boost in Visual Studio cmake project

2009-11-12 Thread Michael Jackson
Just to follow up a bit more, here is my recipe for getting Boost up and running with CMake and Visual Studio. 1: Compile Boost: From the "Visual Studio Command Prompt I use the following: bjam.exe toolset=msvc-9.0 --with-test --with-filesystem --with- program_options --with-date_time --with

[CMake] CPack: How to add the Build Configuration Type to the created installer

2009-11-05 Thread Michael Jackson
I would like to generate installers for both a Release and a Debug build but have them be separate installers under Visual Studio. Currently when I build the "PACKAGE" project in my solution I get a nice installer with a name like: AIMRepresentation-2009.11.03-win64.exe which is generally f

Re: [CMake] FindBoost: FIND_PACKAGE ( Boost COMPONENTS filesystem )

2009-11-04 Thread Michael Jackson
On Nov 4, 2009, at 1:57 PM, Mathieu Malaterre wrote: On Wed, Nov 4, 2009 at 7:50 PM, Philip Lowman wrote: Personally, I think FindBoost is complex enough without having to also keep track of boost's internal dependencies as well. Maybe things would be better if the boost people publishe

Re: [CMake] CMake with Qt (plus pkg-config)

2009-10-22 Thread Michael Jackson
http://www.bluequartz.net/software/files/QtTest.zip Is a small qt example that shows use with CMake. _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software E

Re: [CMake] Best practices when using CMake 2.6 and Eclipse CDT 6.0

2009-10-14 Thread Michael Jackson
Also note that there _is_ CMake Editor support through a third party plugin: http://cmakeed.sourceforge.net The Eclipse Update site is: http://cmakeed.sourceforge.net/eclipse/ The CMakeEd plugin provides syntax coloring, cmake command completion and CMake Help for Eclipse. Note that the plu

Re: [CMake] Why FindBoost messaging not unified?

2009-10-09 Thread Michael Jackson
I'll admit up front that I have NOT tried out the latest CVS Cmake BUT something that I sometimes have add into the FindBoost are outputs that print all the variant names of the boost library that CMake is trying to search for with the BOOST_DEBUG enabled. I think this would be useful for w

Re: [CMake] CMake cvs TOT and Xcode

2009-10-02 Thread Michael Jackson
I thought there was some code to try and find out where Xcode was installed added to CMake. I think I was the one who helped write it. Whether that got committed to the repo is another question. http://www.itk.org/Bug/view.php?id=6195 Support for non-standard Xcode installation was added to

Re: [CMake] Variables in cmake-scripts

2009-10-02 Thread Michael Jackson
Oops.. Nice Catch. I am going to hazard a guess and say that "Make" is running a new cmake instance with the install.cmake as its target script to run. This script will have NOTHING to do with the CMakeLists.txt file and therefor will have no idea about variables that are defined in the o

Re: [CMake] Variables in cmake-scripts

2009-10-02 Thread Michael Jackson
where is TESTVAR ever set? _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio On Oct 2, 2009, at 10:20 AM, merean..

Re: [CMake] Output run-time files to single directory

2009-09-29 Thread Michael Jackson
# -- Setup output Directories - SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/Bin ) # - Setup the Executable output Directory - SET (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/Bin ) # - Setup the Executable out

Re: [CMake] Parsing XML from CMAke

2009-09-29 Thread Michael Jackson
Um, couldn't you just use the FIND_PACKAGE( Qt4 REQUIRED ) and others like that to find your 3rd party packages? Just a suggestion without knowing your build system in detail.. _ Mike Jackson mike.jack...@bluequartz.net

Re: [CMake] Testing for SSE and adding appropriate Compile options

2009-09-25 Thread Michael Jackson
l Hoffman wrote: Michael Jackson wrote: Does it work if you just drop the quotes from the second half of the set()? set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} /arch:SSE2) or, slightly more pedantically: set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "/arch:SSE2") Nope, this variable is a string and not

Re: [CMake] Testing for SSE and adding appropriate Compile options

2009-09-25 Thread Michael Jackson
quartz.net Principal Software Engineer Dayton, Ohio On Sep 25, 2009, at 4:30 PM, Tyler Roscoe wrote: On Fri, Sep 25, 2009 at 01:57:26PM -0400, Michael Jackson wrote: set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "-msse3") set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-msse3"

[CMake] Testing for SSE and adding appropriate Compile options

2009-09-25 Thread Michael Jackson
I am testing for SSE2/SSE3 functionality and am having some issues getting things correct. After I properly detect that SSE2/3 is available I need to set the COmpiler Flags. For GCC it seems I should use "-msse2" or -msse3 flags. For MSVC it seems I should use /arch:SSE2. So I am trying to

Re: [CMake] Link against dynamic library

2009-09-25 Thread Michael Jackson
With CMake you can do something like: add_library(foo ) add_executable( bar .. ) target_link_libraries (bar foo) and CMake will make sure all the link paths are correct. There generally should not be a need to set the "install_name" of built libraries _within_ a build tree. Now, s

Re: [CMake] Copying files to runtime directory

2009-09-23 Thread Michael Jackson
I just include some CMake code to copy the Qt Dlls from the Qt installation directory into the local Debug or Release directories. Kinda clunky but gets the job done. -- Mike Jackson On Sep 23, 2009, at 3:09 PM, Jeroen Dierckx wrote: On Wed, Sep 23, 2009 at 9:06 PM, Anatoly Shirokov wr

Re: [CMake] cmake 2.6.4 won't find boost 1.40 on windows

2009-09-17 Thread Michael Jackson
When you build boost use the --prefix=C:\boost_1_40 ... install also you should specify toolset==msvc9.0 or the libraries will not be named correctly. Mike Jackson On Sep 17, 2009, at 4:48 PM, Cristian Adam wrote: Hi, I have encountered problems with Boost 1.40 (build on Windows using Vis

Re: [CMake] linking error after upgrading to snow leopard

2009-09-11 Thread Michael Jackson
You are not specifying the libraries that contain those symbols. Looking at your link line you are missing at least the Qt libraries/ Frameworks and maybe some others. If the arch were incorrect the linker would explicitly tell you that the libraries you are trying to link against is the wro

Re: [CMake] Module find error running cmake

2009-09-04 Thread Michael Jackson
That line looks awful strange. Usually it is something like: cmake -DCMAKE_INSTALL_PREFIX=/usr/local/KDE or something like that.. _ Mike Jackson mike.jack...@bluequartz.net On Sep 4, 2009, at 12:04 PM, twf wrote: cmake

Re: [CMake] cmake on Snow Leopard

2009-09-01 Thread Michael Jackson
way? Celil On Mon, Aug 31, 2009 at 11:49 AM, Celil Rufat wrote: Simply reinstalling XCode for 10.6 fixed the problem. Thanks for the help. Celil On Sun, Aug 30, 2009 at 10:49 PM, Michael Jackson > wrote: MAKE_OSX_SYSROOT /Developer/SDKs/android-sdk-mac_x86-1.5_r2 Yep, there is the prob

Re: [CMake] cmake on Snow Leopard

2009-08-30 Thread Michael Jackson
MAKE_OSX_SYSROOT /Developer/SDKs/android-sdk-mac_x86-1.5_r2 Yep, there is the problem. CMake looks in the /Developer/SDKs for all available SDKs and then greps for some information to try and figure out which one to use. Get rid of anything OTHER than official Apple SDKs that are in /Develo

Re: [CMake] cmake on Snow Leopard

2009-08-30 Thread Michael Jackson
Just to follow up a bit more. The "innards" that I was referring to are NOT in CMake 2.6.4 but in CMake CVS. If you can, checkout the latest CMake from CVS build it and then see if your project will configure. Mike On Aug 30, 2009, at 9:48 PM, Michael Jackson wrote: I don

Re: [CMake] cmake on Snow Leopard

2009-08-30 Thread Michael Jackson
I don't think CMake automatically builds Universal Binaries. CMake will look at the arch of the host system and try to build that arch, which is i386 on intel or "ppc" on anything else. Unless there is something in your project where you are setting the CMAKE_OSX_ARCHETECTURES to i386;ppc t

Re: [CMake] Get all required shared libs from a target

2009-08-28 Thread Michael Jackson
If you pull the boost 1.39.0 sources there is an experimental CMake based build system. In those cmake files the developers have somehow figured out how to do what you want. For a given library, you can get all the dependencies. So in your case you would say that lib B depends on Lib A. Th

Re: [CMake] Setting the and Icon for a Windows Executable

2009-08-21 Thread Michael Jackson
er. If you open up the executable with the "resource editor" of Visual Studio you will see it labeled with a double-quoted string : "IDI_ICON1" On Fri, Aug 21, 2009 at 3:55 PM, Michael Jackson > wrote: I was actually looking for the procedure for Qt 4.5. I think I

Re: [CMake] Finding Qt4 binaries under Windows

2009-08-21 Thread Michael Jackson
f you don't like the version number on there then recompile Qt 4.5.1 so that it has a path of C:\Qt and NOT C:\Qt\4.5.1 Understand? -- Mike Jackson On Aug 21, 2009, at 4:01 PM, Sebastian Schuberth wrote: On 21.08.2009 21:14, Michael Jackson wrote: set QTDIR to C:\Qt\4.5.1 Than

Re: [CMake] Finding Qt4 binaries under Windows

2009-08-21 Thread Michael Jackson
find_package(Qt4 PATHS "C:/Qt/4.5.1") _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio On Aug 21, 2009, at 4:00 P

Re: [CMake] Setting the and Icon for a Windows Executable

2009-08-21 Thread Michael Jackson
"res\ \CMakeSetupDialog.ico" (In this example, IDR_MAINFRAME is a #define that gives an integer identifier for the ico resource.) See CMake/Source/MFCDialog/CMakeLists.txt and CMakeSetup.rc for an example. HTH, David On Fri, Aug 21, 2009 at 3:33 PM, Michael Jackson > wro

Re: [CMake] Finding Qt4 binaries under Windows

2009-08-21 Thread Michael Jackson
set QTDIR to C:\Qt\4.5.1 # -- # Qt 4 Section # -- # by default only QtCore and QtGui modules are enabled # other modules must be enabled l

[CMake] Setting the and Icon for a Windows Executable

2009-08-21 Thread Michael Jackson
What would be the "cmake" way of setting an icon (.ico file) as the icon for an executable? _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer

Re: [CMake] eclipse-cmake bug - more info

2009-08-19 Thread Michael Jackson
Another similar approach to try and diagnose the problem would be to have CMake generate plain Makefiles http://www.cmake.org/Wiki/CMake:Eclipse_UNIX_Tutorial Use "Option 2" from that tutorial. You should be able to build your project from the terminal with "Make" and from Eclipse. Both s

Re: [CMake] Ensuring not building for 64-bit

2009-08-17 Thread Michael Jackson
On Aug 17, 2009, at 2:16 PM, Michael Wild wrote: On 17. Aug, 2009, at 18:40, Michael Jackson wrote: On Aug 17, 2009, at 12:30 PM, ML wrote: Hi Mike, The double __LP64__ is making sure it (__LP64__) is both DEFINED and TRUE. # if defined ((__APPLE__)) && defined(__LP64__) &am

Re: [CMake] Ensuring not building for 64-bit

2009-08-17 Thread Michael Jackson
On Aug 17, 2009, at 12:30 PM, ML wrote: Hi Mike, The double __LP64__ is making sure it (__LP64__) is both DEFINED and TRUE. # if defined ((__APPLE__)) && defined(__LP64__) && __LP64__ typedef CIconHandle OSColorIcon; // Mac CIcon #else To to help me fine tune a bit.. Wouldn't (__APPLE

Re: [CMake] Ensuring not building for 64-bit

2009-08-17 Thread Michael Jackson
On Aug 17, 2009, at 12:30 PM, ML wrote: Hi Mike, The double __LP64__ is making sure it (__LP64__) is both DEFINED and TRUE. # if defined ((__APPLE__)) && defined(__LP64__) && __LP64__ typedef CIconHandle OSColorIcon; // Mac CIcon #else To to help me fine tune a bit.. Wouldn't (__APPLE_

<    1   2   3   4   5   6   7   8   9   >