[CMake] CheckIncludeFiles: how to use?

2009-07-01 Thread Marcel Loose
Hi all, Maybe it's because of a partially sleepless night, but I can't seem to figure out how I should use check_include_files(). According to the docs (and the implementation) this macro should be used as: CHECK_INCLUDE_FILES(INCLUDE VARIABLE) where INCLUDE should contain the list of files

[CMake] if(string MATCHES regex) question

2009-07-01 Thread Marcel Loose
Hi all, In a number of standard CMake modules I encountered the following line: IF(${VARIABLE} MATCHES ^${VARIABLE}$) Can anyone explain the rationale of this conditional to me. To my cluttered mind this seems to be an always-true condition. Best regards, Marcel Loose.

Re: [CMake] CheckIncludeFiles: how to use?

2009-07-01 Thread David Cole
Try:CHECK_INCLUDE_FILES(unistd.h;stdio.h var) Or: SET(files unistd.h stdio.h) CHECK_INCLUDE_FILES(${files} var) On Wed, Jul 1, 2009 at 4:13 AM, Marcel Loose lo...@astron.nl wrote: Hi all, Maybe it's because of a partially sleepless night, but I can't seem to figure out how I should use

Re: [CMake] Problem with generated source and header files

2009-07-01 Thread James C. Sutherland
So, in general, when using globbing, YOU are responsible for rerunning CMake whenever you've added a source file. Otherwise you run the risk of the new file not being compiled. Furthermore, you might accidentally compile sources that were just lying around in your directory as test code.

Re: [CMake] Problem with generated source and header files

2009-07-01 Thread John Drescher
I hope my examples convinced you enough that globbing is (in general) a bad idea. So is it common practice among users of CMake to manually create and maintain a list of all files that are to be compiled, even if such a list is very large and may involve several directories and

[CMake] appending srcs to custom_target, or doxygen support

2009-07-01 Thread Mark Lohry
Apologies if this has been covered, but I'm only seeing occasional references to doxygen in the archives. Is there any built-in mechanism for some kind of make doc to invoke building documentation through doxygen, or does it require ADD_CUSTOM_TARGET? Presuming there isn't, I have several

Re: [CMake] appending srcs to custom_target, or doxygen support

2009-07-01 Thread Tyler Roscoe
On Wed, Jul 01, 2009 at 11:03:10AM -0500, Mark Lohry wrote: in ./src/lib1/cmakelists.txt I have: if(DOXYGEN_EXECUTABLE AND UNIX) IF(EXISTS ${PROJECT_SOURCE_DIR}/${DOXYGEN_CONFIG_FILE}) message( * Doxygen config file found * ) SET(DOXYFILE_FOUND true)

Re: [CMake] appending srcs to custom_target, or doxygen support

2009-07-01 Thread Mark Lohry
perfect, thank you On Wed, Jul 1, 2009 at 11:22 AM, Tyler Roscoe ty...@cryptio.net wrote: On Wed, Jul 01, 2009 at 11:03:10AM -0500, Mark Lohry wrote: in ./src/lib1/cmakelists.txt I have: if(DOXYGEN_EXECUTABLE AND UNIX) IF(EXISTS ${PROJECT_SOURCE_DIR}/${DOXYGEN_CONFIG_FILE})

Re: [CMake] if(string MATCHES regex) question

2009-07-01 Thread Eric Noulard
2009/7/1 Marcel Loose lo...@astron.nl: Hi all, In a number of standard CMake modules I encountered the following line:  IF(${VARIABLE} MATCHES ^${VARIABLE}$) Can anyone explain the rationale of this conditional to me. The rational no but To my cluttered mind this seems to be an

[CMake] FindxxWidgets.cmake: wrong wxWidgets_INCLUDE_DIRS on UNIX

2009-07-01 Thread Florent Teichteil
Hi, I am trying to write a CMakeLists.txt file on a Linux Ubuntu 9.04 platform. I'd like to test the presence of wxwidgets on the system, and use the include files of wxwidgets. This file is very simple at the moment: // BEGINNING OF CMakeLists.txt set(CMAKE_MODULE_PATH

Re: [CMake] FindxxWidgets.cmake: wrong wxWidgets_INCLUDE_DIRS on UNIX

2009-07-01 Thread Tyler Roscoe
On Wed, Jul 01, 2009 at 07:23:27PM +0200, Florent Teichteil wrote: // BEGINNING OF CMakeLists.txt set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}) find_package(wxWidgets COMPONENTS base core REQUIRED) include_directories(${wxWidgets_INCLUDE_DIRS}) add_definitions(${wxWidgets_DEFINITIONS})

[CMake] project() and SLN files

2009-07-01 Thread Robert Dailey
Hi, If I have the following CMakeLists.txt: cmake_minimum_required( VERSION 2.6.4 ) project( project1 ) add_executable( project1 source1.cpp ) project( project2 ) add_executable( project2 source2.cpp ) project( project3 ) add_executable( project3 source3.cpp ) If I create visual studio 2008

Re: [CMake] FindxxWidgets.cmake: wrong wxWidgets_INCLUDE_DIRS on UNIX

2009-07-01 Thread Miguel A. Figueroa-Villanueva
On Wed, Jul 1, 2009 at 2:02 PM, Tyler Roscoe wrote: On Wed, Jul 01, 2009 at 07:23:27PM +0200, Florent Teichteil wrote: // BEGINNING OF CMakeLists.txt set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}) find_package(wxWidgets COMPONENTS base core REQUIRED)

Re: [CMake] appending srcs to custom_target, or doxygen support

2009-07-01 Thread Hendrik Sattler
Am Mittwoch 01 Juli 2009 18:03:10 schrieb Mark Lohry: Apologies if this has been covered, but I'm only seeing occasional references to doxygen in the archives. Is there any built-in mechanism for some kind of make doc to invoke building documentation through doxygen, or does it require