Re: [CMake] Need advice for unit test structure

2009-04-02 Thread Robert Dailey
/Proposals:Increasing_ITK_Code_Coverage#Google_Test You can have multiple tests embedded in one executable, which is what the gtest framework does. Best regards, -dan On 4/2/09 3:00 PM, Robert Dailey rcdai...@gmail.com wrote: Hi, Currently we have a directory called test under each project we have. Each

[CMake] Disabling RTTI in a portable way

2009-04-02 Thread Robert Dailey
Is there a portable way of disabling Runtime Type Information (RTTI) through CMake? I hope I don't have to strangle CMake too much to get this basic functionality... ___ Powered by www.kitware.com Visit other Kitware open-source projects at

[CMake] Xcode generator?

2009-03-31 Thread Robert Dailey
What is the xcode generator name on the command line? I don't see it in the official list of generatorshttp://cmake.org/cmake/help/cmake2.6docs.html#section_Generators . ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Xcode generator?

2009-03-31 Thread Robert Dailey
david.c...@kitware.comwrote: It's name is Xcode and it's only available on the Mac build of CMake. On Tue, Mar 31, 2009 at 2:33 PM, Robert Dailey rcdai...@gmail.comwrote: What is the xcode generator name on the command line? I don't see it in the official list of generatorshttp://cmake.org

Re: [CMake] Need help with GLOB expression

2009-03-30 Thread Robert Dailey
On Sun, Mar 29, 2009 at 9:31 PM, Bill Hoffman bill.hoff...@kitware.comwrote: Robert Dailey wrote: But it does work! I've tested it several times with much success! I'm not sure what you're saying about *.c, *.cxx, and *.h. Could you explain? Also, I won't have access to a bash shell

Re: [CMake] Need help with GLOB expression

2009-03-30 Thread Robert Dailey
On Sun, Mar 29, 2009 at 11:46 PM, James Bigler jamesbig...@gmail.comwrote: Why doesn't *.[hi]pp work? It works for me with ls and with file(GLOB): $ touch blah.hpp blah2.ipp $ ls *.[hi]pp blah.hppblah2.ipp Also, if the glob expressions get translated into regular expressions, is

[CMake] Proper way to define a list

2009-03-30 Thread Robert Dailey
Hi, What's the proper way to define a list? Suppose I have 3 words: Foo, Bar, and Baz. I want these 3 strings to be in a list called Stuff. Would I do this: set( Stuff Foo;Bar;Baz ) Is this correct? I don't think this can be right because it runs the risk of mixing semi-colons with spaces to

Re: [CMake] Proper way to define a list

2009-03-30 Thread Robert Dailey
On Mon, Mar 30, 2009 at 2:41 PM, Bill Hoffman bill.hoff...@kitware.comwrote: Alexander Neundorf wrote: On Monday 30 March 2009, Robert Dailey wrote: Hi, What's the proper way to define a list? Suppose I have 3 words: Foo, Bar, and Baz. I want these 3 strings to be in a list called Stuff

[CMake] Setting include directories on a target, not directory.

2009-03-30 Thread Robert Dailey
Hi, I realize there's another post on the list where another user was asking relatively the same question, but this specific issue was never addressed. What I'm trying to do is specify include directories on a per-project basis. I'm avoiding the monolithic shared include directories approach,

Re: [CMake] Need help with GLOB expression

2009-03-29 Thread Robert Dailey
. The |-sign is an or-operator so the standard regular expression for this would be: ^.*\.(h|hpp|ipp)$ but now I realize that global expression and regular expression is not the same thing... Sorry for that! 2009/3/29 Robert Dailey rcdai...@gmail.com mailto:rcdai...@gmail.com I would prefer

Re: [CMake] Need help with GLOB expression

2009-03-29 Thread Robert Dailey
. The |-sign is an or-operator so the standard regular expression for this would be: ^.*\.(h|hpp|ipp)$ but now I realize that global expression and regular expression is not the same thing... Sorry for that! 2009/3/29 Robert Dailey rcdai...@gmail.com I would prefer it just work

Re: [CMake] Need help with GLOB expression

2009-03-29 Thread Robert Dailey
On Sun, Mar 29, 2009 at 4:14 PM, Bill Hoffman bill.hoff...@kitware.comwrote: James Bigler wrote: Ah, yes. I also was getting globbing expressions and regular expressions mixed up. From the docs (and experimentation), it looks like CMake only supports *, ?, and [], but not {} which would

Re: [CMake] [Doxygen-users] Complex documentation question

2009-03-28 Thread Robert Dailey
! The only probleme you can have is the cross-dependencies, but it also a big probleme at link stage so you shouldn't have it. -- Benoit RAT www.neub.co.nr On Sat, Mar 28, 2009 at 12:27 AM, Robert Dailey rcdai...@gmail.comwrote: Hi, Suppose I have three C++ libraries called A, B, and C. Each

Re: [CMake] [Doxygen-users] Complex documentation question

2009-03-28 Thread Robert Dailey
no depency libio depend on libcore main depend on libio and libcore. -- Benoit RAT www.neub.co.nr On Sat, Mar 28, 2009 at 4:26 PM, Robert Dailey rcdai...@gmail.com wrote: The thing is, I'm generating all of the projects myself. I have 3 different doxygen config files for 3 projects (Remember

Re: [CMake] Need help with GLOB expression

2009-03-28 Thread Robert Dailey
Can I get some help with this? Sorry to rush, but I'm a bit blocked. I know some of you may be tempted to ask my why I'm doing this and possibly even try to change my mind, but with all do respect, I don't plan to avoid globbing :) On Fri, Mar 27, 2009 at 7:07 PM, Robert Dailey rcdai...@gmail.com

Re: [CMake] Need help with GLOB expression

2009-03-28 Thread Robert Dailey
Thank you. For future reference, is the glob syntax for CMake documented anywhere? If it is, I have not been able to find it. Thanks again! On Sat, Mar 28, 2009 at 4:51 PM, Carlson Daniel daniel.c.carl...@gmail.comwrote: try: *.(h|hpp|ipp) 2009/3/28 Robert Dailey rcdai...@gmail.com Can I

Re: [CMake] Need help with GLOB expression

2009-03-28 Thread Robert Dailey
: file(GLOB_RECURSE h_files *.h) file(GLOB_RECURSE hpp_ipp_files *.[hi]pp) set(files ${h_files} ${hpp_ipp_files}) James On Sat, Mar 28, 2009 at 6:09 PM, Robert Dailey rcdai...@gmail.com wrote: Thank you. For future reference, is the glob syntax for CMake documented anywhere? If it is, I

Re: [CMake] Question about find_library()

2009-03-27 Thread Robert Dailey
On Fri, Mar 27, 2009 at 12:29 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: I think I have to object here. AFAIK the CMake devs prefer to basically use mark_as_advanced() by default for all results from find_library/program/path/file() in find-modules, and only keep those entries

Re: [CMake] Visual Studio Warning Level

2009-03-27 Thread Robert Dailey
Hey guys, I'm responding to this issue to check on the progress of this. I'm still currently unable to easily set the warning level in Visual Studio to level 4 and I really need to be able to do this. This really is a serious issue for me. How are things going in this area? Would it be possible

[CMake] Need help with GLOB expression

2009-03-27 Thread Robert Dailey
I need to create a glob expression (For file( GLOB_RECURSE ) ) that will find files with the following extensions: *.h *.hpp *.ipp How can I format my glob expression to do this? I know for HPP and IPP files, my glob expression would be: *.[hi]pp However, this ignores all H files.

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

2009-03-26 Thread Robert Dailey
Hi, I've currently been running doxygen through execute_process() in CMAKE. I've set it up like this: find_package( Doxygen REQUIRED ) execute_process( COMMAND ${DOXYGEN_EXECUTABLE} ${cmake_includes}/project.dox WORKING_DIRECTORY ${documentation_dir}

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

2009-03-26 Thread Robert Dailey
...@bluequartz.net BlueQuartz Softwarewww.bluequartz.net Principal Software Engineer Dayton, Ohio On Mar 26, 2009, at 12:23 PM, Robert Dailey wrote: Hi, I've currently been running doxygen through execute_process() in CMAKE. I've set it up like

[CMake] Lacking documentation for cmake -E option

2009-03-26 Thread Robert Dailey
Hi, I'm reviewing the documentation here: http://cmake.org/cmake/help/cmake2.6docs.html#opt:-E Where is the detailed documentation for each of the -E commands? For example, I need documentation on how to use -E environment. If someone could provide a URL that I could bookmark for future reference

[CMake] Forcing location of binary directory in CMake

2009-03-26 Thread Robert Dailey
Hi, For various reasons I will not bother to mention here, I need to stipulate the location of the binary directory. For example, if my source directory is: C:\foo\bar My build directory *must* be here: C:\foo\bar\build The user should not have a choice in the matter. This is a requirement. Is

[CMake] Renaming cache variables and forcing a cleanup

2009-03-26 Thread Robert Dailey
Currently other members on my project have a variable in their cache named FOO_BAR. I renamed it to Some_Foo_Bar. It would be unmanageable to have to create a conference call or send out an email to everyone saying Hey, delete your cache!. How can I programmatically force this variable to be

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

2009-03-26 Thread Robert Dailey
, 2009, at 2:38 PM, Robert Dailey wrote: I like the idea of making it a post build event, however I'm doing certain things that you are not that will be more difficult to support outside of CMake. For example, I set certain environment variables that are accessed by the Doxyfile

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

2009-03-26 Thread Robert Dailey
www.bluequartz.net On Mar 26, 2009, at 3:39 PM, Robert Dailey wrote: I'm not at all familiar with this feature of 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

Re: [CMake] Question about find_library()

2009-03-26 Thread Robert Dailey
pairs: set( CACHE ADVANCED ) mark_as_advanced() - OR - set( CACHE INTERNAL ) mark_as_internal() Does this make sense, or am I misunderstanding the difference between the two? On Thu, Mar 26, 2009 at 8:18 PM, Philip Lowman phi...@yhbt.com wrote: On Thu, Mar 26, 2009 at 6:52 PM, Robert Dailey

[CMake] Adding to PATH

2009-03-25 Thread Robert Dailey
Is there a way that I can temporarily add an executable search path to PATH for the Linux and Windows platforms? I temporarily wish to allow CMake to find certain third party command line applications so it may execute them. I'd be calling CMake's execute_process() function to do this. But this by

Re: [CMake] Adding to PATH

2009-03-25 Thread Robert Dailey
Would this work? set( ENV{PATH} ENV{PATH};${CMAKE_SOURCE_DIR}/tools/doxygen ) On Wed, Mar 25, 2009 at 5:30 PM, Robert Dailey rcdai...@gmail.com wrote: Is there a way that I can temporarily add an executable search path to PATH for the Linux and Windows platforms? I temporarily wish

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

2009-03-25 Thread Robert Dailey
Hi, Ever since CMake 2.6.3, the CMake-gui application on Windows has been displaying output from the message() function in red, even if it isn't an error. For example, if I do this: message( Hello World ) The text Hello World will show up in RED. Is this by design? I would prefer it show up as

Re: [CMake] Adding to PATH

2009-03-25 Thread Robert Dailey
wherever is appropriate. It also takes into account Windows .exe suffixes vs. Linux no suffixes. Gregory Peele, Jr. Applied Research Associates, Inc. *From:* cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] *On Behalf Of *Robert Dailey *Sent:* Wednesday, March 25, 2009 7:12 PM

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

2009-03-25 Thread Robert Dailey
It's been my understanding that calling message() without STATUS, WARNING, or ERROR was a STATUS by default. Considering that when I use both WARNING and ERROR the output looks different. Dialogs will appear and such. Are message() and message( STATUS ) not identical? If not, what are the

Re: [CMake] 2.6.4 RC 1

2009-03-24 Thread Robert Dailey
What exactly does this mean: - Enforce unique binary directories Does this mean instead of all executables going inside bin/debug, that they go inside of something like bin/project_name/debug (For the debug configuration, it would be likewise for release)?

Re: [CMake] RUN_TESTS project dependencies

2009-03-23 Thread Robert Dailey
On Fri, Mar 20, 2009 at 9:33 AM, Marcel Loose lo...@astron.nl wrote: Hi Robert, I am planning to use (but haven't implemented and tried yet): - add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}) to define a custom 'check' target (as with GNU Autotools) - add_executable(testprog

[CMake] How to declare global variables

2009-03-21 Thread Robert Dailey
Currently I'm having a bit of trouble making variables defined in the following directory: C:\a\b\c\d\e\CMakeLists.txt Available to another script in a distant directory, located here: C:\a\b\x\y\z\CMakeLists.txt I've tried using PARENT_SCOPE, but this doesn't declare it high enough. The only

[CMake] Problem with if() and booleans

2009-03-21 Thread Robert Dailey
I currently have the following macro: macro( get_conf_dependencies var_name project_name debug ) if( debug ) message( Using DEBUG ) set( ${var_name} ${${project_name}_DEBUG_DEPENDENCIES} ) else() set( ${var_name} ${${project_name}_RELEASE_DEPENDENCIES} ) endif()

Re: [CMake] Problem with if() and booleans

2009-03-21 Thread Robert Dailey
On Sat, Mar 21, 2009 at 7:42 PM, Philip Lowman phi...@yhbt.com wrote: On Sat, Mar 21, 2009 at 8:00 PM, Robert Dailey rcdai...@gmail.com wrote: I currently have the following macro: macro( get_conf_dependencies var_name project_name debug ) if( debug ) message( Using DEBUG

Re: [CMake] RUN_TESTS project dependencies

2009-03-20 Thread Robert Dailey
On Fri, Mar 20, 2009 at 7:02 AM, Philip Lowman phi...@yhbt.com wrote: On Thu, Mar 19, 2009 at 12:35 AM, Robert Dailey rcdai...@gmail.comwrote: Hi, I'm currently using Visual Studio 2008 and CMake v2.6.3. I noticed that when I create unit tests, they are not added as dependencies

Re: [CMake] RUN_TESTS project dependencies

2009-03-20 Thread Robert Dailey
On Fri, Mar 20, 2009 at 10:30 AM, Eric Noulard eric.noul...@gmail.comwrote: You should file a bug report with ype feature request: http://public.kitware.com/Bug/my_view_page.php Feature request filed here:http://public.kitware.com/Bug/view.php?id=8774

Re: [CMake] RUN_TESTS project dependencies

2009-03-20 Thread Robert Dailey
On Fri, Mar 20, 2009 at 9:33 AM, Marcel Loose lo...@astron.nl wrote: Hi Robert, I am planning to use (but haven't implemented and tried yet): - add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}) to define a custom 'check' target (as with GNU Autotools) - add_executable(testprog

[CMake] RUN_TESTS project dependencies

2009-03-18 Thread Robert Dailey
Hi, I'm currently using Visual Studio 2008 and CMake v2.6.3. I noticed that when I create unit tests, they are not added as dependencies in the solution containing all of the unit test projects + the RUN_TESTS project. For example, when I change one of the source files in a particular unit test

[CMake] CMake GUI Issue

2009-03-12 Thread Robert Dailey
Hi, I'm currently using an application called WindowBlinds to apply a specific visual style to Windows XP. This, for some reason, has changed the minimum size of the cmake-gui app. I'm currently using version 2.6.3. Can you guys remove the minimum size requirement on the cmake gui window? It's

Re: [CMake] CMake GUI Issue

2009-03-12 Thread Robert Dailey
to get ugly... What would you recommend as a reasonable minimum size value? On Thu, Mar 12, 2009 at 1:01 PM, Robert Dailey rcdai...@gmail.com wrote: Hi, I'm currently using an application called WindowBlinds to apply a specific visual style to Windows XP. This, for some reason, has changed

[CMake] Location of vcproj files

2009-03-12 Thread Robert Dailey
I need to find a way to obtain the location of a vcproj file generated by CMake for a specific target. Is there a way to do this? I was looking over the properties for targets documentationhttp://cmake.org/cmake/help/cmake2.6docs.html#section_Properties%20on%20Targetsand I did not see anything

Re: [CMake] Location of vcproj files

2009-03-12 Thread Robert Dailey
at 4:40 PM, Robert Dailey rcdai...@gmail.com wrote: I need to find a way to obtain the location of a vcproj file generated by CMake for a specific target. Is there a way to do this? I was looking over the properties for targets documentationhttp://cmake.org/cmake/help/cmake2.6docs.html

Re: [CMake] Concern with 2.6.3

2009-03-04 Thread Robert Dailey
But by default visual studio does not compile HPP or H files. I've *never* had this problem in any version of visual studio starting from version 6. On Wed, Mar 4, 2009 at 8:01 AM, Bill Hoffman bill.hoff...@kitware.comwrote: Robert Dailey wrote: Hi, I noticed after switching to version

Re: [CMake] Scope of a macro

2009-03-04 Thread Robert Dailey
? On Wed, Mar 4, 2009 at 1:43 AM, Michael Wild them...@gmail.com wrote: On 4. Mar, 2009, at 7:11, Robert Dailey wrote: On Wed, Mar 4, 2009 at 12:02 AM, Michael Wild them...@gmail.com wrote: If you add a subdirectory, it inherits all variables and macros from the parent directories

Re: [CMake] Scope of a macro

2009-03-04 Thread Robert Dailey
On Wed, Mar 4, 2009 at 11:40 AM, Michael Wild them...@gmail.com wrote: I seriously doubt that you need the level of complexity in CMake as is required in a general-purpose programming language as C++. Perhaps Bill (or one of the other CMake developers) can shed some more light on this, but I

[CMake] Setting working directory for projects

2009-03-04 Thread Robert Dailey
Hi, First of all I want to make sure everyone is aware that I've read the FAQ entryhttp://www.cmake.org/Wiki/CMake_FAQ#Can_CMake_set_the_Debugging.2FWorking_Directory_property_in_Visual_Studio_projects.3Fstating that setting the working directory for visual studio projects cannot be done.

Re: [CMake] Scope of a macro

2009-03-04 Thread Robert Dailey
On Wed, Mar 4, 2009 at 3:59 PM, Michael Wild them...@gmail.com wrote: On 4. Mar, 2009, at 20:58, Robert Dailey wrote: Is CMake not general-purpose as well? No, it's not. It's neither a system programing language nor would you consider it for anything else than creating a build system

[CMake] Scope of a macro

2009-03-03 Thread Robert Dailey
Hi, I've got the following directory structure on Windows: project/source/foo project/bar/stuff In the first directory, I have a CMakeLists.txt which defines a macro. However, I am able to call that from the CMakeLists.txt inside of the second directory. Does the scope of a macro not respect

[CMake] function vs macro

2009-03-03 Thread Robert Dailey
Hi, After reading the CMake 2.6 documentation, I'm not really clear on the differences between a macro and a function. Could someone explain this in a bit more detail? Based on the differences, which should I use? ___ Powered by www.kitware.com Visit

Re: [CMake] Scope of a macro

2009-03-03 Thread Robert Dailey
, at 8:50 PM, Robert Dailey wrote: Hi, I've got the following directory structure on Windows: project/source/foo project/bar/stuff In the first directory, I have a CMakeLists.txt which defines a macro. However, I am able to call that from the CMakeLists.txt inside of the second directory

[CMake] Concern with 2.6.3

2009-03-03 Thread Robert Dailey
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 behavior by design? If so, why? ___ Powered by www.kitware.com Visit other Kitware open-source

Re: [CMake] Scope of a macro

2009-03-03 Thread Robert Dailey
On Wed, Mar 4, 2009 at 12:02 AM, Michael Wild them...@gmail.com wrote: If you add a subdirectory, it inherits all variables and macros from the parent directories. This is actually what one expects, otherwise you would have to repeat the whole system detection (find_pacakge, find_library,

Re: [CMake] Problem with FindwxWidgets.cmake

2009-01-27 Thread Robert Dailey
the FindwxWidgets.cmake module that says cannot find the UNICODE wxWidgets_LIB_DIR because 'mswu' is not searched... HTH, David On Mon, Jan 26, 2009 at 7:49 PM, Robert Dailey rcdai...@gmail.com wrote: Hi, I'm currently using CMake 2.6.2 and the FindwxWidgets.cmake module that comes pre-packaged

[CMake] Problem with FindwxWidgets.cmake

2009-01-26 Thread Robert Dailey
Hi, I'm currently using CMake 2.6.2 and the FindwxWidgets.cmake module that comes pre-packaged with the installation doesn't seem to properly work on windows. I set CMAKE_PREFIX_PATH so that it would be able to find the wxWidgets in a custom location. It does find wxWidgets_ROOT_DIR, but does not

Re: [CMake] Executable project creating an import library

2009-01-24 Thread Robert Dailey
On Sat, Jan 24, 2009 at 11:16 AM, Stefan Buschmann s_buschm...@gmx.dewrote: Robert Dailey schrieb: I've specified a very complex CMake script that generates an executable project. When I use this CMake script to generate a Visual Studio 2008 project, the Import Library property located

Re: [CMake] Obtaining dependencies of static libraries

2009-01-23 Thread Robert Dailey
On Fri, Jan 23, 2009 at 3:36 AM, Mike Arthur m...@mikearthur.co.uk wrote: On Thursday 22 January 2009 23:26:47 Robert Dailey wrote: With all do respect, why does it matter? Yes, in the generated target dependencies are handled for me but when I call get_target_property

[CMake] Executable project creating an import library

2009-01-23 Thread Robert Dailey
Hi, I've specified a very complex CMake script that generates an executable project. When I use this CMake script to generate a Visual Studio 2008 project, the Import Library property located in Project Settings Linker Advanced property page in Visual Studio 2008 has a value, specifically the

Re: [CMake] Issue with list( REMOVE_DUPLICATES )

2009-01-22 Thread Robert Dailey
On Thu, Jan 22, 2009 at 5:39 AM, David Cole david.c...@kitware.com wrote: Use list_var instead of ${list_var} ${list_var} will only work if it happens to evaluate to the name of a list variable That was the entire point :) list_var isn't a list, it's a variable pointing to a list.

Re: [CMake] Obtaining dependencies of static libraries

2009-01-22 Thread Robert Dailey
On Thu, Jan 22, 2009 at 3:00 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Thursday 22 January 2009, Robert Dailey wrote: Hi, The documentation for LINK_INTERFACE_LIBRARIES (Target property) clearly states that this is ignored for static libraries. However, I need to get

Re: [CMake] Issue with list( REMOVE_DUPLICATES )

2009-01-22 Thread Robert Dailey
}='${${list_var}}') ...executed just before the REMOVE_DUPLICATES call print out? On Thu, Jan 22, 2009 at 1:26 PM, Robert Dailey rcdai...@gmail.com wrote: On Thu, Jan 22, 2009 at 5:39 AM, David Cole david.c...@kitware.comwrote: Use list_var instead of ${list_var} ${list_var} will only work

[CMake] Issue with list( REMOVE_DUPLICATES )

2009-01-21 Thread Robert Dailey
Hi, I'm running the following command in CMake 2.6: list( REMOVE_DUPLICATES ${list_var} ) When I compile this script, I get the following error: CMake Error at CMakeLists.txt:103 (list): list sub-command REMOVE_DUPLICATES requires list to be present. I'm not sure why this is happening.

[CMake] Obtaining dependencies of static libraries

2009-01-21 Thread Robert Dailey
Hi, The documentation for LINK_INTERFACE_LIBRARIES (Target property) clearly states that this is ignored for static libraries. However, I need to get the list that was passed into target_link_libraries() for that static library project. How can I obtain this list? I'm doing the following:

Re: [CMake] Behavior of include_directories()

2009-01-17 Thread Robert Dailey
On Fri, Jan 16, 2009 at 5:51 PM, Robert Dailey rcdai...@gmail.com wrote: Hi, I'm reading the documentation about include directories (located herehttp://cmake.org/cmake/help/cmake2.6docs.html#command:include_directories) and I do not see any mention of include directories being specific

[CMake] set_property() crashing

2009-01-17 Thread Robert Dailey
Hi, I'm running the following command several times in different child directories: set_property( DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES ${DC_INCLUDES} ) This seems to crash CMake. DC_INCLUDES is a list of absolute paths to include directories.

[CMake] Creating projects with no source files?

2009-01-17 Thread Robert Dailey
Hi, I have a sort of interesting project design that I'm using that is really the source of this complication. Let me start by explaining my project structure. I have a set of reusable C++ libraries, each library can be thought of as a component. The structure is very easy to grasp:

Re: [CMake] set_property() crashing

2009-01-17 Thread Robert Dailey
On Sat, Jan 17, 2009 at 10:24 PM, Robert Dailey rcdai...@gmail.com wrote: Hi, I'm running the following command several times in different child directories: set_property( DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES ${DC_INCLUDES} ) This seems to crash CMake. DC_INCLUDES

Re: [CMake] Inheriting include directories from dependencies

2009-01-16 Thread Robert Dailey
On Fri, Jan 16, 2009 at 2:52 PM, Michael Jackson mike.jack...@bluequartz.net wrote: I have a project with a similar setup and basically what I do for Project C is look for Project A, once I find Project A, there is a specific file that looks for all the dependencies of A and adds the

[CMake] Recursively calling a macro: Is this possible in CMake?

2009-01-16 Thread Robert Dailey
Hi, Suppose I have a macro that rougly behaves like this: macro( foo ) list( APPEND my_list something ) if( foo's length is less than certain number ) foo() endif() endmacro() How would this be processed in CMake? Obviously you couldn't inline this macro because it's recursive. I need

[CMake] Behavior of include_directories()

2009-01-16 Thread Robert Dailey
Hi, I'm reading the documentation about include directories (located herehttp://cmake.org/cmake/help/cmake2.6docs.html#command:include_directories) and I do not see any mention of include directories being specific to the target or more of a global thing. However, when looking at the output of my

Re: [CMake] Recursively calling a macro: Is this possible in CMake?

2009-01-16 Thread Robert Dailey
On Fri, Jan 16, 2009 at 6:23 PM, James Bigler jamesbig...@gmail.com wrote: This code seems to produce the correct output with either a macro or a function prototype. macro( foo ) list( APPEND my_list + ) list( LENGTH my_list length ) if( length LESS ${somevar} ) foo() endif()

Re: [CMake] Having difficulty with find_library()

2009-01-15 Thread Robert Dailey
On Thu, Jan 15, 2009 at 4:03 AM, Hendrik Sattler p...@hendrik-sattler.dewrote: It is kind of odd to test for the generator when the choice in fact depends on the compiler! What about e.g. Nmake? Well the TBB libraries are set up in such a way that they depend on specific versions of Visual

Re: [CMake] Confusion on how find_package works.

2009-01-15 Thread Robert Dailey
On Thu, Jan 15, 2009 at 6:27 AM, Miguel A. Figueroa-Villanueva migu...@ieee.org wrote: Well, I don't know about libfind_process, but none of the modules shipped with CMake use it. Again your primary source of information to properly write a find module should be the Modules/readme.txt (

Re: [CMake] Having difficulty with find_library()

2009-01-15 Thread Robert Dailey
On Thu, Jan 15, 2009 at 10:07 AM, Michael Jackson mike.jack...@bluequartz.net wrote: To look for the Compiler being used.. IF (MSVC60) SET (...) ENDIF (MSVC60) IF (MSVC71) SET () ENDIF(MSVC71) IF (MSVC80) SET () ENDIF(MSVC80) IF (MSVC90) SET (.)

Re: [CMake] Confusion on how find_package works.

2009-01-15 Thread Robert Dailey
On Thu, Jan 15, 2009 at 11:19 AM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Thursday 15 January 2009, Robert Dailey wrote: On Thu, Jan 15, 2009 at 6:27 AM, Miguel A. Figueroa-Villanueva migu...@ieee.org wrote: Well, I don't know about libfind_process, but none

Re: [CMake] Having difficulty with find_library()

2009-01-15 Thread Robert Dailey
On Thu, Jan 15, 2009 at 11:30 AM, Michael Jackson mike.jack...@bluequartz.net wrote: I am not really sure about the ins-and-outs of Windows Dev but looking through the Windows-cl.cmake file (Located in the CMake-2.6.2/share/cmake-2.6/Modules directory) there are some variables that you might

Re: [CMake] Having difficulty with find_library()

2009-01-15 Thread Robert Dailey
On Thu, Jan 15, 2009 at 2:22 PM, Hendrik Sattler p...@hendrik-sattler.dewrote: Am Thursday 15 January 2009 18:13:43 schrieb Robert Dailey: On Thu, Jan 15, 2009 at 10:07 AM, Michael Jackson mike.jack...@bluequartz.net wrote: To look for the Compiler being used.. IF (MSVC60

[CMake] Inheriting include directories from dependencies

2009-01-15 Thread Robert Dailey
Hi, Currently I'm specifying include directories on a per-project basis. Suppose I have projects A, B, and C. Project C would depend on A and B by specifying A and B in a call to target_link_libraries(). Both projects A and B have include directories that I set via a call to include_directories()

Re: [CMake] Confusion on how find_package works.

2009-01-14 Thread Robert Dailey
On Wed, Jan 14, 2009 at 6:22 AM, Andreas Pakulat ap...@gmx.de wrote: On 13.01.09 19:06:13, Robert Dailey wrote: Trust me, I've read this already. It makes no sense to me. How am I supposed to know that any of the variables it is checking have been set? Not sure what you mean wit that. You

Re: [CMake] Confusion on how find_package works.

2009-01-14 Thread Robert Dailey
On Wed, Jan 14, 2009 at 1:20 PM, Andreas Pakulat ap...@gmx.de wrote: If you look at the cmake docs, then you'll find out that nothing in there states that wildcards are allowed. Hence I'd assume that wildcards are not supported. Also you only need to set one of the two for find_path to use

Re: [CMake] Confusion on how find_package works.

2009-01-14 Thread Robert Dailey
On Wed, Jan 14, 2009 at 4:20 PM, Miguel A. Figueroa-Villanueva migu...@ieee.org wrote: On Wed, Jan 14, 2009 at 5:54 PM, Andreas Pakulat wrote: On 14.01.09 15:45:53, Robert Dailey wrote: On Wed, Jan 14, 2009 at 1:20 PM, Andreas Pakulat wrote: If you look at the cmake docs, then you'll

Re: [CMake] Confusion on how find_package works.

2009-01-14 Thread Robert Dailey
On Wed, Jan 14, 2009 at 9:51 PM, Robert Dailey rcdai...@gmail.com wrote: On Wed, Jan 14, 2009 at 4:20 PM, Miguel A. Figueroa-Villanueva migu...@ieee.org wrote: On Wed, Jan 14, 2009 at 5:54 PM, Andreas Pakulat wrote: On 14.01.09 15:45:53, Robert Dailey wrote: On Wed, Jan 14, 2009 at 1

[CMake] Having difficulty with find_library()

2009-01-14 Thread Robert Dailey
Hi, I'm creating a Find module for Intel's TBB library and I can't get find_library to work properly. It's just not finding the library. The path to the library in question is *tbb_rootdirectory/ai32/vc9/lib/tbb.lib* for the MSVC9 32-bit compiler. Am I doing something wrong? I've set the root

Re: [CMake] Having difficulty with find_library()

2009-01-14 Thread Robert Dailey
On Wed, Jan 14, 2009 at 11:23 PM, Michael Jackson mike.jack...@bluequartz.net wrote: I would try the following just to make sure it will find the library: find_library(TBB_LIBRARY NAMES tbb PATHS tbb_rootdirectory/ai32/vc9/lib ) Substitute the proper full path for

[CMake] Confusion on how find_package works.

2009-01-13 Thread Robert Dailey
Hi, I'm currently looking at FindZLIB.cmake trying to understand how it works and I just can't seem to make sense of it. I have a few questions: 1. How does find_path() know where to look? Where is it looking? Where is it told where to look? 2. Question #1 with find_library() as well.

Re: [CMake] Confusion on how find_package works.

2009-01-13 Thread Robert Dailey
On Jan 13, 2009, at 5:08 PM, Robert Dailey wrote: Hi, I'm currently looking at FindZLIB.cmake trying to understand how it works and I just can't seem to make sense of it. I have a few questions: • How does find_path() know where to look? Where is it looking? Where is it told where

[CMake] Strip a prefix from a string

2009-01-09 Thread Robert Dailey
Hi, Suppose I have a string called foobar. I want to be able to strip a specific prefix from that string and have the suffix returned to me. So if I wanted to strip foo, I would get bar back. What's the easiest way of doing this in CMake? ___ CMake

Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread Robert Dailey
other than using include directories, but this is the most trivial and simplified way. On Tue, Dec 23, 2008 at 5:00 AM, cyril_wobow cy...@wobow.com wrote: Philip Lowman a écrit : On Mon, Dec 22, 2008 at 11:27 PM, Robert Dailey rcdai...@gmail.commailto: rcdai...@gmail.com wrote: On Mon, Dec

Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread Robert Dailey
On Tue, Dec 23, 2008 at 10:23 AM, Bill Hoffman bill.hoff...@kitware.comwrote: Robert Dailey wrote: Why I need this feature is irrelevant, the important thing is that I need the feature. I know a couple of other people who've posted on various other mailing lists that have asked

Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread Robert Dailey
On Tue, Dec 23, 2008 at 11:10 AM, Michael Jackson mike.jack...@bluequartz.net wrote: n Dec 23, 2008, at 11:56 AM, Bill Hoffman wrote: Robert Dailey wrote: For debug: C:\foo\bar-d For release: C:\foo\bar Note that the text Debug or Release is not used in the include path, so simply

Re: [CMake] Add configuration support to include_directories()

2008-12-23 Thread Robert Dailey
On Tue, Dec 23, 2008 at 2:40 PM, Michael Jackson mike.jack...@bluequartz.net wrote: On Dec 23, 2008, at 1:05 PM, Robert Dailey wrote: Mike Jackson wrote I am just thinking out loud here so if I am totally off the mark just ignore. So the problem is including /foo/bar-d or /foo/bar

Re: [CMake] Add configuration support to include_directories()

2008-12-22 Thread Robert Dailey
, 2008 at 3:45 AM, Robert Dailey rcdai...@gmail.com wrote: Will this work in Visual Studio? How does CMake know to place the appropriate include directories in the appropriate configuration? I also was not able to find CMAKE_BUILD_STATUS in the 2.6 documentation. Where can I read about

Re: [CMake] Add configuration support to include_directories()

2008-12-22 Thread Robert Dailey
On Mon, Dec 22, 2008 at 5:58 PM, Tyler Roscoe ty...@cryptio.net wrote: On Mon, Dec 22, 2008 at 05:55:10PM -0600, Robert Dailey wrote: I apologize, but I don't see how this could possibly work for visual studio output. It seems like you'd have 1 set of visual studio projects for debug

Re: [CMake] Add configuration support to include_directories()

2008-12-22 Thread Robert Dailey
On Mon, Dec 22, 2008 at 9:23 PM, Bill Hoffman bill.hoff...@kitware.comwrote: Investigate CMAKE_CFG_INTDIR. I believe for Visual Studio output, this will be $(OutDir), right? If this is the case, this is a visual studio environment variable that will have no meaning when used in CMake

Re: [CMake] Add configuration support to include_directories()

2008-12-21 Thread Robert Dailey
) endif (CMAKE_BUILD_STATUS STREQUAL Debug) On Thu, Dec 18, 2008 at 11:13 PM, Robert Dailey rcdai...@gmail.comwrote: Would it be possible to add configuration support to include_directories()? For example, some include directories I only want to show up in debug, some in release, and some

[CMake] Add configuration support to include_directories()

2008-12-18 Thread Robert Dailey
Would it be possible to add configuration support to include_directories()? For example, some include directories I only want to show up in debug, some in release, and some in all configurations. I imagine this would look a lot like target_link_libraries(): include_directories(

[CMake] Shared Libraries dependencies

2008-12-11 Thread Robert Dailey
Hi, If I have a project in CMake that builds a shared library, what will happen if I set this shared library project as a parameter in target_link_libraries() for an executable project? What will happen to the DLL file? Will CMake copy it to the executable output directory automatically, or must

<    3   4   5   6   7   8   9   >