Re: [CMake] Erasing a compiler flags

2009-03-03 Thread Leopold Palomo Avellaneda
A Dimarts 03 Març 2009, Philip Lowman va escriure: On Mon, Mar 2, 2009 at 7:37 AM, Leopold Palomo Avellaneda l...@alaxarxa.netwrote: Hi, I have a problem with one project. There's one file that doesn't accept a some compiler flags because g++ then has problems (templates, etc). So

[CMake] Erasing a compiler flags

2009-03-02 Thread Leopold Palomo Avellaneda
Hi, I have a problem with one project. There's one file that doesn't accept a some compiler flags because g++ then has problems (templates, etc). So, I would like to set with another valuer the CMAKE_CXX_FLAGS_RELEASE and CMAKE_CXX_FLAGS_RELWITHDEBINFO for an _specific_ target. I have looked

Re: [CMake] Add_custom_target copying files

2009-02-16 Thread Leopold Palomo Avellaneda
) add_custom_target(${target} ${CMAKE_COMMAND} -E copy_if_different ${_file} ${dest}) add_dependencies(update_lang_po ${target}) endforeach(_file ${${inputPo}}) endmacro (GETTEXT_UPDATE_LANG_PO dirOUTpo inputPo) On Feb 15, 2009, at 3:48 PM, Leopold Palomo Avellaneda wrote

[CMake] Add_custom_target copying files

2009-02-15 Thread Leopold Palomo Avellaneda
Hi, I would like to create a custom target that copy several files (one, two or n files, but at least one) to a directory. I know how to do it with one file: add_custom_target(my_copy_target ${CMAKE_COMMAND} -E copy ${_inputfile} ${dirOUT}/) but, I really don't know how to do it with a list

Re: [CMake] Add_custom_target copying files

2009-02-15 Thread Leopold Palomo Avellaneda
Principal Software Engineer Dayton, Ohio On Feb 15, 2009, at 9:28 AM, Leopold Palomo Avellaneda wrote: Hi, I would like to create a custom target that copy several files (one, two or n files, but at least one) to a directory. I know how to do it with one file

[CMake] Problem with a macro

2008-09-24 Thread Leopold Palomo Avellaneda
Hi, I'm trying to develop a macro to create gmo files (binarys from .po) for a project that uses gettext. This macro gets some parameters, The idea is that you have program: foo a template with the strings: foo.pot (the potfile) several languages to translate: ca en es de (the langs var) and a

[CMake] SOLVED! Re: Problem with a macro

2008-09-24 Thread Leopold Palomo Avellaneda
Sorry for the noise, the proglem was in another place. This macro is based in some of kde and works. Regards, Leo A Dimecres 24 Setembre 2008, Leopold Palomo Avellaneda va escriure: Hi, I'm trying to develop a macro to create gmo files (binarys from .po) for a project that uses gettext

[CMake] Exclude a target

2008-09-22 Thread Leopold Palomo Avellaneda
Hi, I create some custom targets, but I would like that make does NOT DO it if I run make, _only_ when I run make mytarget. Is this possible? Regards, Leo -- -- Linux User 152692 PGP: 0xF944807E Catalonia signature.asc Description: This is a digitally signed message part.

Re: [CMake] Exclude a target

2008-09-22 Thread Leopold Palomo Avellaneda
A Dilluns 22 Setembre 2008, Esben Mose Hansen va escriure: On Monday 22 September 2008 20:00:03 Leopold Palomo Avellaneda wrote: Hi, I create some custom targets, but I would like that make does NOT DO it if I run make, _only_ when I run make mytarget. Is this possible? Use

Re: [CMake] QT_WRAP_UI no generated file Bug or Mistake

2008-08-02 Thread Leopold Palomo Avellaneda
Jan, I think that you are doing some mistakes. A Dissabte 02 Agost 2008, Jan Dinger va escriure: ###snip### PROJECT( dummy ) CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0) #set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ) FIND_PACKAGE( Qt4 REQUIRED ) IF(QT_FOUND)

Re: [CMake] QT_WRAP_UI no generated file Bug or Mistake

2008-08-02 Thread Leopold Palomo Avellaneda
Compiled and executed. I have _only_ changed two lines. The first one as Mike has said: Also, in your mainwindow.h and loginwindow.h files you have something like: #include ../../build/ui_mainwindow.h to #include ui_mainwindow.h the second one, the importand as Mike has said (again)

Re: [CMake] Debug libraries

2008-08-01 Thread Leopold Palomo Avellaneda
A Dimarts 29 Juliol 2008, Yuri Timenkov va escriure: On Monday 28 July 2008 22:14:51 Leopold Palomo-Avellaneda wrote: Hi, I'm not a windows user and now, sadly, I have to develop an application with Visual Studio 2005. I'm porting an application that use OpenGL, Coin3d, SoQt and Qt4.4

[CMake] Creating libraries (DLL) in windows

2008-08-01 Thread Leopold Palomo Avellaneda
Hi, I'm a Linux user and I'm uncomfortable in the windows environment. In Linux, I can create a C++ library with cmake without any problem. The so version and the .a (static version). But, my question is about windows. If I have a shared library that works in Linux, may I have to do something

Re: [CMake] Creating libraries (DLL) in windows

2008-08-01 Thread Leopold Palomo Avellaneda
Mike, yes it helps, and a lot Now, in the class declaration for each of your classes add the definition: I understand that you have to add: class MYLIB_EXPORT MyClass for all the classes, but also for the structs , and functions? Leo A Dissabte 02 Agost 2008, Mike Jackson va

Re: [CMake] Creating libraries (DLL) in windows

2008-08-01 Thread Leopold Palomo Avellaneda
A Dissabte 02 Agost 2008, Hendrik Sattler va escriure: Am Samstag, 2. August 2008 00:41:11 schrieb Leopold Palomo Avellaneda: I understand that you have to add: class MYLIB_EXPORT MyClass for all the classes, but also for the structs , and functions? If a class is exported, its

Re: [CMake] Creating libraries (DLL) in windows

2008-08-01 Thread Leopold Palomo Avellaneda
A Dissabte 02 Agost 2008, Hendrik Sattler va escriure: Am Samstag, 2. August 2008 01:21:01 schrieb Leopold Palomo Avellaneda: A Dissabte 02 Agost 2008, Hendrik Sattler va escriure: Am Samstag, 2. August 2008 00:41:11 schrieb Leopold Palomo Avellaneda: I understand that you have to add

[CMake] Debug libraries

2008-07-28 Thread Leopold Palomo-Avellaneda
Hi, I'm not a windows user and now, sadly, I have to develop an application with Visual Studio 2005. I'm porting an application that use OpenGL, Coin3d, SoQt and Qt4.4. I have created the respective FindSoQt and FindCoin that reports me the libraries with the two versions (debug and release).

Re: [CMake] FindQt

2008-07-11 Thread Leopold Palomo Avellaneda
A Dijous 10 Juliol 2008, Olaf Peter va escriure: Hi, it would be great if FindQt (resp. FindQt4) would support a user file extension for QT4_WRAP_UI, e.h. hpp for the ui header. *.hpp is a common C++ header extension as I use it for my code. Since cmake 2.4.8 you have the OPTIONS parameter

Re: [CMake] cmake 2.6.1 RC 6

2008-07-01 Thread Leopold Palomo-Avellaneda
Bill, I don't know if it's included, but the debian qt-kde maintainers have done a lot of patch (at least to the debian version) of the finqt4.cmake macro. This patches are applied to cmake upstream? Regards, Leo A Dimarts 01 Juliol 2008, Bill Hoffman va escriure: I have a release candidate

Re: [CMake] cmake 2.6.1 RC 6

2008-07-01 Thread Leopold Palomo-Avellaneda
A Dimarts 01 Juliol 2008, Bill Hoffman va escriure: Leopold Palomo-Avellaneda wrote: Bill, I don't know if it's included, but the debian qt-kde maintainers have done a lot of patch (at least to the debian version) of the finqt4.cmake macro. This patches are applied to cmake upstream

[CMake] Changing a name of a file to install

2008-05-01 Thread Leopold Palomo Avellaneda
Hi, I would like to install a foo.txt file but with a different name, for example foo-en.txt. How can I do it? Regards, Leo -- -- Linux User 152692 PGP: 0xF944807E Catalonia signature.asc Description: This is a digitally signed message part.

Re: [CMake] Changing a name of a file to install

2008-05-01 Thread Leopold Palomo Avellaneda
A Divendres 02 Maig 2008, Leopold Palomo Avellaneda va escriure: Hi, I would like to install a foo.txt file but with a different name, for example foo-en.txt. How can I do it? Regards, Leo I answer to myself. RTFM install (FILES foo.txt DESTINATION share/ RENAME foo-en.txt) Sorry

[CMake] Passing a var to a macro

2008-03-30 Thread Leopold Palomo Avellaneda
Hi, I'm creating a macro and I'm having an stupid problem that I don't know how to solve. For example, in this code: file(GLOB plugin_STR RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.c *.cpp *.cxx *.h *.hpp) message (STATUS Files to process in the macro ${plugin_STR}) I obtain a list of several

Re: [CMake] Passing a var to a macro

2008-03-30 Thread Leopold Palomo Avellaneda
A Diumenge 30 Març 2008, Adiel Mittmann va escriure: Hi! On Sun, Mar 30, 2008 at 08:13:27PM +0200, Leopold Palomo Avellaneda wrote: but if I do: file(GLOB plugin_STR *.c *.cpp *.cxx *.h *.hpp) PRINT_VALUES(${plugin_STR}) where: macro(PRINT_VALUES list) message (STATUS

Re: [CMake] List of files

2008-03-28 Thread Leopold Palomo Avellaneda
entry, not a list. regards, Leo On Thu, Mar 27, 2008 at 5:08 PM, Leopold Palomo Avellaneda [EMAIL PROTECTED] wrote: Hi, using this line: file(GLOB plugin_STR RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.c *.cpp *.cxx *.h *.hpp *.ui) I obtain a list like this: datosview.cpp

[CMake] Xgettext macro, problems and pitfalls

2008-03-28 Thread Leopold Palomo Avellaneda
Hi, I'm in a frustrating situation trying to create a macro for the xgettext command. For who doesn't know it, xgettext is a command of the gettext tools[1] that extract the strings of a file in the way to let you translate it. The xgettext accept a lot of arguments and finally a list of

Re: [CMake] A doubt about macros, relative paths and long args

2008-03-27 Thread Leopold Palomo Avellaneda
A Divendres 28 Març 2008, Filipe Sousa va escriure: Leopold Palomo Avellaneda wrote: Hi again, please, how can I pass an EXACT string to a ARGS command in a custom command? VERBATIM add_custom_command(OUTPUT output1 [output2 ...] COMMAND command1 [ARGS

[CMake] List of files

2008-03-27 Thread Leopold Palomo Avellaneda
Hi, using this line: file(GLOB plugin_STR RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.c *.cpp *.cxx *.h *.hpp *.ui) I obtain a list like this: datosview.cpp;plugincanualesods.cpp;datosview.h;plugincanualesods.h;datosbase.ui how an I obtain a list in this way? datosview.cpp plugincanualesods.cpp

[CMake] xmltoman and zip files

2008-03-25 Thread Leopold Palomo-Avellaneda
Hi, just to questions: 1) some of you have some rule/macro to work with xmltoman? 2) it's a stupid thing, but how can I make a target to compress file? I would like to work with man pages. The sources are written with xml (as a source). And the so, I should do: xmltoman file.1.xml file.1

Re: [CMake] xmltoman and zip files

2008-03-25 Thread Leopold Palomo-Avellaneda
A Dimarts 25 Març 2008, Hendrik Sattler va escriure: Am Dienstag 25 März 2008 schrieb Leopold Palomo-Avellaneda: just to questions: 1) some of you have some rule/macro to work with xmltoman? 2) it's a stupid thing, but how can I make a target to compress file? I would like to work

Re: [CMake] Passing parameters to uic in QT4_WRAP_UI macro

2008-03-25 Thread Leopold Palomo-Avellaneda
, Clinton Stimpson va escriure: If you use CMake 2.4.8, you can pass parameters to uic. QT4_WRAP_UI(UI_SRCS ${UIS} OPTIONS -p) will pass -p to uic. Clint Leopold Palomo-Avellaneda wrote: Hi, the QT4_WRAP_UI macro encapsulate the uic command. Howeber I miss a way to pass a parameter to uic

Re: [CMake] cmake community site

2008-03-04 Thread Leopold Palomo-Avellaneda
A Dilluns 03 Març 2008, Matt Williams va escriure: [] I'm looking to see what you guys on this list think about me starting up a 'cmake community' site, possibly featuring the following: - News about releases - News about projects' success stories etc. - Simple beginner's tutorials

[CMake] Passing parameters to uic in QT4_WRAP_UI macro

2008-03-03 Thread Leopold Palomo-Avellaneda
Hi, the QT4_WRAP_UI macro encapsulate the uic command. Howeber I miss a way to pass a parameter to uic. There's som way to do it or may I create my custom QT4_WRAP_UI ? Thanks in advance, Leo signature.asc Description: This is a digitally signed message part.

[CMake] My dammed problem with OSX and Qt

2008-01-16 Thread Leopold Palomo-Avellaneda
Hi, I'm one of the developers of a free software project [1]. I have made the transition from qmake to cmake. The project has several targets (one lib and 3 exes, and a lot of plugins). I can compile the whole project in a GNU/Linux box with: mkdir build cd build cmake ../ make without any

Re: [CMake] My dammed problem with OSX and Qt

2008-01-16 Thread Leopold Palomo-Avellaneda
A Dimecres 16 Gener 2008, Brandon Van Every va escriure: On Jan 16, 2008 12:16 PM, Leopold Palomo-Avellaneda [EMAIL PROTECTED] wrote: without any problem. Howeber, when I try to compile the project in OSX, I can compile the libs, one exec but it fails with the first plugin. I have isolated

Re: [CMake] My dammed problem with OSX and Qt

2008-01-16 Thread Leopold Palomo-Avellaneda
A Dimecres 16 Gener 2008, Bill Hoffman va escriure: Leopold Palomo-Avellaneda wrote: Hi, I'm one of the developers of a free software project [1]. I have made the transition from qmake to cmake. The project has several targets (one lib and 3 exes, and a lot of plugins). I can

Re: [CMake] My dammed problem with OSX and Qt

2008-01-16 Thread Leopold Palomo-Avellaneda
A Dimecres 16 Gener 2008, Brandon Van Every va escriure: On Jan 16, 2008 12:45 PM, Leopold Palomo-Avellaneda [EMAIL PROTECTED] wrote: A Dimecres 16 Gener 2008, Brandon Van Every va escriure: I wonder if this is the Apple linker always prefers dynamic libs problem. Search the mailing

Re: [CMake] My dammed problem with OSX and Qt

2008-01-16 Thread Leopold Palomo-Avellaneda
A Dimecres 16 Gener 2008, Bill Hoffman va escriure: Leopold Palomo-Avellaneda wrote: A Dimecres 16 Gener 2008, Bill Hoffman va escriure: Leopold Palomo-Avellaneda wrote: Linking CXX shared library libpluginregistrodeiva.dylib Undefined symbols: aplinteligentesview

Re: [CMake] My dammed problem with OSX and Qt

2008-01-16 Thread Leopold Palomo-Avellaneda
A Dimecres 16 Gener 2008, Benjamin Reed va escriure: On Jan 16, 2008 1:05 PM, Leopold Palomo-Avellaneda [EMAIL PROTECTED] wrote: non-virtual thunk to FichaBc::empresaBase(), referenced from: vtable for RegistroIvain registroiva.o vtable for RegistroIvaViewin

Re: [CMake] My dammed problem with OSX and Qt

2008-01-16 Thread Leopold Palomo-Avellaneda
A Dimecres 16 Gener 2008, Mike Jackson va escriure: On Jan 16, 2008, at 1:36 PM, Leopold Palomo-Avellaneda wrote: A Dimecres 16 Gener 2008, Bill Hoffman va escriure: Leopold Palomo-Avellaneda wrote: A Dimecres 16 Gener 2008, Bill Hoffman va escriure: Leopold Palomo-Avellaneda wrote

Re: [CMake] My dammed problem with OSX and Qt

2008-01-16 Thread Leopold Palomo-Avellaneda
A Dimecres 16 Gener 2008, [EMAIL PROTECTED] va escriure: On Wednesday 16 January 2008 11:05:04 am Leopold Palomo-Avellaneda wrote: Linking CXX shared library libpluginregistrodeiva.dylib Undefined symbols: [snip] FichaBc::qt_metacall(QMetaObject::Call, int, void**), referenced from

Re: [CMake] My dammed problem with OSX and Qt

2008-01-16 Thread Leopold Palomo-Avellaneda
A Dimecres 16 Gener 2008, Benjamin Reed va escriure: On Jan 16, 2008 2:11 PM, Mike Jackson [EMAIL PROTECTED] wrote: I think that is your problem. If you plugin is ONLY linking against bulmalib BUT aplinteligentesview is defined in bulmacont executable, then the linking for the plugin will

[CMake] CMake and a fortran for a newbie

2008-01-08 Thread Leopold Palomo-Avellaneda
Hi, I have seen in this list and the web that cmake have some treatment with the fortran language but I have to addmitt that I don't have understood if finally it works or not. I'm a cmake user with c and c++ language and more or less I can made all my programs. I would like to explain the

Re: [CMake] RE: CMake and a fortran for a newbie (Leopold Palomo-Avellaneda)

2008-01-08 Thread Leopold Palomo Avellaneda
Maik, Alexander, Alin thank's for the answer. I have to prepare a prototype but I think that it will be affordable. regards, Leo A Dimarts 08 Gener 2008, Maik Beckmann va escriure: Am Dienstag 08 Januar 2008 21:14:55 schrieb Alin M Elena: Hi Leo, | Please, can I use cmake in a fortran

[CMake] Errors in OSX platform and ubuntu of a Qt app

2007-12-12 Thread Leopold Palomo-Avellaneda
Hi, I'm not an expert of cmake so please, forgive me is the question is stupid. I'm migrating an application from qmake to cmake. The apps _only_ needs qt4 and libpq (postgresql). I can compile the application in a Debian Etch without any problem with cmake 2.4.5 and 2.4.7 (an own backport)

Re: [CMake] Errors in OSX platform and ubuntu of a Qt app

2007-12-12 Thread Leopold Palomo-Avellaneda
A Dimecres 12 Desembre 2007 14:06, Mike Jackson va escriure: I don't have Postgres SQL so I can not try your build on OS X. only need the libpq with the /usr/include/postgresql/* includes files. Please, if you could do it I will thank you a lot. Could you post the link errors from the OS X

Re: [CMake] Errors in OSX platform and ubuntu of a Qt app

2007-12-12 Thread Leopold Palomo-Avellaneda
A Dimecres 12 Desembre 2007 16:00, Mike Jackson va escriure: Well, I _still_ don't have postgres SQL, but the following link error: Ui_CobroPagoBase::setupUi(QWidget*) leads me to believe that there is a missing include directory or link directory in the cmake file that somehow you are

[CMake] Converting a qmake project to cmake

2007-12-05 Thread Leopold Palomo-Avellaneda
Hi, I'm trying to convert a qmake project to cmake. I have tested several tools, but, I have realised that by hand is more or less the best way. I edit the .pro file to obtain the files and create the cmake. However there's a think that is problematic is that I have a list in the HEADERS part

Re: [CMake] Converting a qmake project to cmake

2007-12-05 Thread Leopold Palomo Avellaneda
A Dimecres 05 Desembre 2007, Mike Jackson va escriure: You will eventually get an error. Only put files in the list that _need_ to be treated with moc. I guess this is one area where qmake may win out over cmake..? ok, :-( thanks, best regards, Leo -- -- Linux User 152692 PGP: 0xF944807E

Re: [CMake] mastering cmake book

2007-11-29 Thread Leopold Palomo-Avellaneda
A Dijous 29 Novembre 2007 19:46, Jesse Corrington va escriure: I went to order this book, but there is no order button on the page, like there was for the other kitware books. I couldn't find it at any other online retailer. How can I get this book. Thanks.

Re: [CMake] CMake Book ?

2007-11-15 Thread Leopold Palomo-Avellaneda
A Dimecres 14 Novembre 2007, Bill Hoffman va escriure: Pau Garcia i Quiles wrote: Quoting Bill Hoffman [EMAIL PROTECTED]: Juan Sanchez wrote: I had bought mine a few months ago from kitware directly. http://www.kitware.com/products/cmakebook.html Their shopping cart system seems to

[CMake] gettext support and qtlinguist

2007-11-12 Thread Leopold Palomo-Avellaneda
Hi, someone knows if there's some module to support the gettext functions and pot generation? someone know know to generate the qm files from ts in a qt program using cmake or must I have to use custom target? Regards, Leo ___ CMake mailing list

Re: [CMake] gettext support and qtlinguist

2007-11-12 Thread Leopold Palomo-Avellaneda
A Dilluns 12 Novembre 2007, Gonzalo Garramuño va escriure: Leopold Palomo-Avellaneda wrote: Hi, someone knows if there's some module to support the gettext functions and pot generation? cmake2.5 (SVN) has a FindGettext.cmake. You can use the module with 2.4.7, too. cmake2.5 cvs

Re: [CMake] gettext support and qtlinguist

2007-11-12 Thread Leopold Palomo-Avellaneda
A Dilluns 12 Novembre 2007, Gonzalo Garramuño va escriure: Leopold Palomo-Avellaneda wrote: cmake2.5 cvs, not svn, no? Yes, right. and dou you know if someone is using it? an example? I've used it. It is pretty much self explanatory if you read the file. FIND_PACKAGE( Gettext