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

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

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

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/boost

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 yue.nicho...@gmail.com: 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

[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

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

2009-12-04 Thread Michael Jackson
Jackson www.bluequartz.net 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 indicated

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 www.bluequartz.net On Dec 4, 2009, at 11:10 AM, Michael Jackson wrote: Just

[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:

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

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

2009-12-04 Thread Michael Jackson
: Michael Jackson wrote: 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

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, Text

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 work really nicely

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
the distributed GCC folks who do -j50. ;-) -- Mike Jackson www.bluequartz.net 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_loc

Re: [CMake] Intel Compiler with OSX 10.6

2009-12-02 Thread Michael Jackson
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 specific items

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] 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

[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

Re: [CMake] CDash Setup for HDF5

2009-11-30 Thread Michael Jackson
per day for free. :-) On Tue, Nov 17, 2009 at 5:20 PM, Michael Jackson mike.jack...@bluequartz.net 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 basis. What all is involved in setting up a CDash

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

2009-11-25 Thread Michael Jackson
sorry i didnt find the wiki-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

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

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 mike.jack...@bluequartz.net wrote: Ok, So I registered with my.cdash.org and created the HDF5 project. So

[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?

[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 Studio 2008

Re: [CMake] CDash Setup for HDF5

2009-11-23 Thread Michael Jackson
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. _ Mike Jackson

Re: [CMake] CTest Submission to CDash on MSVC

2009-11-23 Thread Michael Jackson
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 2009 01:43:33 pm Michael Jackson wrote: What

Re: [CMake] CTest Submission to CDash on MSVC

2009-11-23 Thread Michael Jackson
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 file with some basics

[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] Create an XXXConfig.cmake file

2009-11-19 Thread Michael Jackson
, 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? Is there a tutorial

[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

[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

[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

[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.

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 fix them up using

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

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

[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

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 phi...@yhbt.com 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

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

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

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

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,

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

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] 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

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

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,

[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] Testing for SSE and adding appropriate Compile options

2009-09-25 Thread Michael Jackson
: 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 a list. It has to be like

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 www.bluequartz.net On Sep 23, 2009, at 3:09 PM, Jeroen Dierckx wrote: On Wed, Sep 23, 2009 at 9:06 PM,

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

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:

Re: [CMake] cmake on Snow Leopard

2009-09-01 Thread Michael Jackson
, Celil Rufat celil.ru...@gmail.com 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 mike.jack...@bluequartz.net wrote: MAKE_OSX_SYSROOT /Developer/SDKs/android-sdk-mac_x86-1.5_r2 Yep

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

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't think CMake

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

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.

[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] 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

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

2009-08-21 Thread Michael Jackson
\ \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 mike.jack...@bluequartz.net wrote

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

Re: [CMake] Finding Qt4 binaries under Windows

2009-08-21 Thread Michael Jackson
. If 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 www.bluequartz.net 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

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

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

2009-08-17 Thread Michael Jackson
# if defined ((__APPLE__)) defined(__LP64__) __LP64__ // 64 bit headers/defines/typedefs here #else // 32 bit headers/defines/typedefs here #endif _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Software

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

2009-08-17 Thread Michael Jackson
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 #endif _ Mike Jackson

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__)

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__) __LP64__

Re: [CMake] Linking against OS X Frameworks

2009-08-07 Thread Michael Jackson
On Aug 7, 2009, at 9:30 AM, Bill Hoffman wrote: ML wrote: Hi Michael, I still get the same compile errors as before. But works using Xcode for me. Is there another resource as I can't find an example of these basic things on the wiki. Even Google searching is not really turning up much.

Re: [CMake] Can cmake do configure tests?

2009-08-06 Thread Michael Jackson
Here is some snippets from a project that I use: (hdf5) # Include all the necessary files for macros INCLUDE (${CMAKE_ROOT}/Modules/CheckFunctionExists.cmake) INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake) INCLUDE (${CMAKE_ROOT}/Modules/CheckIncludeFileCXX.cmake) INCLUDE

Re: [CMake] Linking against OS X Frameworks

2009-08-06 Thread Michael Jackson
Not sure if this helps but from the FindQt4.cmake file there is the following: IF(Q_WS_MAC) SET(QT_QTGUI_LIB_DEPENDENCIES ${QT_QTGUI_LIB_DEPENDENCIES} - framework Carbon) # Qt 4.0, 4.1, 4.2 use QuickTime IF(QT_VERSION_MINOR LESS 3) SET(QT_QTGUI_LIB_DEPENDENCIES

Re: [CMake] Linking against OS X Frameworks

2009-08-06 Thread Michael Jackson
_ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio On Aug 6, 2009, at 3:52 PM, ML wrote: Hey Mike, Also is

Re: [CMake] Displaying sub projects in Eclipse

2009-08-05 Thread Michael Jackson
On Aug 5, 2009, at 5:05 PM, Alexander Neundorf wrote: On Monday 03 August 2009, Dim wrote: Hi group, I'm using cmake 2.6.4 for cross platform development in Windows and Linux. On Windows we're using Visual Studio 9 and on Linux Eclipse with CDT (4 or 5 - still not decided). The code

Re: [CMake] Qt, PrivateClass and not fount moc_xxx.cpp

2009-07-29 Thread Michael Jackson
You probably need to add an include_directories() command that points to where ever the moc_XXX.cpp file can be found. _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net

Re: [CMake] Set compiler

2009-07-29 Thread Michael Jackson
If you are in a pure msys environment you may wan to try: cmake -G MSYS Makefiles [path to build directory] or cmake -G MinGW Makefiles if you are in MinGW command prompt ( like the one distributed with Qt) _ Mike Jackson

Re: [CMake] problems running a windows build exectuable

2009-07-26 Thread Michael Jackson
I just got in the habit of writing code that copies my 3rd party DLLs into the current CMake Binary directory (Like Qt, HDF5.. ). This lets me debug my programs with less headaches. Probably not the best/ optimal solution but does get the job done. I have some really scary cmake code if you

Re: [CMake] Building Multiple projects from a single CMakeList

2009-07-22 Thread Michael Jackson
You can have as many add_executable as you want. Typically what you see is the project either just includes expat and builds it or offers the user the option of using a pre-built from the system (or some other location). OPTION(USE_SYSTEM_EXPAT Use an expat library supplied on the system

Re: [CMake] [MacOSX] How to compile for certain SDK?

2009-07-20 Thread Michael Jackson
On Jul 20, 2009, at 7:44 AM, Michael Wild wrote: On 20. Jul, 2009, at 13:22, Steven Van Ingelgem wrote: Hi, I checked and in Darwin.cmake there are several items like CMAKE_OSX_ARCHITECTURES_DEFAULT and CMAKE_OSX_DEPLOYMENT_TARGET_DEFAULT... But... I can't set them properly in my own

Re: [CMake] CMake GCC on Windows

2009-07-20 Thread Michael Jackson
On Jul 20, 2009, at 12:25 PM, Robert Dailey wrote: On Mon, Jul 20, 2009 at 11:16 AM, John Drescher dresche...@gmail.com wrote: On Mon, Jul 20, 2009 at 12:05 PM, Robert Daileyrcdai...@gmail.com wrote: Thanks for the response Bill. I guess I could always use CodeBlocks MinGW. Sincerely,

Re: [CMake] How to report deprecated functionalities (subdirs, install_files...)

2009-07-16 Thread Michael Jackson
On Jul 16, 2009, at 10:41 AM, Mathieu Malaterre wrote: On Thu, Jul 16, 2009 at 4:32 PM, David Coledavid.c...@kitware.com wrote: There is not a built-in method of identifying code like that, although that would be a good feature request. Especially if it had a patch attached to it... :-)

Re: [CMake] Cmake gui and cli

2009-07-16 Thread Michael Jackson
ccmake - which is a curses based gui from the cli. _ Mike Jackson mike.jack...@bluequartz.net www.bluequartz.net On Jul 16, 2009, at 10:41 AM, Alin M Elena wrote: Hi cmake-gui is very useful for big projects

[CMake] Equivalent to VERBOSE for nmake

2009-07-15 Thread Michael Jackson
Is there an equivalent to make VERBOSE=1 but for nmake files under windows? Thanks _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer

[CMake] CMake definition for using NMake files

2009-07-15 Thread Michael Jackson
Does CMake have a predefined definition like MSVC but when using NMake files? Thanks _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer

Re: [CMake] Equivalent to VERBOSE for nmake

2009-07-15 Thread Michael Jackson
On Jul 15, 2009, at 9:38 AM, Bill Hoffman wrote: Michael Jackson wrote: Is there an equivalent to make VERBOSE=1 but for nmake files under windows? nmake VERBOSE=1. However, to get all the compile lines, you have to edit Platforms/Windows.cmake. # uncomment these out to debug nmake

Re: [CMake] CMake definition for using NMake files

2009-07-15 Thread Michael Jackson
, Ohio On Jul 15, 2009, at 9:43 AM, Michael Jackson wrote: Does CMake have a predefined definition like MSVC but when using NMake files? Thanks _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Software

Re: [CMake] Problem with design and ADD_SUBDIRECTORY

2009-07-14 Thread Michael Jackson
In the top level CMakeLists.txt you should be able to do something like: add_executable(Foo .. ) target_link_libraries(Foo package1 package2) and it should just work. CMake will figure out the dependencies. Also in package2/CMakeLists.txt target_link_libraries(package2 package1) will work

Re: [CMake] Eclipse generator - basic macros

2009-07-14 Thread Michael Jackson
On Jul 14, 2009, at 11:40 AM, Benjamin Schindler wrote: #if defined(_MSC_VER) (_MSC_VER = 1300) #ifdef FLOW_DLL_EXPORT #define FLOW_DLL _declspec(dllexport) #else #define FLOW_DLL _declspec(dllimport) #endif #else #ifdef __GNUC__ #define FLOW_DLL #endif #endif Not sure how dangerous this

Re: [CMake] Eclipse generator - basic macros

2009-07-14 Thread Michael Jackson
Jul 14, 2009, at 2:26 PM, Alexander Neundorf wrote: On Tuesday 14 July 2009, Miguel A. Figueroa-Villanueva wrote: On Tue, Jul 14, 2009 at 11:40 AM, Benjamin Schindler wrote: Miguel A. Figueroa-Villanueva wrote: On Mon, Jul 13, 2009 at 10:31 AM, Benjamin Schindler wrote: I'm working on a

Re: [CMake] Eclipse generator - basic macros

2009-07-14 Thread Michael Jackson
If you are using nmake then you are using MSVC which means you would drop down into the #if defined (_MSVC_VER) block. At that point FLOW_DLL is going to be defined as either the import or export version neither of which I have any faith that CDT Would be able to parse any way (or it

Re: [CMake] [New Module] FindHDF5.cmake

2009-07-10 Thread Michael Jackson
On Jul 10, 2009, at 11:13 AM, Brad King wrote: Will Dicharry wrote: Mike Jackson wrote: Can you post your module or attach it to a bug/feature request? I also have a FindHDF5 module and I would like to compare the two. Sorry about that, I meant to attach the module to the first email.

Re: [CMake] [New Module] FindHDF5.cmake

2009-07-10 Thread Michael Jackson
reponses in line.. On Jul 10, 2009, at 12:33 PM, Will Dicharry wrote: Michael Jackson wrote: On Jul 10, 2009, at 11:13 AM, Brad King wrote: Will Dicharry wrote: Mike Jackson wrote: Can you post your module or attach it to a bug/feature request? I also have a FindHDF5 module and I

Re: [CMake] Intel compiler on OS X? (solved)

2009-07-02 Thread Michael Jackson
There is a Darwin-icpc module shipped with CMake. It used to work when I created it but maybe something broke during development or when Intel shipped a new compiler? I setup the following in my .bash_profile: alias intelcompile='export CC=/usr/bin/icc; export CXX=/usr/bin/icpc; source

Re: [CMake] Boost on Windows

2009-06-23 Thread Michael Jackson
I use the boost pre-compiled all the time and I don't have any of these issues BUT I do set the BOOST_ROOT environment variable in My Computer-Advanced Settings after I install which may be the difference. I use threads, program_options, testing, filesystem and system. I did notice in

Re: [CMake] Boost on Windows

2009-06-23 Thread Michael Jackson
On Jun 23, 2009, at 4:17 PM, Curtis Rueden wrote: Hi Mike, I use the boost pre-compiled all the time and I don't have any of these issues BUT I do set the BOOST_ROOT environment variable in My Computer-Advanced Settings after I install which may be the difference. I use threads,

Re: [CMake] Automating configure and generate?

2009-06-22 Thread Michael Jackson
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr/mylocation -DMyCMakeValue=SomeOtherValue ../ is one way to do it. _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Software

Re: [CMake] [Insight-developers] 64 bit build detection

2009-06-19 Thread Michael Jackson
Just to follow up with this, according to Apple's Universal Porting guide when figuring out if the system is big or little endian you should NOT test for the type of processor but rather have something like the following: #if !defined(__APPLE__) #define HOST_BIGENDIAN @HOST_BIGENDIAN@

Re: [CMake] Generator for Xcode 3.0+?

2009-06-18 Thread Michael Jackson
What is the difference and what does a project that is Xcode 3.0+ compatible gain you? In other words, what are we missing by NOT having a true Xcode 3.0+ compatible project? --- Mike Jackson www.bluequartz.net On Jun 18, 2009, at 2:31 PM, Doug Gregor wrote: When I build

Re: [CMake] Linux In-the-source Build multiple modes without swithing

2009-06-17 Thread Michael Jackson
On Jun 17, 2009, at 11:06 AM, Charlie Sun wrote: Hi, I'm trying to do a linux build with both release and debug mode. In stead of builing out of source as indicated on the FAQ 4.15, I really need to do in the source build. currently, if I do a release build and then a debug build and

<    1   2   3   4   5   6   7   8   9   >