Chunyan Jiang | 9 Jan 2006 10:27
Picon

Document for CMake Syntax?

Hi,
I want to learn CMake syntax step by step. Could some one tell me, if there is document to explain all CMake Syntax?

Thanks a lot!

Chunyan

_______________________________________________
CMake mailing list
CMake@...
http://www.cmake.org/mailman/listinfo/cmake
Filipe Sousa | 9 Jan 2006 11:15
Picon
Favicon

cmake in gmane


Hi!

Gmane is a gateway to many mailing lists. It's now possible to read the
mailing list thought gname news server. The group is
gmane.comp.programming.tools.cmake.user in
nntp://news.gmane.org

You can view the group activities in
http://dir.gmane.org/gmane.comp.programming.tools.cmake.user

I can create the group gmane.comp.programming.tools.cmake.promote

-- Filipe Sousa
Jan Woetzel | 10 Jan 2006 09:07
Picon
Favicon

Re: wxWindows unexpectedly fails with error

Amitha Perera wrote:

>FindWxWindows.cmake fails with an error when the libraries are not
>found under Windows. This defeats the purpose of WXWINDOWS_FOUND. Is
>there a reason why this is?
>  
>
Hi Amitha,
I suppose you are talking about the warnings in line 197, 242 or 375.

I added them to warn the user that the shared/static version he 
explicitly "prefers" was not found.
Maybe we should comment out those warning or at least change them from 
"SEND_ERROR" to "STATUS".

However, if you use MS Windows with wx262 the script won't work.
This one works with *monolithic* wx2.6.2 builds for me:
http://www.mip.informatik.uni-kiel.de/~jw/cmake/CMakeModules/FindwxWindows.cmake

Best, Jan.

--

-- 

  Dipl.-Ing. Jan Woetzel
--------------------------------------------------
  University of Kiel
  Institute of Computer Science and Applied Mathematics
  Hermann-Rodewald-Str. 3 [room 310]
  24098 Kiel/Germany
--------------------------------------------------
  Phone +49-431-880-4477
  Fax   +49-431-880-4054
  Mob.  +49-179-2937346
--------------------------------------------------
  Url   www.mip.informatik.uni-kiel.de/~jw
  Email jw@...
Brad King | 10 Jan 2006 14:59
Favicon
Gravatar

Re: export list of files, etags

Eddy Pronk wrote:
> Is there a way to export a list of files from a CMakeLists.txt file?
> OUTPUT_REQUIRED_FILES only works for a source file.
> I'd like a list of source files requered for a target or simply all 
> source files known to cmake.
> I want to use this to create a etags file for emacs.

Dependency scanning is not done at CMake time but at build time.  In 
some environments CMake does the scanning with a separate process 
(Makefiles) and sometimes the native build tool does it (Visual Studio). 
  Therefore not all sources will be known other than those listed when 
the target is created.

The best you can do is create a target like this:

SET(MY_SRCS src1.cxx src2.cxx ...)
ADD_EXECUTABLE(myexe ${MY_SRCS})

and then use CMake's CONFIGURE_FILE, FILE, STRING, and/or FOREACH 
commands to create the etags file for those sources.

-Brad
Jan Woetzel | 10 Jan 2006 15:02
Picon
Favicon

Re: export list of files, etags

Hi Eddy,
that's the "simple" way we do it (on Unix):

# target etags/tags
IF (UNIX)
  ADD_CUSTOM_TARGET(tags etags --members --declarations  `find . -name 
*.cc -or -name *.hh -or -name *.cpp -or -name *.h -or -name *.c -or 
-name *.f`)
  ADD_CUSTOM_TARGET(etags DEPENDS tags)
ENDIF (UNIX)

Jan.

--

-- 

  Dipl.-Ing. Jan Woetzel
--------------------------------------------------
  University of Kiel
  Institute of Computer Science and Applied Mathematics
  Hermann-Rodewald-Str. 3 [room 310]
  24098 Kiel/Germany
--------------------------------------------------
  Phone +49-431-880-4477
  Fax   +49-431-880-4054
  Mob.  +49-179-2937346
--------------------------------------------------
  Url   www.mip.informatik.uni-kiel.de/~jw
  Email jw@...
Amitha Perera | 10 Jan 2006 15:56
Picon
Favicon

Re: wxWindows unexpectedly fails with error

On Tue 10 Jan 2006, Jan Woetzel wrote:
> Amitha Perera wrote:
> >FindWxWindows.cmake fails with an error when the libraries are not
> >found under Windows. This defeats the purpose of WXWINDOWS_FOUND. Is
> >there a reason why this is?
>
> I suppose you are talking about the warnings in line 197, 242 or 375.
> 
> I added them to warn the user that the shared/static version he 
> explicitly "prefers" was not found.
> Maybe we should comment out those warning or at least change them from 
> "SEND_ERROR" to "STATUS".

Yes. One of the uses of this is to do conditional compilation: call
the script to figure out if WxWindows is available, and if so,
compile a particular library. If not, don't.

> However, if you use MS Windows with wx262 the script won't work.
> This one works with *monolithic* wx2.6.2 builds for me:
> http://www.mip.informatik.uni-kiel.de/~jw/cmake/CMakeModules/FindwxWindows.cmake

Thanks! We'll try it out.

Amitha.
xavier delannoy | 10 Jan 2006 17:01
Picon

code coverage & cmake

Hi all,

how to enable code coverage with cmake, ctest, dart ?
I add "-fprofile-arcs -ftest-coverage" to my CFLAGS.
How does I specify the list of coverage files ?

here is the output of cmake :
make ExperimentalCoverage
   Site: Tilanne.local
   Build name: Darwin-
Performing coverage
 Cannot find any coverage files.

thanks
Jorgen Bodde | 10 Jan 2006 18:33
Picon
Picon
Favicon

Error building CMake from CVS

Hi all,

I am trying to build CMake from CVS (to kick some new life in
wxCMakeSetup.exe) but I cannot  seem to get the CMake setup going.

I did:
cvs update

go to:

/data/store/builds/cmake (which is empty)

ccmake /home/jorg/src/cmake

I press 'c' and get after a while:

CMake Error: Error in cmake code at
/home/jorg/src/cmake/CMakeLists.txt:88:
SUBDIRS Incorrect SUBDIRS command. Directory: Utilities/cmtar does not
exists.

Anybody have an idea what I moght have done wrong?

- Jorgen
Ken Martin | 10 Jan 2006 18:40
Favicon

RE: Error building CMake from CVS

try

cvs update -dAP 

Ken

> -----Original Message-----
> From: cmake-bounces+ken.martin=kitware.com@... [mailto:cmake-
> bounces+ken.martin=kitware.com@...] On Behalf Of Jorgen Bodde
> Sent: Tuesday, January 10, 2006 12:33 PM
> To: cmake@...
> Subject: [CMake] Error building CMake from CVS
> 
> Hi all,
> 
> I am trying to build CMake from CVS (to kick some new life in
> wxCMakeSetup.exe) but I cannot  seem to get the CMake setup going.
> 
> I did:
> cvs update
> 
> go to:
> 
> /data/store/builds/cmake (which is empty)
> 
> ccmake /home/jorg/src/cmake
> 
> I press 'c' and get after a while:
> 
> CMake Error: Error in cmake code at
> /home/jorg/src/cmake/CMakeLists.txt:88:
> SUBDIRS Incorrect SUBDIRS command. Directory: Utilities/cmtar does not
> exists.
> 
> Anybody have an idea what I moght have done wrong?
> 
> - Jorgen
> 
> _______________________________________________
> CMake mailing list
> CMake@...
> http://www.cmake.org/mailman/listinfo/cmake
Jorgen Bodde | 10 Jan 2006 19:02
Picon
Picon
Favicon

Re: Error building CMake from CVS

Hi Ken,

Thanks that did it!

One more question, why do I get this with every wx app I am building? 
Notice the gtk-config not found error. I would not know why it wants to 
use it in the first place ;-)

Scanning dependencies of target WXDialog
Building CXX object 
Source/WXDialog/CMakeFiles/WXDialog.dir/CMakeSetupFrame.o
/bin/sh: gtk-config: command not found
Building CXX object Source/WXDialog/CMakeFiles/WXDialog.dir/CMakeSetup.o
/bin/sh: gtk-config: command not found
Building CXX object Source/WXDialog/CMakeFiles/WXDialog.dir/PropertyList.o
/bin/sh: gtk-config: command not found
Building CXX object Source/WXDialog/CMakeFiles/WXDialog.dir/app_resources.o
/bin/sh: gtk-config: command not found
Building CXX object Source/WXDialog/CMakeFiles/WXDialog.dir/progressdlg.o
/bin/sh: gtk-config: command not found
Building CXX object Source/WXDialog/CMakeFiles/WXDialog.dir/aboutdlg.o
/bin/sh: gtk-config: command not found
Building CXX object Source/WXDialog/CMakeFiles/WXDialog.dir/optionsdlg.o
/bin/sh: gtk-config: command not found
Building CXX object 
Source/WXDialog/CMakeFiles/WXDialog.dir/CommandLineInfo.o
/bin/sh: gtk-config: command not found

- Jorgen

Ken Martin wrote:
> try
>
> cvs update -dAP 
>
> Ken
>
>   
>> -----Original Message-----
>> From: cmake-bounces+ken.martin=kitware.com@... [mailto:cmake-
>> bounces+ken.martin=kitware.com@...] On Behalf Of Jorgen Bodde
>> Sent: Tuesday, January 10, 2006 12:33 PM
>> To: cmake@...
>> Subject: [CMake] Error building CMake from CVS
>>
>> Hi all,
>>
>> I am trying to build CMake from CVS (to kick some new life in
>> wxCMakeSetup.exe) but I cannot  seem to get the CMake setup going.
>>
>> I did:
>> cvs update
>>
>> go to:
>>
>> /data/store/builds/cmake (which is empty)
>>
>> ccmake /home/jorg/src/cmake
>>
>> I press 'c' and get after a while:
>>
>> CMake Error: Error in cmake code at
>> /home/jorg/src/cmake/CMakeLists.txt:88:
>> SUBDIRS Incorrect SUBDIRS command. Directory: Utilities/cmtar does not
>> exists.
>>
>> Anybody have an idea what I moght have done wrong?
>>
>> - Jorgen
>>
>> _______________________________________________
>> CMake mailing list
>> CMake@...
>> http://www.cmake.org/mailman/listinfo/cmake
>>     
>
>
>
>   

Gmane