Re: [CMake] setting a default build type

2006-09-07 Thread Jan Woetzel

Alan W. Irwin wrote:


Its a cached variable.  So I think what you want is

SET (CMAKE_BUILD_TYPE MinSizeRel CACHE STRING Flags used by the compiler


No, Cmake  (at least 2.4.2) is not generating any .suo file at all.
Thus neither CMAKE_BUILD_TYPE nor CMAKE_CONFIGURATION_TYPES will help 
with teh default setting.


Jan.

--

 Dipl.-Ing. Jan Woetzel
--
 Uni Kiel
 Institut f. Informatik und Praktische Mathematik
 Hermann-Rodewaldstr. 3  [Raum 310]
 24098 Kiel/Germany
--
 Tel+49-431-880-4477
 Fax+49-431-880-4845
 Privat +49-431-802872
 Mob.   +49-179-2937346
--
 Urlwww.mip.informatik.uni-kiel.de/~jw
 Email  [EMAIL PROTECTED]
 Privat [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Find template

2006-08-31 Thread Jan Woetzel

Andreas Schneider wrote:


http://code.google.com/p/cmake-modules/



The instructions in Modules/readme.txt changed slightly (in CVS).
Please adapt the  FindPackage.cmake  template accordingly for consistency.

I noticed:
- Xxx_INCLUDE_DIRS (with the plural S) instead of _DIR
- mixed case ( Foo_ instead of FOO_ ): case of Filename and variables
must match.

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-4845
 Mob.  +49-179-2937346
--
 Url   www.mip.informatik.uni-kiel.de/~jw
 Email [EMAIL PROTECTED]


___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Getting file and line in message

2006-08-29 Thread Jan Woetzel

Luigi Calori wrote:

Is there a way to get into a message line which file the message line 
is in and which line number?


CMAKE_CURRENT_LIST_LINE etc..
See

http://www.cmake.org/Wiki/CMake_Useful_Variables

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-4845
 Mob.  +49-179-2937346
--
 Url   www.mip.informatik.uni-kiel.de/~jw
 Email [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] getting rid of additional quotes in generated vcproj PreprocessorDefines

2006-08-26 Thread Jan Woetzel

Brad King wrote:


[EMAIL PROTECTED] wrote:
 


...get rid of the additional quot
ADD_DEFINITIONS(-DSN_TARGET_PS3)
   



This is related to my existing bug report:

http://www.cmake.org/Bug/bug.php?op=showbugid=3354

Jan.

--

 Dipl.-Ing. Jan Woetzel
--
 Uni Kiel
 Institut f. Informatik und Praktische Mathematik
 Hermann-Rodewaldstr. 3  [Raum 310]
 24098 Kiel/Germany
--
 Tel+49-431-880-4477
 Fax+49-431-880-4845
 Privat +49-431-802872
 Mob.   +49-179-2937346
--
 Urlwww.mip.informatik.uni-kiel.de/~jw
 Email  [EMAIL PROTECTED]
 Privat [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] doxygen

2006-08-24 Thread Jan Woetzel

Stephen Adler wrote:

Can someone give me sample CMakeLists.txt entry for doxygen 
documentation generation?

Currently I'm only generating html output.


we use INCLUDE(${CMAKE_MODULE_PATH}/TargetDoc.cmake OPTIONAL)
See the attached file.

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-4845
 Mob.  +49-179-2937346
--
 Url   www.mip.informatik.uni-kiel.de/~jw
 Email [EMAIL PROTECTED]

# -helper macro to add a doc target with CMake build system. 
# and configure doxy.config.in to doxy.config
#
# target doc allows building the documentation with doxygen/dot on WIN32 and 
Linux
# Creates .chm windows help file if MS HTML help workshop 
# (available from http://msdn.microsoft.com/workshop/author/htmlhelp)
# is installed with its DLLs in PATH.
#
#
# Please note, that the tools, e.g.:
# doxygen, dot, latex, dvips, makeindex, gswin32, etc.
# must be in path.
#
# Note about Visual Studio Projects: 
# MSVS hast its own path environment which may differ from the shell.
# See Menu Tools/Options/Projects/VC++ Directories in VS 7.1
#
# author Jan Woetzel 2004-2006
# www.mip.informatik.uni-kiel.de/~jw


FIND_PACKAGE(Doxygen)

IF (DOXYGEN_FOUND)

  # click+jump in Emacs and Visual Studio (for doxy.config) (jw)
  IF(CMAKE_BUILD_TOOL MATCHES (msdev|devenv))
SET(DOXY_WARN_FORMAT \$file($line) : $text \)
  ELSE  (CMAKE_BUILD_TOOL MATCHES (msdev|devenv))
SET(DOXY_WARN_FORMAT \$file:$line: $text \)
  ENDIF (CMAKE_BUILD_TOOL MATCHES (msdev|devenv))
  
  # we need latex for doxygen because of the formulas
  FIND_PACKAGE(LATEX)
  IF(NOT LATEX_COMPILER)
MESSAGE(STATUS latex command LATEX_COMPILER not found but usually 
required. You will probably get warnings and user inetraction on doxy run.)
  ENDIF (NOT LATEX_COMPILER)
  IF(NOT MAKEINDEX_COMPILER)
MESSAGE(STATUS makeindex command MAKEINDEX_COMPILER not found but usually 
required.)
  ENDIF (NOT MAKEINDEX_COMPILER)
  IF(NOT DVIPS_CONVERTER)
MESSAGE(STATUS dvips command DVIPS_CONVERTER not found but usually 
required.)
  ENDIF (NOT DVIPS_CONVERTER)
  
  IF   (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/doxy.config.in)
MESSAGE(STATUS configured ${CMAKE_CURRENT_SOURCE_DIR}/doxy.config.in -- 
${CMAKE_CURRENT_BINARY_DIR}/doxy.config)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/doxy.config.in 
  ${CMAKE_CURRENT_BINARY_DIR}/doxy.config
  @ONLY )
# use (configured) doxy.config from (out of place) BUILD tree:
SET(DOXY_CONFIG ${CMAKE_CURRENT_BINARY_DIR}/doxy.config)
  ELSE (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/doxy.config.in)
# use static hand-edited doxy.config from SOURCE tree:
SET(DOXY_CONFIG ${CMAKE_CURRENT_SOURCE_DIR}/doxy.config)
IF   (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/doxy.config)
  MESSAGE(STATUS WARNING: using existing 
${CMAKE_CURRENT_SOURCE_DIR}/doxy.config instead of configuring from 
doxy.config.in file.)
ELSE (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/doxy.config)
  IF   (EXISTS ${CMAKE_MODULE_PATH}/doxy.config.in)
# using template doxy.config.in
MESSAGE(STATUS configured ${CMAKE_CMAKE_MODULE_PATH}/doxy.config.in 
-- ${CMAKE_CURRENT_BINARY_DIR}/doxy.config)
CONFIGURE_FILE(${CMAKE_MODULE_PATH}/doxy.config.in 
  ${CMAKE_CURRENT_BINARY_DIR}/doxy.config
  @ONLY )
SET(DOXY_CONFIG ${CMAKE_CURRENT_BINARY_DIR}/doxy.config)
  ELSE (EXISTS ${CMAKE_MODULE_PATH}/doxy.config.in)
# failed completely...
MESSAGE(SEND_ERROR Please create 
${CMAKE_CURRENT_SOURCE_DIR}/doxy.config.in (or doxy.config as fallback))
  ENDIF(EXISTS ${CMAKE_MODULE_PATH}/doxy.config.in)

ENDIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/doxy.config)
  ENDIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/doxy.config.in)
  
  ADD_CUSTOM_TARGET(doc ${DOXYGEN_EXECUTABLE} ${DOXY_CONFIG})
  
  # create a windows help .chm file using hhc.exe
  # HTMLHelp DLL must be in path!
  # fallback: use hhw.exe interactively
  IF(WIN32)
FIND_PACKAGE(HTMLHelp)
IF   (HTML_HELP_COMPILER)  
  SET (TMP ${CMAKE_CURRENT_BINARY_DIR}\\Doc\\html\\index.hhp)
  STRING(REGEX REPLACE [/]  HHP_FILE ${TMP} )
  # MESSAGE(SEND_ERROR DBG  HHP_FILE=${HHP_FILE})
  ADD_CUSTOM_TARGET(winhelp ${HTML_HELP_COMPILER} ${HHP_FILE})
  ADD_DEPENDENCIES (winhelp doc)
 
  IF (NOT TARGET_DOC_SKIP_INSTALL)
  # install windows help?
  # determine useful name for output file 
  # should be project and version unique to allow installing 
  # multiple projects into one global directory  
  IF   (EXISTS ${PROJECT_BINARY_DIR}/Doc/html/index.chm)
IF   (PROJECT_NAME)
  SET(OUT ${PROJECT_NAME})
ELSE (PROJECT_NAME)
  SET(OUT Documentation) # default

Re: [CMake] doxygen

2006-08-24 Thread Jan Woetzel

Jan Woetzel wrote:


See the attached file.


.. And you need this one, too:

http://www.mip.informatik.uni-kiel.de/~jw/cmake/CMakeModules/doxy.config.in

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-4845
 Mob.  +49-179-2937346
--
 Url   www.mip.informatik.uni-kiel.de/~jw
 Email [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] getting rid of *~

2006-08-23 Thread Jan Woetzel

Stephen Adler wrote:


SET_DIRECTORY_PROPERTIES(PROPERTY ADDITIONAL_MAKE_CLEAN_FILES *~)


Add quotes, e.g.
SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES 
core*;*~;gmon.out;DartTestfile.txt)


Jan.

--

 Dipl.-Ing. Jan Woetzel
--
 Uni Kiel
 Institut f. Informatik und Praktische Mathematik
 Hermann-Rodewaldstr. 3  [Raum 310]
 24098 Kiel/Germany
--
 Tel+49-431-880-4477
 Fax+49-431-880-4845
 Privat +49-431-802872
 Mob.   +49-179-2937346
--
 Urlwww.mip.informatik.uni-kiel.de/~jw
 Email  [EMAIL PROTECTED]
 Privat [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] cleaning out cmake intermediate files

2006-08-23 Thread Jan Woetzel

Stephen Adler wrote:


Guys,

when I run cmake ., it generates a bunch of intermediate files. What's 
the cleanest way of
removing all these intermediate files, so that if I import the 
directory tree into a code repository, I don't accidentally commit the 
cmake intermediate files.


I agree that out of source build is the cleanest and easiest way - we 
use in 95%.


However, it's not always possible.
We solved the issue configuring the CVS server to ignore more patterns like

CMakeFiles
CMakeTmp
*.dir

Jan.

--

 Dipl.-Ing. Jan Woetzel
--
 Uni Kiel
 Institut f. Informatik und Praktische Mathematik
 Hermann-Rodewaldstr. 3  [Raum 310]
 24098 Kiel/Germany
--
 Tel+49-431-880-4477
 Fax+49-431-880-4845
 Privat +49-431-802872
 Mob.   +49-179-2937346
--
 Urlwww.mip.informatik.uni-kiel.de/~jw
 Email  [EMAIL PROTECTED]
 Privat [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Different behaviour of LIBRARY_OUTPUT_PATH?

2006-08-08 Thread Jan Woetzel

Christian Ehrlicher wrote:

So no chance to get it in another directory than the config dir with 
.vcproj?


I wouldn't try it as multiple configurations inside one build tree need 
these IntDir subdirectories.

See CMAKE_CONFIGURATION_TYPES

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-4845
 Mob.  +49-179-2937346
--
 Url   www.mip.informatik.uni-kiel.de/~jw
 Email [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] C# news?

2006-08-08 Thread Jan Woetzel

Brad King wrote:


Currently there are no plans to develop support ourselves to my
knowledge.  If someone volunteers to add it we will accept the
contribution.  If you want to do this we can get you started.
 


Thanks for the info,
However, I will stick to my custom commands for now.

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-4845
 Mob.  +49-179-2937346
--
 Url   www.mip.informatik.uni-kiel.de/~jw
 Email [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] C# news?

2006-08-05 Thread Jan Woetzel








Hi, 
is there any development (planned) on C#
(Csharp) support for CMake ?

Found only 
http://public.kitware.com/pipermail/cmake/2004-October/005729.html


This did not work with MSVS 71 generator and CMake 2.4.2:
because nothins is compiled. 

PROJECT(helloCS)
ADD_EXECUTABLE(hello hello.cs)
# dummy
workaround for determining linker langage for .cs
SET_TARGET_PROPERTIES(hello PROPERTIES LINKER_LANGUAGE CXX) 

I solved my minor C# usage with custom commands and direct calls
to "csc.exe hello.cs" for now.
I'm asking out of curiosity because: 
- integration into MSVS IDE would be
nice

Best,
Jan.
-- 

  Dipl.-Ing. Jan Woetzel
--
  Uni Kiel
  Institut f. Informatik und Praktische Mathematik
  Hermann-Rodewaldstr. 3  [Raum 310]
  24098 Kiel/Germany
--
  Tel+49-431-880-4477
  Fax+49-431-880-4845
  Privat +49-431-802872
  Mob.   +49-179-2937346
--
  Urlwww.mip.informatik.uni-kiel.de/~jw
  Email  [EMAIL PROTECTED]
  Privat [EMAIL PROTECTED]



___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CHECK_FUNCTION_EXISTS() issue

2006-08-03 Thread Jan Woetzel

Crni Gorac wrote:


SET(
   OPENMP_FLAGS
   -fopenmp # gcc
   -openmp # icc
   -mp # SGI  PGI
   -xopenmp # Sun
   -omp # Tru64
   -qsmp=omp # AIX
 )


For completeness:
flag /openmp works great here with MS Visual Studio 8 (VS8).

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Re: cmake -E create_symlink for Windows

2006-08-03 Thread Jan Woetzel

Brandon J. Van Every wrote:

Are the notions of shortcut and symlink sufficiently similar, 
that it's reasonable to include this capability for Windows in general? 


With native Windows only XP with NTFS has real links - and only hard 
links, not soft links.


Jan.

--

 Dipl.-Ing. Jan Woetzel
--
 Uni Kiel
 Institut f. Informatik und Praktische Mathematik
 Hermann-Rodewaldstr. 3  [Raum 310]
 24098 Kiel/Germany
--
 Tel+49-431-880-4477
 Fax+49-431-880-4845
 Privat +49-431-802872
 Mob.   +49-179-2937346
--
 Urlwww.mip.informatik.uni-kiel.de/~jw
 Email  [EMAIL PROTECTED]
 Privat [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] msvc postfix conventions

2006-08-02 Thread Jan Woetzel

Brandon J. Van Every wrote:

I'm trying to decide reasonable defaults for the various _POSTFIX 
variables under msvc.  My guesses:

DEBUG_POSTFIX d
For all I know there may not be many conventions, as keeping debug and 
release builds in different directories is a common practice.


Brandon,
keep the disadvantage of postfixes in mind:
- using multiple configurations inside one build tree (with MSVS IDE) is 
complicated with postfix

- works only for two configurations, typically Debug and Release because:
- you have to use TARGET_LINK_LIBRARIES command with prefix flags 
optimized and debug

I see only the advantage of one single lib dir.

We decided to go with the IntDir subdirectories and it works quite 
well, here.

The libs are put into i.e. lib/debug, lib/release ... lib/fooCfg etc.

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] ADD_SUBDIRECTORY error

2006-07-28 Thread Jan Woetzel

Xavier Larrode wrote:


But i can do a macro to move them on PATH_FOR_LIB...


see

LIBRARY_OUTPUT_PATH

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-4845
 Mob.  +49-179-2937346
--
 Url   www.mip.informatik.uni-kiel.de/~jw
 Email [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: AW: [CMake] Selecting runtime library on Visual Studio projects

2006-07-19 Thread Jan Woetzel

Sagnes, Frederic wrote:


I attached my dirty but working solution: I just override the default command 
line in each case. Do some people care about this problem or do I really have 
to write a bug report?

Thank you for your help, it works fine now ;)
 


That's exactly what I suggested and what we use here, too.

I think it's no bug - you are just reinitializing the defaults.

Please note that you shoudl override the defaults only once to allow the 
user to edit the flags interactively in teh gui (ccmake /CMakesetup).

Otherwise gui changes will ve overriden by your force.

We use a DefineFlags.cmake to (re-)initialize the CMake flags once 
based on setting+querying a variable.


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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] color makefile ?

2006-07-19 Thread Jan Woetzel

Brad King wrote:


CMAKE_COLOR_MAKEFILE OFF


What is the value of TERM in the compilation window?
 



(1) I think XEmacs is using an xterm but doing his own extar coloring to mark e.g. errors in red. 
Is that the problem? 



M-x compile / Compile command: / printenv 
contains: 
...

COLORTERM=1
TERM=xterm
...

Compiling directly inside an xterm works as expected with correct colored output. 

Typical output inside the Linux XEmacs compile window (make -C build-dir ...): 


The marked line apperas green on screen, the others are black.



cd /datapc/visu2/jw/build/BIAS/
make -C $BIAS_DIR    This line appears GREEN #
make: Entering directory `/datapc/visu2/jw/build/BIAS'
make[1]: Entering directory `/datapc/visu2/jw/build/BIAS'
make[2]: Entering directory `/datapc/visu2/jw/build/BIAS'
Building CXX object MathAlgo/CMakeFiles/BIASMathAlgo.dir/BSplineCurve.o
Building CXX object 
MathAlgo/CMakeFiles/BIASMathAlgo.dir/UnscentedTransform.o
Building CXX object MathAlgo/CMakeFiles/BIASMathAlgo.dir/GaussHelmert.o
...


The problem occurs only with XEmacs on Linux. 
XEmacs on Windows is fine (no colored output). 


Jan.


--

 Dipl.-Ing. Jan Woetzel
--
 Uni Kiel
 Institut f. Informatik und Praktische Mathematik
 Hermann-Rodewaldstr. 3  [Raum 310]
 24098 Kiel/Germany
--
 Tel+49-431-880-4477
 Fax+49-431-880-4054
 Privat +49-431-802872
 Mob.   +49-179-2937346
--
 Urlwww.mip.informatik.uni-kiel.de/~jw
 Email  [EMAIL PROTECTED]
 Privat [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] color makefile ?

2006-07-19 Thread Jan Woetzel

Jan Woetzel wrote:


CMAKE_COLOR_MAKEFILE OFF



(1) I think XEmacs is using an xterm but doing his own extar coloring 
to mark e.g. errors in red. Is that the problem?


OK,
an xterm running inside (X-)Emacs can be determined via EMACS 
environment variable

printenv inside Emacs contains

EMACS=t

which is not set in normal xterm shell.

I think this logic should be added to
kwsys/Terminal.c: 167.

Jan.

--

 Dipl.-Ing. Jan Woetzel
--
 Uni Kiel
 Institut f. Informatik und Praktische Mathematik
 Hermann-Rodewaldstr. 3  [Raum 310]
 24098 Kiel/Germany
--
 Tel+49-431-880-4477
 Fax+49-431-880-4054
 Privat +49-431-802872
 Mob.   +49-179-2937346
--
 Urlwww.mip.informatik.uni-kiel.de/~jw
 Email  [EMAIL PROTECTED]
 Privat [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] color makefile ?

2006-07-19 Thread Jan Woetzel

Jan Woetzel wrote:

(1) I think XEmacs is using an xterm but doing his own extar coloring 
to mark e.g. errors in red. Is that the problem?


for the records:

This is a workaround for the color problems:
Use compile-command
 make -C dir | tee

tee removes all the undesired escape sequences :)

However,
I think the problem should be fixed in CMake to be even more 
conservative with coloring, e.g. with a runtime check on env. var 
EMACS=t.


Jan.

--

 Dipl.-Ing. Jan Woetzel
--
 Uni Kiel
 Institut f. Informatik und Praktische Mathematik
 Hermann-Rodewaldstr. 3  [Raum 310]
 24098 Kiel/Germany
--
 Tel+49-431-880-4477
 Fax+49-431-880-4054
 Privat +49-431-802872
 Mob.   +49-179-2937346
--
 Urlwww.mip.informatik.uni-kiel.de/~jw
 Email  [EMAIL PROTECTED]
 Privat [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Am I stupid or what?

2006-07-17 Thread Jan Woetzel




Louis Kruger wrote:


  
  
  
  I tried to build CMake 2.0.6 - 2.4.2
without success. ( I need it for VTK which I need for ProcessView.)

Disappointment can be frustrating - but why don't you use a binary
release - and the newest?
See
http://www.cmake.org/HTML/Download.html


-- 

  Dipl.-Ing. Jan Woetzel
--
  Uni Kiel
  Institut f. Informatik und Praktische Mathematik
  Hermann-Rodewaldstr. 3  [Raum 310]
  24098 Kiel/Germany
--
  Tel+49-431-880-4477
  Fax+49-431-880-4054
  Privat +49-431-802872
  Mob.   +49-179-2937346
--
  Urlwww.mip.informatik.uni-kiel.de/~jw
  Email  [EMAIL PROTECTED]
  Privat [EMAIL PROTECTED]



___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] small VS 2005 problem

2006-07-16 Thread Jan Woetzel

Christian Ehrlicher wrote:


/TP is overwritten by /TC.
 


That bug is already fixed in CVS.

Jan.

--

 Dipl.-Ing. Jan Woetzel
--
 Uni Kiel
 Institut f. Informatik und Praktische Mathematik
 Hermann-Rodewaldstr. 3  [Raum 310]
 24098 Kiel/Germany
--
 Tel+49-431-880-4477
 Fax+49-431-880-4054
 Privat +49-431-802872
 Mob.   +49-179-2937346
--
 Urlwww.mip.informatik.uni-kiel.de/~jw
 Email  [EMAIL PROTECTED]
 Privat [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] FindBoost.cmake

2006-07-13 Thread Jan Woetzel

Hi,
has anybody a geneal purpose FindBoost.cmake?

I started with the one from Andrew Maclean, see
http://public.kitware.com/pipermail/cmake/2005-October/007324.html

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] a dependency nag/bug

2006-07-11 Thread Jan Woetzel

Casper Boemann wrote:

That used to work during the auto* days, but with cmake it begins to recompile 
everywhere else too. That means i send a lot of time recompiling stuff i 
don't need (until later)
 


That's annoying e, too - I vote for this ;-)

I don't know how to fix it but it is related to the order of follwoing 
the dependencies.
It would be great to first build the object files of a lib and later 
(before linking) the other dependant libs.


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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Add a compiler switch to a a specific configuration

2006-07-11 Thread Jan Woetzel

Sagnes, Frederic wrote:


Hello,

I'm using the STLport library on several targets on my project, and need to 
define the _STLP_DEBUG flag on the debug configuration of each target. I looked 
at :
SET_TARGET_PROPERTIES ( PROPERTIES COMPILE_FLAGS -D_STLP_DEBUG )

... but it doesn't seem to be able to specify a switch for a specific 
configuration, neither can :
ADD_DEFINITIONS ( -D_STLP_DEBUG )



IF (CMAKE_BUILD_TYPE MATCHES .*[rR][eE][lL].*)

# whatever you need in release

ELSE(CMAKE_BUILD_TYPE MATCHES .*[rR][eE][lL].*)

 ADD_DEFINITIONS ( -D_STLP_DEBUG )

ENDIF (CMAKE_BUILD_TYPE MATCHES .*[rR][eE][lL].*)

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] FIND_PACKAGE list of components (...REQUIRED components)

2006-07-07 Thread Jan Woetzel

Hi CMates,

(1)
can I retrieve a list with all components listed after REQUIRED, e.g.
FIND_PACKAGE(Foo REQUIRED component1   component2 ... )
--
component1; component2 ?

I want to use it in FindFoo.cmake with
Foo_FIND_REQUIRED_component1
to handle arbitrary components (unknown to teh Find scripts and handled 
through macros).



(2) QUIET actually overrides REQUIRED and suppresses the components 
_FIND_REQUIRED setting.

I think this is not correct.
QUIET should just suppress the verbosity of the Find script complains 
about missing libraries, right?
No matter if finding QUIETLY or not - the REQUIRED settings are 
mandatory to set correct _FOUND flags - thus a bug, right?

See
cmFindPackageCommand.cxx:75 ff

Jan

--

 Dipl.-Ing. Jan Woetzel
--
 Uni Kiel
 Institut f. Informatik und Praktische Mathematik
 Hermann-Rodewaldstr. 3  [Raum 310]
 24098 Kiel/Germany
--
 Tel+49-431-880-4477
 Fax+49-431-880-4054
 Privat +49-431-802872
 Mob.   +49-179-2937346
--
 Urlwww.mip.informatik.uni-kiel.de/~jw
 Email  [EMAIL PROTECTED]
 Privat [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CPack parameters

2006-07-06 Thread Jan Woetzel

Hendrik Belitz wrote:


Hi Andy,

I just tried the following. I added

SET(CPACK_SOURCE_IGNORE_FILES /latex/;/xml/;/^CMake/;/\.kdev/)
 


Setting CPACK_IGNORE_FILES works, here.
At least for listing individual files.
I think your regular expression is wrong.

E..g.  ignore foo.xml:
SET(CPACK_IGNORE_FILES foo\\.xml;/CVS/;/\\.svn/;;\\.swp$;\\.#;/#)

You know you need to use regular expression instead of globbing, right?

E.g.

/\.kdev/
does not drop *.kdev 


CPack -V may help you debugging the lists of expressions.


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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CPack parameters

2006-07-06 Thread Jan Woetzel

Hendrik,
and you know you need to escape each \ in your camke code? (that was my 
first mistake).


Thus one backslash in regular expressions becomes four  e.g. to 
escape the dot in CMakeLists.txt


E.g.

SET(CPACK_SOURCE_IGNORE_FILES
 .*.xml # globbing  *.xml
 /CVS/
 /.svn/
 .swp$
 .#
 /#
 )


And cpack -V jhelps.

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CPack ignore parameter

2006-07-06 Thread Jan Woetzel

Hendrik Belitz wrote:


So the following

SET(CPACK_SOURCE_IGNORE_FILES
/^CPack.*/
/.*.kdev.*/)

should result in ignoring all files Starting with 'CPack' or containing 
'.kdev', right? 


No.
Note the / forward slashes - they catch directories.


Start playing with
.*.kdev

See
http://www.cmake.org/Wiki/CMake_FAQ#Which_regular_expressions_are_supported_by_cmake.3F

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] WXDialog using UNICODE wx build again and unicode in CMake?

2006-07-05 Thread Jan Woetzel









Hi, 
I am running into troubles compiling WXDialog against a WX compiled as
UNICODE build. 

Using 
- CMake CVS from yesterday, 
- wx UNICODE build on Linux (because the defalt Suse 10.1 supplied
binary rpms are build with unicode)
 - wx non-Unicode "ansi" on Windows makes no problem (compiled
by me),
- wx 2.6.3

With UNICODE build there are lots of errors regarding conversions
between non-std:.string, char* and wxString, wxChar because of missing
""

The errors can be solved using 
- wx underscore macro, e.g. _("foo") 
- explicit wxString contructors, e.g. wxString(std::string.c_str(),
wxConvUTF8)
- explcit Ascii conversion, e.g. wxString.ToAscii()
See http://www.wxwindows.org/manuals/2.6.3/wx_unicode.html

I started fixing them, then noticed Mathieu already fixed some of them
and submitted a patch: 
http://public.kitware.com/pipermail/cmake/2005-August/007058.html

(1) However, the patch was not applied to CMake CVS, right? Why not?
(2) The patch does not fix all problems in yesterdays cvs - at least
some argv conversions (char** / wxChar**) need a fix.
(3) Has anybody solved the issue and can submit a patch that will be
included in CVS ?

WXDialog is using the CMakeLib through its char* interfaces.
(4) Will Cmake always use ascii or are there future plans to switch
CMake to UNICODE wchar ? 
The explicit wxUTF8 conversion will only work, if Cmake itself is build
as unicode/wchar.
Thus I have a feeling to avoid unicode in CMakeLib interfaces. 

I like WXDialog
more than than MFCDialog/Cursesdialog because 
- running the same gui on Windows and Linux is great,
- WXDialog does not jump to beginning of list after deleting a single
cache entry. 

To conclude: 
Great work , Jorgen! 
We just need 1% more coding to make it useable with Unicode builds
which seem to be default at least on Linux, now.

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



___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Per-target compiler flags?

2006-07-05 Thread Jan Woetzel

Remi Denis-Courmont wrote:


The project is compiling the same source files multiple times with different
defines, resulting in different object code... But it seems like
ADD_DEFINITIONS won't support this case.

Any solution?

 



You may write multiple .cpp files that #include the code.
Then use SET_SOURCE_FILES_PROPERTIES with different PROPERTIES 
COMPILE_FLAGS for each file.


Work great, here.

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Name of output file

2006-07-05 Thread Jan Woetzel

Filipe Sousa wrote:



two alternatives: 1) rename your hand-written makefile to something else
and use make -f 2) replace you makefile with CMakeLists.txt and use cmake.

 


or
(3) use out-of source builds.

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] compiling headers in subdirs with MSVS 7.1 bug

2006-07-04 Thread Jan Woetzel


Header files in subdirectories are compiled with CMake 2.4.2 (and CVS 
from today),


E.g.

ADD_LIBRARY(bar
 sub0/foo0.cpp sub0/foo0.hh
)

will not work with VS 7.1 generator

See my bug report #3481

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] doesnt FIND_PACKAGE set to 1 name_FOUND when successfull?

2006-07-03 Thread Jan Woetzel

Luca Cappa wrote:



FIND_PACKAGE(wxWindows)
MESSAGE (${wxWindows_FOUND})


The variabel names are case sensituv.
WXWINDOWS_FOUND
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 [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Installing CMake for multiple platforms

2006-06-30 Thread Jan Woetzel

William A. Hoffman wrote:


The directory stucture in your email has font issues or something.
 


Reading it in character encoding Uncode (instead of western works here.
Jan.

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] subdirectories INSTALL(FILES subdir/foo.h ...)

2006-06-30 Thread Jan Woetzel

Brad King wrote:


INSTALL(FILES  subdir/foo.h DESTINATION include )

This is the expected behavior.  ...You can probably do what you want 
in CMake code with a combination of FILE(GLOB) and IF(IS_DIRECTORY).


Thanks for the information.

I will write a macro to emulate this with GET_FILENAME_COMPONENT(... 
PATH) to do the job.


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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] subdirectories INSTALL(FILES subdir/foo.h ...)

2006-06-30 Thread Jan Woetzel

Brad King wrote:

You can probably do what you want in CMake code with a combination of 
FILE(GLOB) and IF(IS_DIRECTORY).


INSTALL(DIRECTORY ...) option.  There is a feature request already in 
the bug tracker for this but it has not yet been implemented.



For the records - this works:


FILE(GLOB_RECURSE BIAS_HEADER RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.h* )
FOREACH(VAR ${BIAS_HEADER})
 # drop headers from Example dir and .in files
 IF   (${VAR} MATCHES .*Example.*|.*\\.in)
   REMOVE(BIAS_HEADER ${VAR})
 ELSE (${VAR} MATCHES .*Example.*|.*\\.in)
   # extract directoy for DESTINATION subdir tree until 
INSTALL(DIRECTORY exists)

   GET_FILENAME_COMPONENT(DIR ${VAR} PATH)
   INSTALL(FILES  ${BIAS_HEADER} DESTINATION include/BIAS/${DIR} )
 ENDIF(${VAR} MATCHES .*Example.*|.*\\.in)
ENDFOREACH(VAR) 



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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] new FindwxWidgets.cmake + UsewxWidgets.cmake

2006-06-27 Thread Jan Woetzel

klaas.holwerda wrote:




- Debug and Release in one MSVS configuration works,


How do you do this? I tried to figure out how you make the debug and 
release version link to a different set of libraries.
But i only see one WXWIDGETS_LIBRARIES as output, so do they contain 
the debug + release versions of the libraries?


If both (debug+release) are found then debug/optimized prefix option is 
used, see cmake LINK_LIBRARIES command.



I myself decide to generate valid stuff only for either debug or 
release in the VC project files. 


That's best choice anyway and should always work.



Even the include dirs must be different, since as you know there are:
c:\wxWidgets-2.6.3\lib\vc_lib\mswd\wx\setup.h
c:\wxWidgets-2.6.3\lib\vc_lib\msw\wx\setup.h


In a sense true - but practically the two files are identical.
So there is no problem as long as the configurations of debug and 
release match.


Jan.

--

 Dipl.-Ing. Jan Woetzel
--
 Uni Kiel
 Institut f. Informatik und Praktische Mathematik
 Hermann-Rodewaldstr. 3  [Raum 310]
 24098 Kiel/Germany
--
 Tel+49-431-880-4477
 Fax+49-431-880-4054
 Privat +49-431-802872
 Mob.   +49-179-2937346
--
 Urlwww.mip.informatik.uni-kiel.de/~jw
 Email  [EMAIL PROTECTED]
 Privat [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] new FindwxWidgets.cmake + UsewxWidgets.cmake

2006-06-26 Thread Jan Woetzel


Hi,
Miguel A. Figueroa-Villanueva and I rewrote the find script for 
wxWidgets (formerly known as wxWindows).

The work is based on Jorgen Boddes FindwxWin.


Improvements include :
- use wxWidgets instead of deprecated wxWindows variable names
- Windows linking against wx static and shared(DLL) works,
- Debug and Release in one MSVS configuration works,
- monolithic and multilib wx builds are handled correctly,
- the user can specify his required subset of required libraries fo 
rmultilib build (instead of monolithic).

- easy maintainment for future wx versions because it`s macro based.

We use+tested the script internally on Linux + Windows (static+shared) x 
(Debug,Release) with our internal Dart Dashboards.


The convenience UsewxWIdgets.cmake script is backward compatible.
The FindwxWidgets.cmake script is not backward compatible because of 
variabel name change (WXWINDOWS_* - WXWIDGETS_* )


I wrote the FindwxWindows in current CMake distribution and suggest:
- put Find+USe for wxWidgets into CMake CVS Modules directory (see the 
attached files),
- keep the Find+Use wxWindows script as they are for backward 
compatibility.


What do you think?

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

# - Convenience include for using wxWidgets 
# Finds if wxWidgets is installed 
# and set the appropriate libs, incdirs, flags etc. 
# INCLUDE_DIRECTORIES, LINK_DIRECTORIES and ADD_DEFINITIONS
# are called.
#
# USAGE
# Include this file inside your CMakeLists.txt:
#   SET(WXWIDGETS_USE_GL 1) # optionally set this is you need wxgl
#   INCLUDE(${CMAKE_MODULE_PATH}/UsewxWidgsts.cmake)
#
# AUTHOR
# Jan Woetzel jw -at- mip.informatik.uni-kiel.de


# debug message and logging. 
# uncomment these for distribution
IF(NOT LOGFILE )
  SET(LOGFILE ${PROJECT_BINARY_DIR}/CMakeOutput.log)
ENDIF (NOT LOGFILE )
MACRO(MSG _MSG)
#  FILE(APPEND ${LOGFILE} 
${CMAKE_CURRENT_LIST_FILE}(${CMAKE_CURRENT_LIST_LINE}):   ${_MSG}\n)
#  MESSAGE(STATUS ${CMAKE_CURRENT_LIST_FILE}(${CMAKE_CURRENT_LIST_LINE}): 
${_MSG})
ENDMACRO(MSG)

#
# set wx libs we depend on. 
# std libs is only supporte dby linux
# emulate std behavior here.
#
IF   (WIN32)
  # useful std wx libs 
  # workaround until Find script supports std libs with wx msw  mono and multi 
build 
  SET(WXWIDGETS_LIBS_STD
expat regex 
jpeg png tiff zlib  
# xml net adv media html odbc xrc
)
  MSG(WXWIDGETS_LIBS_STD=${WXWIDGETS_LIBS_STD})
  
  # use mono instead of multilib build?
  OPTION(WXWIDGETS_USE_MONOLITHIC use monolithic WX USE_LIBS etting  for 
build? OFF)
  #MARK_AS_ADVANCED(WXWIDGETS_USE_MONOLITHIC)
  MSG(WXWIDGETS_USE_MONOLITHIC=${WXWIDGETS_USE_MONOLITHIC})
  
  IF   (WXWIDGETS_USE_MONOLITHIC)
SET(WXWIDGETS_USE_LIBS ${WXWIDGETS_USE_LIBS}  
  mono 
  ${WXWIDGETS_LIBS_STD} )
MSG(selected MONOLITHIC WX)
  ELSE (WXWIDGETS_USE_MONOLITHIC)
SET(WXWIDGETS_USE_LIBS ${WXWIDGETS_USE_LIBS}  
  base core
  ${WXWIDGETS_LIBS_STD} )
MSG(selected MULTILIB WX)
  ENDIF(WXWIDGETS_USE_MONOLITHIC)
ELSE (WIN32)
  # use wx std libs
  SET(WXWIDGETS_USE_LIBS ${WXWIDGETS_USE_LIBS} std)
ENDIF(WIN32)

# check WXWIDGETS and WXWINDOWS for backward compatibility 
#OPTION(WXWIDGETS_USE_GL use wxgl lib with wxWidgets? OFF)
IF   (WXWIDGETS_USE_GL OR WXWINDOWS_USE_GL)
  SET(WXWIDGETS_USE_LIBS ${WXWIDGETS_USE_LIBS} gl)
ENDIF(WXWIDGETS_USE_GL OR WXWINDOWS_USE_GL)


#
# start the find script with the above settings 
#
FIND_PACKAGE(wxWidgets REQUIRED)

#
# add results
#
MSG(WXWIDGETS_FOUND=${WXWIDGETS_FOUND})
IF(   WXWIDGETS_FOUND)
  IF   (WXWIDGETS_INCLUDE_DIR)
INCLUDE_DIRECTORIES( ${WXWIDGETS_INCLUDE_DIR} )
MSG(WXWIDGETS_INCLUDE_DIR=${WXWIDGETS_INCLUDE_DIR})
  ENDIF(WXWIDGETS_INCLUDE_DIR)

  IF   (WXWIDGETS_LINK_DIRECTORIES)
LINK_DIRECTORIES(${WXWIDGETS_LINK_DIRECTORIES})
MSG(WXWIDGETS_LINK_DIRECTORIES=${WXWIDGETS_LINK_DIRECTORIES})
  ENDIF(WXWIDGETS_LINK_DIRECTORIES)

  IF   (WXWIDGETS_CXX_FLAGS)
SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} ${WXWIDGETS_CXX_FLAGS})
MSG(WXWIDGETS_CXX_FLAGS=${WXWIDGETS_CXX_FLAGS})
  ENDIF(WXWIDGETS_CXX_FLAGS)

  IF   (WXWIDGETS_DEFINITIONS)
ADD_DEFINITIONS( ${WXWIDGETS_DEFINITIONS} )
MSG(WXWIDGETS_DEFINITIONS=${WXWIDGETS_DEFINITIONS})
  ENDIF(WXWIDGETS_DEFINITIONS)  

  # just for backward compatibility: add deps to all targets
  # library projects better use advanced FIND_PACKAGE(wxWidgets) directly.
  IF(WXWIDGETS_LIBRARIES)
LINK_LIBRARIES(${WXWIDGETS_LIBRARIES})
# BUG: str too long MSG(WXWIDGETS_LIBRARIES=${WXWIDGETS_LIBRARIES})
FILE(APPEND ${LOGFILE} 
${CMAKE_CURRENT_LIST_FILE

Re: [CMake] new FindwxWidgets.cmake + UsewxWidgets.cmake

2006-06-26 Thread Jan Woetzel

Brad King wrote:


.. Please submit the files in a feature request on the bug tracker:


Done - #3443.

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] File globbing with relative path

2006-06-26 Thread Jan Woetzel

jbd wrote:


I'd like to retrieve the relative path of a list of files. For example :
FILE (GLOB SRC_FILES Test*.cxx Test*.cpp Test*.c)
 


See the RELATIVE option

 FILE(GLOB variable [RELATIVE path] [globbing expressions]...)

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Re: File globbing with relative path

2006-06-26 Thread Jan Woetzel

jbd wrote:



... i tried :
FILE (GLOB SRC_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} Test*.cpp) 
but it doesn't work.
 



This works here with CMake 2.4.2:

FILE(GLOB FOO RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.c*)
MESSAGE(DBG FOO=${FOO})

Jan.

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Bug Tracker version

2006-06-26 Thread Jan Woetzel


.. and the bug tracker is also stuck at version 2.4.0

Jan.

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] ${CTEST_CONFIGURATION_TYPE} expanded to an empty string while running ctest

2006-06-21 Thread Jan Woetzel

Gaetan Lehmann wrote:


ADD_TEST(mytest echo testing \${CTEST_CONFIGURATION_TYPE})


I think your problem is a typo - missing S at the end:

However, there can be multiple types in there, typically:
MESSAGE(${CMAKE_CONFIGURATION_TYPES})
Debug;Release;MinSizeRel;RelWithDebInfo

Checking
- _DEBUG #define in code,
CMAKE_BUILD_TYPE
or configuring a file may be useful.

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] FIND_PACKAGE REQUIRED - concept chnage?

2006-06-20 Thread Jan Woetzel

Brad King wrote:


FIND_PACKAGE(Foo REQUIRED)


I cannot find any code that would have done this in CMake 2.0.  What 
makes you think this worked?


I just tested it again.
You are right, 2.06 just complains when FindFoo.cnake was not found.
2.0 and .4 ignore the  _FOUND thing.

The part about _FIND_REQUIRED and _FIND_QUIETLY is useful only to 
module authors so it is in the readme.  Someone using FIND_PACKAGE to 
find a package does not care.


OK, It took me 70 find scripts to figure this out...

Thanks for clarification,
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 [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] cpack rocks + PATH

2006-06-19 Thread Jan Woetzel


Hi,
I am impressed about cpack- it has never been so easy to write a simple 
installer for Windows and Linux.

Great work!

One last wish on my list ...
The Nsis installer is optionally adding
CPACK_PACKAGE_INSTALL_DIRECTORY
to PATH by default, e.g. C:\Programs\Foo

(1) Is there an easy way to add CPACK_PACKAGE_INSTALL_DIRECTORY/bin to 
PATH instead (e.g. C:\Programs\Foo\BIN)

Can you give me a pointer?
A short look at CPackConfig.cmake.in/CPackConfig.cmake did not help me.

For the records: I followed the CMake installer example and it worked 
out of the box.


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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] cpack rocks + PATH

2006-06-19 Thread Jan Woetzel

Jan Woetzel wrote:

(1) Is there an easy way to add CPACK_PACKAGE_INSTALL_DIRECTORY/bin to 
PATH instead (e.g. C:\Programs\Foo\BIN)


Ok, found it:
Modules/NSIS.is the place to start.

Jan.

--

 Dipl.-Ing. Jan Woetzel
--
 Uni Kiel
 Institut f. Informatik und Praktische Mathematik
 Hermann-Rodewaldstr. 3  [Raum 310]
 24098 Kiel/Germany
--
 Tel+49-431-880-4477
 Fax+49-431-880-4054
 Privat +49-431-802872
 Mob.   +49-179-2937346
--
 Urlwww.mip.informatik.uni-kiel.de/~jw
 Email  [EMAIL PROTECTED]
 Privat [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] 1024 BYte submission limit with cmake 2.42 +dart1

2006-06-15 Thread Jan Woetzel






Hi,
the output of my cmake/ctest submission ist cut off after 1024 byte
with this message appearing on the dart1 dashboard page: 

The rest of the test output was removed since it exceeds the threshold of 1024 characters.


I am using:
- cmake/ctest 2.4.2 
- running on Linux with makefile generator
- submitting to a "dart1" server

(1) Is there an option to increase the size of submitted/generated ctest output with dart1 +cmake 2.42 ?


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



___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread Jan Woetzel

[EMAIL PROTECTED] wrote:

The FindImageMagick.cmake I wrote was put in the 
/usr/local/share/CMake/Modules/
I now copyed yours and put it there, but when I do ccmake . ,it gives 
the following error message:


 CMake Error: IMAGEMAGICKLIB_DIR is not set.  It must be set to the 
directory containing IMAGEMAGICKLIBConfig.cmake in order to use 
IMAGEMAGICKLIB.



FINDPACKAGE(XXX) tries to find
1. Find XXX.cmake, then
2. XXXConfig.cmake - with additionalyy searching in XXX_DIR.
Howver, our script shoudl be fodun by 1.

Both approached fail in your case.
(1) Check file and directory permissions
(2) then you may try try not to copy it to Modules dir but set your own 
CMAKE_MODULE_PATH to teh dir containing the Find script to cut the the 
problem


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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread Jan Woetzel

[EMAIL PROTECTED] wrote:


I do have FIND_PACKAGE(IMAGEMAGICK) in the CMakeLists.txt.



The (file) names are case sensitive!
Try FIND_PACKAGE(ImageMagickLib)

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] how to write cmake file for ImageMagick package?

2006-06-12 Thread Jan Woetzel

[EMAIL PROTECTED] wrote:

I installed the newest imagemagick package as root. The Magick++.h and 
the folders of magick, Magick++ and wand are located in /usr/local/include


Your problem is not about finding the libs.
It is about cmake (not) finding the FindImageMagicklib.cmake find script.

Please have a look at this *working* example and run it:
http://www.mip.informatik.uni-kiel.de/~jw/cmake/hellomagick.zip

Just tested with 2.4.2

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] FIND_PACKAGE REQUIRED bug

2006-06-12 Thread Jan Woetzel


The REQUIRED flag checking in
FIND_PACKAGE(Foo REQUIRED)
is not checking the result of FOO_FOUND anymore.

See bug report 3379:

http://www.cmake.org/Bug/bug.php?op=showbugid=3379

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Re: bug ADD_DEFINITIONS

2006-06-09 Thread Jan Woetzel




Peter Kmmel wrote:

  

  
SET_SOURCE_FILES_PROPERTIES( ${FN2}  PROPERTIES COMPILE_FLAGS

  

By the way,
ADD_DEFINTIONS has another bug in Visual Studio 7.1 generator,
see my bug report 3354

Example:
ADD_DEFINTIONS( -foo )
adds
/D "-foo"
instead of
-foo

Still talking about cmake 2.4.2 on Windows with MSVS .net 2003 generator.

  
  As I understand it ADD_DEFINTIONS is only for macro definitions and
not for flags in general.
  

(1) The 2.4.2 docu states: 
"Adds flags to command line of C and C++ compilers. This command
can be
used to add any flag to a compile line, but the -D flag is accepted
most C/C++ compilers. Other flags may not be as portable."

(2) It works as expecetd with gnu makefils generators (Linux gnu make
and windows nmake), only MSVS 2003 generator adds the extra /D and
quotes in front. 



  SET(CMAKE_CXX_FLAGS_DEBUG "-wd4996 -wd4800")
  

I think that does not work with different flags for each subdirectory -
but I will try. 

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



___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

[CMake] Re: bug SET_SOURCE_FILES_PROPERTIES with files in subdirectory

2006-06-08 Thread Jan Woetzel

Jan Woetzel wrote:



Setting PROPERTIES of files in subdirectories does not work,
...
SET( FN2 sub/foo2.cpp )
SET_SOURCE_FILES_PROPERTIES( ${FN2}  PROPERTIES COMPILE_FLAGS 
-DSomeFlags_DBG_FOO2 ) # FIXME


(1) Is there a workaround ?


Forgot to mention: I'm talking about 2.4.2, Windows and Linux are 
affected, seebug report 3353.


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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] bug SET_SOURCE_FILES_PROPERTIES with files in subdirectory

2006-06-08 Thread Jan Woetzel


Setting PROPERTIES of files in subdirectories does not work,
see bug report 3353.

E.g.

PROJECT(subprop)
SET( FN1 foo.cpp )
SET( FN2 sub/foo2.cpp )
ADD_LIBRARY( foo ${FN1} ${FN2} )
SET_SOURCE_FILES_PROPERTIES( ${FN1}  PROPERTIES COMPILE_FLAGS 
-DSomeFlags_DBG_FOO1 ) # OK
SET_SOURCE_FILES_PROPERTIES( ${FN2}  PROPERTIES COMPILE_FLAGS 
-DSomeFlags_DBG_FOO2 ) # FIXME

GET_SOURCE_FILE_PROPERTY( VAL1 ${FN1} COMPILE_FLAGS ) # OK
GET_SOURCE_FILE_PROPERTY( VAL2 ${FN2} COMPILE_FLAGS ) # FIXME
MESSAGE(VAL1 for ${FN1} is : ${VAL1})
MESSAGE(VAL2 for ${FN2} is : ${VAL2})

(1) Is there a workaround ?

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] build time / unneccessary configure for library targets on switch from 2.0.6 to 2.4.2

2006-06-06 Thread Jan Woetzel

Brad King wrote:


Jan Woetzel wrote:

In particular when nothing has changed the nothing to do build now 
takes  60 seconds.
With 2.06 it took  5 seconds as expected to build when everything 
was up to date.



I found the problem:, it was:
INSTALL_TARGETS
INSTALL_FILES

I had to replace the above old command by its new substitute INSTALL.

To conclude:
- With Cmake 2.4.2 on Windows
- MSVS .net 2003 generator has the annoyance
- replacing the old INSTALL commands fixes the problem.
- Linux make and windows nmake are not affected and work as exepcted

Thanks,
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 [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] 3rd party cmake files

2006-06-05 Thread Jan Woetzel

Brad King wrote:

 If it has found this file then why does it need a find script to find 
QtDBUS since it has just found something from the package?


Brad,
I do not agree if multiple packages/find scripts come into play because 
each client project has to take care of cmakes internal structure.


We use FIND_PACKAGE with PackageConfig.cmake for our *major* packages 
and are happy with some possibly interactive or -D Package_DIR 
settings.


However, our 70 additional  simple find scripts do not belong to a 
special package.
Just like the CMake/Modules scripts teh y look for some external 
libs+headers.
They are used by many projects and canbe thought of as installed, 
belong to an independant cvs etc.


To use these additional find scripts
- without complicated -D setting on cmake call
- wrapping shell script etc...
we need something as ugly as this:


# environment variable should contain our additional cmake find script 
Modules

SET(CMAKE_MODULE_PATH $ENV{CMAKE_MODULE_PATH})
IF(NOT CMAKE_MODULE_PATH)
 MESSAGE(FATAL_ERROR FATAL ERROR: Please set shell variable 
CMAKE_MODULE_PATH to our additional CMakeModules repository.)

ELSE(NOT CMAKE_MODULE_PATH)
 # a user modules path is set
 # check for at least one of our find scripts to be sure the path is no 
crap.
 FIND_FILE(BIAS_CMAKE_MODULE_PATH_OK FindBLAS.cmake 
${CMAKE_MODULE_PATH} DOC testing CMAKE_MODULE_PATH)

 IF (NOT BIAS_CMAKE_MODULE_PATH_OK)
   MESSAGE(FATAL_ERROR Your CMAKE_MODULE_PATH=${CMAKE_MODULE_PATH} is 
invalid because FindBLAS.cmake not found. Please set shell variable 
CMAKE_MODULE_PATH to your (cvs) CMakeModules repository.)

 ENDIF (NOT BIAS_CMAKE_MODULE_PATH_OK)
ENDIF(NOT CMAKE_MODULE_PATH)
MARK_AS_ADVANCED(BIAS_CMAKE_MODULE_PATH_OK)


Extending cmake would be much easier and more open
with an easy way to extend teh search path for FIND_PACKAGE.


What do you think?

Jan.

--

 Dipl.-Ing. Jan Woetzel
--
 Uni Kiel
 Institut f. Informatik und Praktische Mathematik
 Hermann-Rodewaldstr. 3  [Raum 310]
 24098 Kiel/Germany
--
 Tel+49-431-880-4477
 Fax+49-431-880-4054
 Privat +49-431-802872
 Mob.   +49-179-2937346
--
 Urlwww.mip.informatik.uni-kiel.de/~jw
 Email  [EMAIL PROTECTED]
 Privat [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Re: unneccessary configure for library targets

2006-06-05 Thread Jan Woetzel

Brad King wrote:

CMake generates rules to automatically regenerate the project when 
CMakeLists.txt code changes (2.0 did also).  For some reason Visual 
Studio is deciding to run these rules probably because it thinks the 
CMake input files have changed.  You'll have to check file 
modification times.  Look for a file with a date in the future in the 
source tree.


NMake is not affected, only Visual Studio .net 2003.
I will dig deeper tomorrow...

Jan.

--

 Dipl.-Ing. Jan Woetzel
--
 Uni Kiel
 Institut f. Informatik und Praktische Mathematik
 Hermann-Rodewaldstr. 3  [Raum 310]
 24098 Kiel/Germany
--
 Tel+49-431-880-4477
 Fax+49-431-880-4054
 Privat +49-431-802872
 Mob.   +49-179-2937346
--
 Urlwww.mip.informatik.uni-kiel.de/~jw
 Email  [EMAIL PROTECTED]
 Privat [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] libs only target

2006-06-04 Thread Jan Woetzel

Mike Talbot wrote:


Why not try

ADD_SUBDIRECTORY(Examples EXCLUDE_FROM_ALL)


Because the binaries for the ADD_TEST targets required by ctest will not 
be built, too.


Jan

--

 Dipl.-Ing. Jan Woetzel
--
 Uni Kiel
 Institut f. Informatik und Praktische Mathematik
 Hermann-Rodewaldstr. 3  [Raum 310]
 24098 Kiel/Germany
--
 Tel+49-431-880-4477
 Fax+49-431-880-4054
 Privat +49-431-802872
 Mob.   +49-179-2937346
--
 Urlwww.mip.informatik.uni-kiel.de/~jw
 Email  [EMAIL PROTECTED]
 Privat [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] libs only target

2006-06-01 Thread Jan Woetzel


Hi,
is there a way to compile/link only the libs (ADD_LIBRARY)
but skip linking the executables (ADD_EXECUTABLE)
using a global option/switch on cmake level?

I want to save compilation time when I need only the libraries for 
linking my client project.
But we have about 200 examples in subdirectories and linking them takes 
a lot of time...



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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake with wxWidgets on Linux

2006-05-29 Thread Jan Woetzel


ps: look for gtk in
strace -eopen YourBinary

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake with wxWidgets on Linux

2006-05-29 Thread Jan Woetzel

Reinhold Fuereder wrote:

I think for recent wxWidgets versions the best references for CMake based 
project building are by Jorgen Bodde and Jerry Fath based on initial work from 
Klaas Holwerda (please correct me if i am wrong), see:

 - http://www.wxwidgets.org/wiki/index.php/CMake,
 


No problems witch the old Find script, here. I did
However,  we use *monolithic* build of wx (2.6.3)  Windows (MSVS 7.1) 
and Linux (gcc 3.3 and 4.1) only.

E.g. wx built with:
nmake -f makefile.vc BUILD=debug SHARED=0 USE_OPENGL=1 MONOLITHIC=1

Please note that  I didn't study the script of Jorgen/Jerry/Klaas in detail.

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Add non-build files to a project?

2006-05-24 Thread Jan Woetzel

James Mansion wrote:


VStudio projects I add in the includes and
the documentation text and web files so I can
select them easily for editing.
 

You could add arbitray files to a target - as long as VS has no 
automatic rule to compile them (e.g. .cc, .cpp etc)

I am adding .html files to libraries/executable or using a dummy target e.g:

ADD_EXECUTABLE(dummy dummy.cpp 
${CMAKE_CURRENT_BINARY_DIR}/Doc/index.html)


SOURCE_GROUP command may be useful, too.

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Add non-build files to a project?

2006-05-24 Thread Jan Woetzel

Jan Woetzel wrote:

ADD_EXECUTABLE(dummy dummy.cpp 
${CMAKE_CURRENT_BINARY_DIR}/Doc/index.html)


Sidenote:
I think you have to take care that they are added only to VS IDE 
generator builds,

in particular NOT to makefiles.

Thus we are using something like this:

IF(CMAKE_BUILD_TOOL MATCHES (msdev|devenv))
ADD_EXECUTABLE( hello ${SOURCES} ${HEADER} ${DOC})
ELSE  (CMAKE_BUILD_TOOL MATCHES (msdev|devenv))
 ADD_EXECUTABLE( hello ${SOURCES} )
ENDIF (CMAKE_BUILD_TOOL MATCHES (msdev|devenv))

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] How can I permanently get rid of project configurations for VS.Net 2003?

2006-05-18 Thread Jan Woetzel


Phillip Hellewell wrote:

Mainly I just want Debug and Release, like it was before.  But I may 
keep RelWithDebInfo, because I see that one being useful for me.


Try to set CMAKE_CONFIGURATION_TYPES to Debig;Release


How can I permanently get rid of the MinSizeRel configuration, so it 
is never generated?  I want to do it globally, not by having to change 
every CMakeList.txt file.


We are using a global DefineCommon.cmake in our CMakeModules dir to 
override several CMake defaults like build type, flags etc.


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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] sorting alphabetically

2006-05-10 Thread Jan Woetzel

Hi,
does cmake support alphabetically sorting?
Something like:

SET (SRC a c b)
SORT(SRC) -- a b c

My problem is I am adding sources files in random order (due to 
dependency checks) but they shoudl appear in alphabetical order in MSVS 
IDE.


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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] sorting alphabetically

2006-05-10 Thread Jan Woetzel

Alexander Neundorf wrote:


cmake 2.4.1 has LIST(SORT SRCS) ...
 


Great news, I'm going to update to current cmake version.

Thanks,
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 [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Why does cmake 2.4.0 (beta) compile header files?

2006-04-20 Thread Jan Woetzel

Brad King wrote:


Phillip Hellewell wrote:


Why does CMake version 2.4.0 cause VS7 to compile header files?


I cannot duplicate this problem.  Please post a minimal example that 



Same problem here at least with .hh header file extension.

See my reopened bug report 3737:

http://www.cmake.org/Bug/bug.php?op=showbugid=2737

It woul dbe nice to close this one before releasing 2.4.x
Jan.

--

 Dipl.-Ing. Jan Woetzel
--
 Uni Kiel
 Institut f. Informatik und Praktische Mathematik
 Hermann-Rodewaldstr. 3  [Raum 310]
 24098 Kiel/Germany
--
 Tel+49-431-880-4477
 Fax+49-431-880-4054
 Privat +49-431-802872
 Mob.   +49-179-2937346
--
 Urlwww.mip.informatik.uni-kiel.de/~jw
 Email  [EMAIL PROTECTED]
 Privat [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Why does cmake 2.4.0 (beta) compile header files?

2006-04-20 Thread Jan Woetzel

Jan Woetzel wrote:


Why does CMake version 2.4.0 cause VS7 to compile header files?



Sorry, my fault - that`s a different problem than mine.
- only Makefilw generators generate targets for .hh files here,
- VS7 is correctly ignoring them on build but listing them in teh 
project files.



See my reopened bug report 2737:


typo... meant 2737
http://www.cmake.org/Bug/bug.php?op=showbugid=2737


Jan.

--

 Dipl.-Ing. Jan Woetzel
--
 Uni Kiel
 Institut f. Informatik und Praktische Mathematik
 Hermann-Rodewaldstr. 3  [Raum 310]
 24098 Kiel/Germany
--
 Tel+49-431-880-4477
 Fax+49-431-880-4054
 Privat +49-431-802872
 Mob.   +49-179-2937346
--
 Urlwww.mip.informatik.uni-kiel.de/~jw
 Email  [EMAIL PROTECTED]
 Privat [EMAIL PROTECTED]

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] use of efence

2006-04-04 Thread Jan Woetzel

Subir Singh Lamba wrote:


gcc -g -o hello hello.c -lefence
 


TARGET_LINK_LIBRARIES(hello efence)

works here.

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] how to use external gnu make library

2006-03-14 Thread Jan Woetzel




[EMAIL PROTECTED] wrote:



c++ -fPIC "CMakeFiles/test1.dir/main.o" -o test1
-rdynamic -lgsl_sf_bessel_j0
/usr/bin/ld: cannot find -lgsl_sf_bessel_j0


You should read the output - the lib is not found.
Have a look at the find script and you will get the idea to use teh
GSL_LIBRARIES variable.

 TARGET_LINK_LIBRARIES(test1 gsl_sf_bessel_j0)

E.g. 
TARGET_LINK_LIBRARIES(test1 ${GSL_LIBRARIES})

Otherwise add LINK:DIRECTORIES

Jan.
-- 

  Dipl.-Ing. Jan Woetzel
--
  Uni Kiel
  Institut f. Informatik und Praktische Mathematik
  Hermann-Rodewaldstr. 3  [Raum 310]
  24098 Kiel/Germany
--
  Tel+49-431-880-4477
  Fax+49-431-880-4054
  Privat +49-431-802872
  Mob.   +49-179-2937346
--
  Urlwww.mip.informatik.uni-kiel.de/~jw
  Email  [EMAIL PROTECTED]
  Privat [EMAIL PROTECTED]



___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] recommended way to test for msvc/cl ?

2006-01-30 Thread Jan Woetzel

Alexander Neundorf wrote:

what's the recommended way to test in a CMakeLists.txt, whether the 
current compiler is msvc/cl ?
 

You can test for msvc projects/solution (in contrast to Win32 nmake 
makefiles) by:


IF(CMAKE_BUILD_TOOL MATCHES (msdev|devenv))

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] script to generate FindFoo.cmake files

2006-01-24 Thread Jan Woetzel

Alexander Neundorf wrote:


Can you please check that the attached FindLibXml2.cmake follows ..
 




#  LIBXML2_LIBRARY ...
 


I thought the policy is XXX_LIBRARIES
(plural) instead of singular XXX_LIBRARY
as stated in CMake/Modules/readme.txt

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

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake