RE: [CMake] Making a library with no *.cpp files.

2006-06-25 Thread Andrew Maclean
Many thanks it works beautifully.   -Original Message- From: Jan Woetzel [mailto:[EMAIL PROTECTED]] Sent: Monday, 26 June 2006 15:18 To: [EMAIL PROTECTED] Cc: cmake@cmake.org Subject: Re: [CMake] Making a library with no *.cpp files. Andrew Maclean wrote: > Is there another way to tell CMa

Re: [CMake] Making a library with no *.cpp files.

2006-06-25 Thread Jan Woetzel
Andrew Maclean wrote: Is there another way to tell CMake that the library should be linked as C++? I am wondering if there is a SET_SOURCE_FILES_PROPERTIES() or something like that I can use. See SET_TARGET_PROPERTIES LINKER_LANGUAGE Jan. -- Dipl.-Ing. Jan Woetzel ---

[CMake] Making a library with no *.cpp files.

2006-06-25 Thread Andrew Maclean
If I use Cmake to make a library where the source files are exclusively header files (*.h) then I get a message saying it cannot determine the language to use  - which is correct. The way I get around this is to have a dummy cpp file. This then tells CMake what language to use because it sees the

[CMake] Graphviz support in CMake

2006-06-25 Thread David Somers
Hi Andy, et al, The graphviz support looks interesting, but it seems it only shows library dependencies... it would be interesting to be able to generate a graph to show the intra-project dependencies, i.e. what targets it makes avaialble and their dependencies. (For example, I have a project t

[CMake] IF(IS_DIRECTORY behaviour

2006-06-25 Thread David Somers
I've been updating a few of my old cmake files (and writing a few new ones too)... in a few places I've been adding some IF(IS_DIRECTORY foo) tests. I just noticed some strange behaviour in cmake-2.4.2: I'm trying to test to see if directory foo is present in ${CMAKE_CURRENT_SOURCE_DIR} IF(IS_