[CMake] Create library and executable with libraries but no source files

2008-11-14 Thread [EMAIL PROTECTED]
Hi, I would like to create a library (static or shared) and an executable with only libraries (static) but no sources files. It seems add_library and add_executable commands do not accept no source files. In my project, parent directory creates library or executable from libraries created in

Re: [CMake] Create library and executable with libraries but no source files

2008-11-14 Thread [EMAIL PROTECTED]
Hi, main.c is not necessary for diab compiler (microcontroller) (add_executable generates an .elf file thanks to my toolchain file). I agree with you for executable and gcc but what about library ? Seb Message du 14/11/08 à 15h24 De : Mathieu Malaterre A : [EMAIL PROTECTED] Copie à

[CMake] Problem with file (GLOB_RECURSE ...)

2008-11-14 Thread [EMAIL PROTECTED]
Hi, I have troubles with file (GLOB_RECURSE ...) command : if two files, in different sub-directories, have the same name, an error occurs : CMake Error: Attempt to add a custom rule to output D:/bar/MyFile.pp.c.rule which already has a custom rule. Is there any way to fix it ? Thanks, Seb

[CMake] Problem with shared library and def file

2008-10-31 Thread [EMAIL PROTECTED]
Hi, I would like to generate a shared library by using a .def file for export symbols. The generated makefile does not include def file : ADD_LIBRARY(bar SHARED File1.c File2.c ${CMAKE_CURRENT_SOURCE_DIR}/bar.DEF) -- C:/OUTILS/MinGW_3.1.0/bin/gcc.exe -shared -o lib/bar.dll

Re: [CMake] Problem with ADD_CUSTOM_COMMAND and compiler

2008-10-23 Thread [EMAIL PROTECTED]
Hi, These files are needed for the build. The only way I found is to put include path in a variable and then used it in add_custom_command Sebastien Message du 17/10/08 à 19h04 De : Alexander Neundorf A : [EMAIL PROTECTED] Copie à : cmake@cmake.org Objet : Re: [CMake] Problem

[CMake] Problem with ADD_CUSTOM_COMMAND and compiler

2008-10-17 Thread [EMAIL PROTECTED]
Hi, I try to generate preprocessed files with gcc (gcc -E) and ADD_CUSTOM_COMMAND. I use INCLUDE_DIRECTORIES in order to specify where the include files are but this has not effect and so gcc generates an error : ADD_CUSTOM_COMMAND(OUTPUT hello.pp.c COMMAND ${CMAKE_C_COMPILER} -E hello.c

Re: [CMake] Problem with CMAKE_C_SOURCE_FILE_EXTENSIONS

2008-10-14 Thread [EMAIL PROTECTED]
stdio.h MyFile.cio) SET_SOURCE_FILES_PROPERTIES(MyFile.cio PROPERTIES LANGUAGE C) ADD_LIBRARY(MyLib MyFile.cio) SET_TARGET_PROPERTIES(MyLib PROPERTIES LINKER_LANGUAGE C) Sebastien Message du 13/10/08 à 17h08 De : Mathieu Malaterre A : [EMAIL PROTECTED] Copie à : cmake@cmake.org Objet

[CMake] Problem with CMAKE_C_SOURCE_FILE_EXTENSIONS

2008-10-13 Thread [EMAIL PROTECTED]
Hi, I would like to compile a generated file (for example MyFile.myextension) with the C compiler. The SET(CMAKE_C_SOURCE_FILE_EXTENSIONS myextension) doesn't seem to work : file is ignored ! Any idea ? Thanks. Sebastien Écoutez gratuitement

[CMake] How to call specific tools between preprocessing and compilation steps ?

2008-10-09 Thread [EMAIL PROTECTED]
Hi, I am a recent user of CMake. I want to use specific tools between preprocessing and compilation steps in order to instrument code and get structural coverage : (C files -- preprocessing -- instrumentation -- coverage -- compilation). Both steps instrumentation and coverage are done by

[CMake] ADD_TEST and EXECUTABLE_OUTPUT_PATH

2008-03-28 Thread [EMAIL PROTECTED]
Hello, First, I'm new on this mailing-list and I would like to thank you for your fantastic product. I have used it for less a year and I love it. In one of my projects, I need to run a test from a specific working directory (to read data files). I made GET_TARGET_PROPERTY (TARGET_LOCATION

Re: [CMake] CMake 2.4.7 -- ld: Can't find library or mismatched ABI for -lgcc

2007-12-10 Thread [EMAIL PROTECTED]
/dsc_hpux_i/svn/lib -L/home/builder/builds/hpux_i/dsc_hpux_i/build/lib -a archive -lXmHTML -a default -lgcc ld: Can't find library or mismatched ABI for -lgcc On Dec 9, 2007 2:06 PM, Bill Hoffman [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hi all, I need desperate help with my CMake

[CMake] HPUX 11.31 lgcc error

2007-12-10 Thread [EMAIL PROTECTED]
Hi all, I need desperate help with my CMake and was hoping someone could render assistance. I'm running HP-UX 11.31 ia64 and compiled CMake using aCC (HP Native Compiler). When I attempt to compile my code, I receive the following error: [ 26%] Built target XmHTML make -f

Re: [CMake] HPUX 11.31 lgcc error

2007-12-10 Thread [EMAIL PROTECTED]
I use aCC. On Dec 10, 2007 7:51 PM, Hendrik Sattler [EMAIL PROTECTED] wrote: Am Dienstag 11 Dezember 2007 schrieb [EMAIL PROTECTED]: Hi all, I need desperate help with my CMake and was hoping someone could render assistance. I'm running HP-UX 11.31 ia64 and compiled CMake using aCC

[CMake] CMake 2.4.7 -- ld: Can't find library or mismatched ABI for -lgcc

2007-12-09 Thread [EMAIL PROTECTED]
Hi all, I need desperate help with my CMake and was hoping someone could render assistance. I'm running HP-UX 11.31 ia64 and compiled CMake using aCC (HP Native Compiler). When I attempt to compile my code, I receive the following error: Linking C shared library ../../lib/libxvtxmba580.sl ld:

[CMake] CTest - how to get update info for project stored in SVN using svn:externals

2007-07-25 Thread [EMAIL PROTECTED]
Hi, our project consists of multiple applications built against our own generic library. Every application and the library is stored in the same repository. For each application we have individual CMakeLists.txt and the generic library is checked out via svn:externals. The project directory

[CMake] using Qt 4 resources with cmake and RCC ?

2006-03-25 Thread [EMAIL PROTECTED]
Dear All, I am a newbie to Qt 4 and I try to use CMake instead of qmake because I also use ITK. I was not able to get RCC working with CMake though I have seen in the FindQt4.cmake that it is supported. I added QT4_ADD_RESOURCES in my CMakeLists.txt but the .qrc file is not processed by RCC,