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 mike.jack

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

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 ${QT_QTGUI

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 (${CMAKE_ROOT}/Mo

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 ha

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

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] 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 wrote: On Mon, Jul 20, 2009 at 12:05 PM, Robert Dailey wrote: > Thanks for the response Bill. > I guess I could always use CodeBlocks & MinGW. > Sincerely, > Robert Dailey > How about a singl

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

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 Cole 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... :-) I can open a feature

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

[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

[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

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 might

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 pro

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 thi

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 the

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] [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] 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 ${IC

Re: [CMake] Boost on Windows

2009-06-23 Thread Michael Jackson
On Jun 23, 2009, at 4:23 PM, Bill Hoffman wrote: Christopher Harvey wrote: define BOOST_ROOT and point it at the root install location for boost. I had the same problem, that fixed it. I only had to do that on windows. There seems to be a bug in the FindBoost, BOOST_ROOT should not be req

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

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] 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 Softwarewww.bluequar

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@ #else

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 buil

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 th

Re: [CMake] Avoiding error when using add_subdirectory twice on same path (CMake 2.6.4)

2009-06-16 Thread Michael Jackson
myApp: project(myApp) add_subdirectory(commonLib) add_subdirectory(lib1) add_subdirectory(lib2) add_executable(myApp ${files}) target_link_libraries(myApp lib1 lib2) lib1/lib2: project(lib1) add_library(lib1 ${files}) target_link_libraries(lib1 commonLib) I am doing exactly this currently

[CMake] Variable availability from the FindXXX modules

2009-06-12 Thread Michael Jackson
I have my cmake build system kinda working but I had to put in what I think is a kludge to get it to work. In my top level CMakeLists.txt file I "include" another CMake file which calls another project via add_subdirectory(). With in that last call is a call to "FindBoost" which goes just f

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

2009-06-11 Thread Michael Jackson
Bill Hoffman wrote: Michael Jackson wrote: So it builds a 32 bit executable. :) Are you saying (from above) that if I have a 64 bit build of CMake then I will get 64 bit binaries by default? No, it depends on the flags given to the compiler. I think you want -m64. So if you do this: export

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

2009-06-11 Thread Michael Jackson
On Jun 11, 2009, at 3:09 PM, Bill Hoffman wrote: Michael Jackson wrote: 501:[mjack...@ferb:~]$ cd Desktop/ 502:[mjack...@ferb:Desktop]$ mkdir Test 503:[mjack...@ferb:Desktop]$ cd Test; mkdir Build; cd Build 509:[mjack...@ferb:Build]$ cmake ../ -- The C compiler identification is GNU -- The

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

2009-06-11 Thread Michael Jackson
et On Jun 11, 2009, at 2:46 PM, Bill Hoffman wrote: Michael Jackson wrote: And what if you are on a system like OS X where the default build is 32 bit but you can have a 64 bit binary built? Then CMAKE_SIZEOF_VOID_P is going to be invalid. No, it is done with a try compile based on the cur

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

2009-06-11 Thread Michael Jackson
And what if you are on a system like OS X where the default build is 32 bit but you can have a 64 bit binary built? Then CMAKE_SIZEOF_VOID_P is going to be invalid. --- Mike Jackson www.bluequartz.net On Jun 11, 2009, at 2:06 PM, Bill Hoffman wrote: kent williams wrote:

Re: [CMake] cpack hello world, empty packages - novice warning

2009-06-10 Thread Michael Jackson
Don't you need to actually _compile_ your code first? I don't think cpack will automatically build your project for you. Just a guess. _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.b

Re: [CMake] Using debug libraries in Qt frameworks with both debug and release libraries

2009-06-09 Thread Michael Jackson
http://doc.trolltech.com/4.5/mac-differences.html Which will then send you to: http://developer.apple.com/technotes/tn2004/tn2124.html#SECDEBUGLIB and the next section following that: http://developer.apple.com/technotes/tn2004/tn2124.html#SECJUSTONELIB HTH ___

Re: [CMake] Creating one Visual Studio solution for many configurations and platforms

2009-06-05 Thread Michael Jackson
On Jun 5, 2009, at 8:00 AM, Nils Busch wrote: Hello, ist it possible with cmake to generate one Visual Studio solution file for many different combinations of configurations (Debug,Release) and platforms(win32, x64). In other words, instead of separate .sln files into separate directories

Re: [CMake] Custom compile command?

2009-06-04 Thread Michael Jackson
On Jun 4, 2009, at 4:18 PM, Bob Tanner wrote: I'm moving an open source project (netrek) to cmake. Things are going great except for 1 fairly convoluted Makefile snippet listed below: commands_mars.o: $(PMAKE) ${srcdir}/../ntserv/commands.c $(CC) $(CFLAGS) $(DEP) -DDOG -c ${srcdir}/

Re: [CMake] Trouble setting LIBRARY_OUTPUT_DIRECTORY

2009-06-04 Thread Michael Jackson
On 6/4/09 1:22 PM, "Michael Jackson" wrote: # -- Setup output Directories - SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/Bin ) # - Setup the Executable output Directory - SET (CMAKE_RUNTIME_OUTPUT

Re: [CMake] Trouble setting LIBRARY_OUTPUT_DIRECTORY

2009-06-04 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] for loop won't locate libs

2009-06-04 Thread Michael Jackson
_ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio On Jun 4, 2009, at 1:22 PM, e...@cs.bgu.ac.il wrote: SET(LIB

Re: [CMake] need two compilation to achieve success

2009-06-03 Thread Michael Jackson
On Jun 3, 2009, at 3:56 PM, Bill Hoffman wrote: Michael Jackson wrote: Sorry, that should be: link_directories(${CMAKE_LIBRARY_OUTPUT_DIRECTORY}) No, this is not needed. This is all taken care of by CMake for internal targets. add_library(foobar ...) add_executable(car

Re: [CMake] need two compilation to achieve success

2009-06-03 Thread Michael Jackson
Sorry, that should be: link_directories(${CMAKE_LIBRARY_OUTPUT_DIRECTORY}) Also, are you having CMake build all these dependent libraries? If so then you can use the the invocation of target_link_libraries with just the names of the targets(AgathaHUD). IF those dependent libraries are al

Re: [CMake] need two compilation to achieve success

2009-06-03 Thread Michael Jackson
On Jun 3, 2009, at 2:53 PM, e...@cs.bgu.ac.il wrote: TARGET_LINK_LIBRARIES(AgathaHud libAgathaUtils libAgathaEngine libAgathaThreads) the error output is: /usr/lib/gcc/x86_64-pc-linux-gnu/ 4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -llibAgathaUtils like I've said before, t

Re: [CMake] OS X Bundle startup command

2009-05-29 Thread Michael Jackson
On May 29, 2009, at 11:49 AM, Timothy M. Shead wrote: Tobias Sauerwein wrote: Hi Everyone In my attempt to get cmake/cpack to produce a propper OS X bundle, I hit a problem. We use a launcher script written in applescript which is compiled in the build process. Before producing the b

Re: [CMake] Problem with circular dependencies

2009-05-28 Thread Michael Jackson
On May 28, 2009, at 3:03 PM, Dmytro Ovdiienko wrote: > The other side of this problem is you have to write ADD_SUBDIRECTORY > commands in specific order. IMHO it is inconvenient. CMakeLists are essentially a scripting language, so of course order matters. What would you propose instead? But.

Re: [CMake] Relative include() calls

2009-05-28 Thread Michael Jackson
There is a pattern that I use that is similar to what you are wanting so I'll just throw it out there for your consideration: project (Foo) #CMake will now Define Foo_SOURCE_DIR which # is the same as the current directory. It is # also put into the cache. include (${Foo_SOURCE_DIR}/cmake/com

Re: [CMake] Compiling a project that uses Qt

2009-05-27 Thread Michael Jackson
Try this example Project: http://www.bluequartz.net/software/files/QtTest.zip _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer

Re: [CMake] Eclipse Generator and Configuration

2009-05-20 Thread Michael Jackson
Well, One way to "fix" the issue is to create 2 build directories (which is what all the other IDEs would do), one for Debug and One for Release then in the Eclipse Project when you create the configurations just point eclipse at each build directory for its configuration. This does nec

Re: [CMake] eclipse generator and sibling folders

2009-05-11 Thread Michael Jackson
This is an eclipse issue. What you need to do is to build with "VERBOSE=1" inside eclipse. That will cause the full compile commands to be emitted which will allow Eclipse to parse those commands for "- I" arguments. Eclipse will then add those paths to it's include list. Also, if this happ

Re: [CMake] CMake and Visual Studio

2009-05-09 Thread Michael Jackson
take a look at the following location: My project is laid out in the following way: Project Resources CMake Source MXA Common So Basically all my cmake type of support files go in Project

Re: [CMake] Double builds required in XCode w/CMake when changing UI code in QtDesigner

2009-04-29 Thread Michael Jackson
You might try the following: add_executable ( Sumatra ${SumatrSources} ${SumatraUISHeaders} ) and see what happens. Here is a snippet from one of my own projects: # -- Run MOC and UIC on the necessary files QT4_ADD_RESOURCES( Generated_RC_SRCS ${ModelEditor_RCS} ) # this will run uic on .

Re: [CMake] findBoost says it finds static unit testing libraries, but does not set them

2009-04-18 Thread Michael Jackson
On Apr 17, 2009, at 11:56 PM, Philip Lowman wrote: On Thu, Apr 16, 2009 at 4:27 AM, Jonatan Bijl wrote: Boost_Unit_test_framework_library is not in the list. About the filenames: these libs are the result of compiling boost 1.38.0 with cmake under linux. (Cmake for boost is still exper

Re: [CMake] Compiling static and shared library only once (wiki seems to have an error)

2009-04-16 Thread Michael Jackson
make VERBOSE=1 _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio On Apr 16, 2009, at 8:19 PM, Shaun Cummins wrot

[CMake] QtCreator Comments - was [CMake generators (Xcode and Unix Makefile)]

2009-04-16 Thread Michael Jackson
On Apr 16, 2009, at 6:33 AM, Tobias Rudolph wrote: On 16 Apr 2009, at 11:54, Andreas Pakulat wrote: On 16.04.09 09:26:45, Tobias Rudolph wrote: On 15 Apr 2009, at 22:35, Alexander Neundorf wrote: On Wednesday 15 April 2009, Michael Jackson wrote: On Apr 15, 2009, at 9:57 AM, christophe

Re: [CMake] Linking to a library with a "-"

2009-04-15 Thread Michael Jackson
building Boost with CMake and using FindBoost.cmake are two totally different things. Build boost however you want or get the official binaries from BoostPro.com and install as appropriate. THEN in your own CMakeLists.txt file use something like the following: set(Boost_USE_MULTITHREADED

Re: [CMake] CMake generators (Xcode and Unix Makefile)

2009-04-15 Thread Michael Jackson
On Apr 15, 2009, at 9:57 AM, christophe laferriere wrote: Hi all, I was using classic Unix Makefile generator until I found a webpage explaining CMake could produce a nice xcode project file using "cmake -G Xcode" so I ran that command in my source directory and I get a nice xcode proje

Re: [CMake] Generating Source Files

2009-04-08 Thread Michael Jackson
Jeremy Cowgar wrote: Bill Hoffman wrote: One more option would be to run the parser every time cmake is run. If you had an option to the parser that just spit out the list of files you needed to compile, and it ran relatively fast, you could do this: # only run if parser.e is newer than sou

Re: [CMake] load CMakeCache.txt settings into new build directory?

2009-04-06 Thread Michael Jackson
I _think_ the way to do this in your script would be to use either one of: -C = Pre-load a script to populate the cache. -D := = Create a cmake cache entry. In the -C variant you would have a *.cmake file that has all the necessary entries in it that you want to set, or

Re: [CMake] Feature Request: Additional directory for customized/private

2009-04-03 Thread Michael Jackson
• CMAKE_MODULE_PATH: Path to look for cmake modules to load. Specifies a path to override the default seach path for CMake modules. For example include commands will look in this path first for modules to include. Example follows # Prepend my own path to look for modules. set (CM

Re: [CMake] Need advice for unit test structure

2009-04-02 Thread Michael Jackson
On Apr 2, 2009, at 11:04 PM, Philip Lowman wrote: On Thu, Apr 2, 2009 at 5:07 PM, Robert Dailey wrote: If there was some way for CMake to utilize "solution folders" in Visual Studio, we could easily organize unit tests into a hierarchy. This way the solution explorer would not be cluttered

Re: [CMake] Qt 4.5 missing parts of QtGui.framework on OS X

2009-03-30 Thread Michael Jackson
Just off the top of my head a "copy_framework" function with some optional parameters to prune the Headers directory or other directories might be nice. For bonus points, prune older versions of the library that are in the framework, ie those NOT pointed to by "Versions->Current". Wish

Re: [CMake] How to avoid a console come out on WinXp(Cmake+Qt) ?

2009-03-29 Thread Michael Jackson
Look for at the documentation for add_executable(...). You probably need something like add_executable(foo WIN32 ${sources}) _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequar

Re: [CMake] building within msys/mingw

2009-03-27 Thread Michael Jackson
Stop. Go back and get the prebuilt binary of CMake for Windows. It will work for all the visual studios, MSYS, MinGW, and a few others on windows. The default happens to be Visual Studio but you can select what type of "project files" to generate on the first pass with cmake. You can a

Re: [CMake] execute_process() and writing output to a file

2009-03-26 Thread Michael Jackson
Doxygen. Could you provide an example of a doxygen command-line evocation that utilizes this feature? For example, if I wanted to set the project name programmatically (i.e. via command line), how would I do this through your method? On Thu, Mar 26, 2009 at 2:31 PM, Michael Jackson > wrote: Wha

Re: [CMake] Forcing location of binary directory in CMake

2009-03-26 Thread Michael Jackson
I would use something like the following: get_filename_component(buildParent ${CMAKE_CURRENT_BINARY_DIR} PATH) if (NOT ${buildParent} STREQUAL ${${PROJECT_NAME}_SOURCE_DIR}) message(FATAL_ERROR "Wrong Build Directory") endif() Or something similar to that might work. ___

Re: [CMake] execute_process() and writing output to a file

2009-03-26 Thread Michael Jackson
are available to any child processes (i.e. available to the doxygen child process. Visual Studio would be the parent process). On Thu, Mar 26, 2009 at 11:31 AM, Michael Jackson > wrote: option(MXA_BUILD_API_DOCS "Use Doxygen to create the HTML based API documentation" OFF) if(MXA

Re: [CMake] execute_process() and writing output to a file

2009-03-26 Thread Michael Jackson
option(MXA_BUILD_API_DOCS "Use Doxygen to create the HTML based API documentation" OFF) if(MXA_BUILD_API_DOCS) FIND_PACKAGE(Doxygen) if (NOT DOXYGEN_FOUND) message(FATAL_ERROR "Doxygen is needed to build the documentation.") endif() configure_file(${MXA_RESOURCES_DIR}/MXADataModel

Re: [CMake] setting different include_directories, link_directories, etc for different targets

2009-03-26 Thread Michael Jackson
Just thinking out loud here so none of this may work. You _could_ potentially have the same "target" compiled for 2 different platforms but this generally goes against the general CMake workflow. I guess you could have a tope level CMakeLists.txt file that has something like: # Make this

Re: [CMake] message() text shows up as RED in cmake-gui

2009-03-25 Thread Michael Jackson
Would it be possible to do what compilers do: prepend status lines with "STATUS", warning with "WARNING" and error with "ERROR". That makes it easier to grep if needed and may help pull attention to each type of output. Just thinking out loud... --- Mike Jackson www.bluequ

Re: [CMake] How to emulate autotools "make check"?

2009-03-25 Thread Michael Jackson
On Mar 25, 2009, at 11:06 AM, Marcel Loose wrote: On Wed, 2009-03-25 at 15:16 +0100, Eric Noulard wrote: 2009/3/25 Marcel Loose : On Fri, 2009-03-20 at 16:34 +0100, Eric Noulard wrote: 2009/3/20 Marcel Loose : Perfect! Ok fine. I now use add_custom_target(check COMMAND $ {CMAKE_CTEST_C

Re: [CMake] How to emulate autotools "make check"?

2009-03-25 Thread Michael Jackson
Create an account at the wiki site. Create a new page with your "tutorial" Create a link on the main page to your new tutorial. --- Mike Jackson www.bluequartz.net On Mar 25, 2009, at 10:15 AM, Marcel Loose wrote: On Fri, 2009-03-20 at 16:34 +0100, Eric Noulard wrote: 2009/3

Re: [CMake] CMAKE_INSTALL_PREFIX: Win32 quoting problem

2009-03-25 Thread Michael Jackson
upposed to be this hard. 2009/3/25 Michael Jackson Yep, sorry about that, too early over here, Try this. SET(CMAKE_INSTALL_PREFIX "$ENV{ProgramFiles}/${PROJECT_NAME}_$ {VERSION}") IF (WIN32) STRING(REPLACE "\\" "" CMAKE_INSTALL_PREFIX $ {CMAKE_INST

Re: [CMake] xcode generator

2009-03-24 Thread Michael Jackson
I just generated an Xcode project for one of my own projects that uses boost and the OP is correct, code completion doesn't seem to work for boost. Odd. Fortunately I use Eclipse CDT for C++ instead of Xcode which seems to work reasonably well on OS X. At least I get boost code completi

Re: [CMake] Adding debug definitions to OSX Xcode projects

2009-03-20 Thread Michael Jackson
Actually, if someone on OS X decides to generate Makefiles then CMAKE_BUILD_TYPE can be very important. You can simply do what you are doing and it _should_ work. The order of operations in a CMake file, like any other language, is important. It just depends on what is after those lines tha

Re: [CMake] How best to capture the current Date/Time

2009-03-20 Thread Michael Jackson
On Mar 20, 2009, at 10:12 AM, Bill Hoffman wrote: Michael Jackson wrote: On Mar 20, 2009, at 5:30 AM, Eric Noulard wrote: 2009/3/20 Philip Lowman : On Thu, Mar 19, 2009 at 11:18 PM, Michael Jackson wrote: I am trying to find a nice portable solution for generating version strings based

Re: [CMake] How best to capture the current Date/Time

2009-03-20 Thread Michael Jackson
On Mar 20, 2009, at 5:30 AM, Eric Noulard wrote: 2009/3/20 Philip Lowman : On Thu, Mar 19, 2009 at 11:18 PM, Michael Jackson wrote: I am trying to find a nice portable solution for generating version strings based on the date (seems reasonable). I even have my own c+ + code that can

[CMake] How best to capture the current Date/Time

2009-03-19 Thread Michael Jackson
I am trying to find a nice portable solution for generating version strings based on the date (seems reasonable). I even have my own c++ code that can generate the proper string for me. The problem that I can not seem to get my head around is that I need to compile and run the program at cm

Re: [CMake] How to describe lib dependencies when a lib has different possible implementations?

2009-03-19 Thread Michael Jackson
Not sure you want to go down this path but the CMake files in the SVN repository of Boost has some facilities to figuring out dependencies through a chain like you have. Basically what the boost authors have created are some macros that allow you to add a library/executable and declare only

Re: [CMake] Interpretation of RUNTIME_OUTPUT_DIRECTORY in VisualStudio

2009-03-17 Thread Michael Jackson
try the following: ADD_CUSTOM_TARGET(QtLibs COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/libQtCore.so.4 ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}...) • CMAKE_CFG_INTDIR: Build time configuration directo

Re: [CMake] MACOSX_BUNDLE_ICON_FILE bug

2009-03-14 Thread Michael Jackson
On Mar 14, 2009, at 10:34 AM, Mike Arthur wrote: On Saturday 14 March 2009 14:23:51 Michael Jackson wrote: Well I thought that was what I was supposed to do. If I give it the path then it automatically gets installed into the bundle. Obviously that will not work without some modifications/bug

Re: [CMake] MACOSX_BUNDLE_ICON_FILE bug

2009-03-14 Thread Michael Jackson
On Mar 14, 2009, at 10:12 AM, Mike Arthur wrote: On Saturday 14 March 2009 14:04:22 Michael Jackson wrote: Is it a bug that CMake is putting in the absolute path to my icon file instead of just the name? You gave it an absolute path though? I got it working fine when I just installed the

[CMake] MACOSX_BUNDLE_ICON_FILE bug

2009-03-14 Thread Michael Jackson
have the following cmake code: IF (APPLE) SET(GUI_TYPE MACOSX_BUNDLE) SET(MACOSX_BUNDLE_ICON_FILE ${RoboMetTools_RESOURCES_DIR}/ QRoboMetImporter.icns) SET(PROJECT_SRCS ${PROJECT_SRCS} ${MACOSX_BUNDLE_ICON_FILE}) SET_SOURCE_FILES_PROPERTIES(${RoboMetTools_RESOURCES_DIR}/ QRoboMetImporter.i

Re: [CMake] Boost CMakeification progress?

2009-03-13 Thread Michael Jackson
I would ask on the boost-cmake mailing list. You will probably get good replies from notable people from the boost project. _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Softwarewww.bluequartz.n

Re: [CMake] CMake GUI Issue

2009-03-12 Thread Michael Jackson
Um, wait. is the size being changed a bug in CMake-Gui, Qt or WindowBlinds? I am going to guess that Microsoft doesn't officially support "skinning" and so you want the CMake team to support a non- supported feature of Windows on a shipping product? Doesn't really seem like a good idea to me

Re: [CMake] running CMake from different parts of the tree

2009-03-12 Thread Michael Jackson
Depending on your build system (Makefiles works best although some IDE's may work this way also) is that you only have CMake generate build files from ProductLib/Build. Then if you are just tweaking baselib then you 'cd' into Build/BaseLib and do a "make" from there. Only BaseLib will be bu

Re: [CMake] Qt find package location

2009-03-11 Thread Michael Jackson
;find-and-guess" game if you have multiple Qt's available. HTH, David On Wed, Mar 11, 2009 at 1:46 PM, Michael Jackson > wrote: You can always do: export QTDIR=/home/dhenry/qtsdk-2009.01/qt export PATH=$QTDIR/bin:$PATH to put the desired qmake as t

Re: [CMake] Qt find package location

2009-03-11 Thread Michael Jackson
You can always do: export QTDIR=/home/dhenry/qtsdk-2009.01/qt export PATH=$QTDIR/bin:$PATH to put the desired qmake as the first one found. _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Software

Re: [CMake] HOW TO: build development versions, plus proper INSTALL setup?

2009-03-09 Thread Michael Jackson
The other items in your list looks like you have figured out so I'll just make a suggestion for #3: I tried the following and it does work: # All the following in its own CMakeLists.txt file that # will be called with add_subdirectory() from the top level # CMakeLists.txt file. project(UnitTe

Re: [CMake] Concern with 2.6.3

2009-03-09 Thread Michael Jackson
On Mar 9, 2009, at 8:57 AM, Pau Garcia i Quiles wrote: On Wed, Mar 4, 2009 at 3:01 PM, Bill Hoffman wrote: Robert Dailey wrote: Hi, I noticed after switching to version 2.6.3 that header files (with HPP extension) are marked as "Exclude from build" in Visual Studio 2008. Is this behav

Re: [CMake] Common binary dir and failed local headers dependencies

2009-03-07 Thread Michael Jackson
In your top most CMakeLists.txt file you might want to try adding the following: # -- Setup output Directories - SET (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/Bin CACHE PATH "Single Directory for all Libraries" ) # - Setup the Execut

Re: [CMake] exe/a/so sufixes depend on configuration

2009-03-04 Thread Michael Jackson
. Another solution is to generate project files for debug and release separately. Regards, Dima 2009/3/4 Michael Jackson I started another thread to ask for some clarification on those issues. If I were you I would write a macro that combines everything that I sent into a single macro call

Re: [CMake] exe/a/so sufixes depend on configuration

2009-03-04 Thread Michael Jackson
, Dima 2009/3/4 Michael Jackson • _POSTFIX: Postfix to append to the target file name for configuration . When building with configuration the value of this property is appended to the target file name built on disk. For non- executable targets, this property is initialized by the value

[CMake] Proper use of CMAKE__POSTFIX

2009-03-04 Thread Michael Jackson
What are the pros and cons of using CMAKE__POSTFIX such as CMAKE_DEBUG_POSTFIX and CMAKE_RELEASE_POSTFIX versus using the "set_target_properties" method to change the name of the generated executable or library? Besides the fact that "This property is ignored on the Mac for Frameworks and

Re: [CMake] exe/a/so sufixes depend on configuration

2009-03-04 Thread Michael Jackson
x for executable. 2009/3/4 Michael Jackson I wrote/tweaked a Tiff cmake build system, this is what I use: IF (BUILD_SHARED_LIBS) IF (WIN32 AND NOT MINGW) SET(LIB_RELEASE_NAME "tiffdll") SET(LIB_DEBUG_NAME "tiffdll_D") ELSE (WIN32 AND NOT MINGW) S

<    2   3   4   5   6   7   8   9   >