Re: [CMake] MSVC 2005 and Intel Visual Fortran 10

2008-04-04 Thread Maik Beckmann
Am Samstag 05 April 2008 07:07:14 schrieb Kelly (KT) Thompson: > I guess there are too many combinations to make everything work and I > understand that IVF+MSVC is a lower priority for the CMake dev/testing > team. Maybe I'll dig into the workings of CMake one of these > weekends... Cool > As

Re: [CMake] MSVC 2005 and Intel Visual Fortran 10

2008-04-04 Thread Kelly (KT) Thompson
On Fri, Apr 4, 2008 at 2:56 PM, Maik Beckmann <[EMAIL PROTECTED]> wrote: > I use the VS with the intel 9.0 fortran compiler, but with the NMake or the > MinGW Makefile generator. Building and debugging works fine when using a > C/C++ - Makefile project. I can live with nmake, but I was hoping

Re: [CMake] Some questions

2008-04-04 Thread Philip Lowman
On Fri, Apr 4, 2008 at 8:58 PM, MD or MD <[EMAIL PROTECTED]> wrote: > >- And the last, I don´t know hot to use cmake in this example with > gtk: > There is unfortunately no standardized FindGTK2.cmake module shipped with CMake. You'll need to find one online, copy it to your source tree

Re: [CMake] Some questions

2008-04-04 Thread E. Wing
> -And I don´t know how to use it in a sdl proyect, like in the > following example: > #include > #include "SDL.h" > > int main(int argc, char *argv[]) > { > if ( SDL_Init(SDL_INIT_AUDIO|SDL_INIT_VIDEO) < 0 ) >

[CMake] Some questions

2008-04-04 Thread MD or MD
Hi! I´ve been looking for more information and easy examples in order to learn and practise Cmake but I´ve some questions: -I don´t know how to use Cmake in a proyect built by several files, ex: (main.c, functions.c and functions.h) -And I don´t know how to use it in a sdl proyec

Re: [CMake] CPack: Building Multiple Packages

2008-04-04 Thread Stuart Herring
On Fri, Apr 4, 2008 at 6:14 AM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > I think you can create a CPackConfig.cmake file for each and run cpack on > them directly and it should work. make package won't do the right thing, but > you should be able to create cpack input files for as many parts of a

Re: [CMake] cmake strange errors when porting VS2005

2008-04-04 Thread Alin M Elena
Hi, Problem solved. A file was missing. I missed a change in the implementation and the CMakeLists.txt for model.lib was not up-to-date. Thanks again for the support. Alin "...if the universities will not study useless sub

Re: [CMake] MSVC 2005 and Intel Visual Fortran 10

2008-04-04 Thread Maik Beckmann
Am Freitag 04 April 2008 23:11:22 schrieb Kelly (KT) Thompson: > I've spent the last few days trying to convince CMake to configure a > toy FORTRAN project without success. I'm hoping that someone on this > list can point me in the right direction. Here are the details: > > System setup: > Window

Re: [CMake] cmake strange errors when porting VS2005

2008-04-04 Thread Alin M Elena
Thank you all for the answers, Mike Jackson wrote: >Looks like either all the source files are NOT listed in your >CMakeLists.txt file OR you need another library to link against. >Do you have a file called "Model.h" that declares the "Model" class or >is "Model" declared in an external library?

[CMake] MSVC 2005 and Intel Visual Fortran 10

2008-04-04 Thread Kelly (KT) Thompson
I've spent the last few days trying to convince CMake to configure a toy FORTRAN project without success. I'm hoping that someone on this list can point me in the right direction. Here are the details: System setup: Windows XP Microsoft Visual Studio 8 2005 Intel Visual Fortran 10.1.014 CMake 2.

Re: [CMake] cmake strange errors when porting VS2005

2008-04-04 Thread Yumin Yuan
On Fri, Apr 4, 2008 at 3:18 PM, Bill Hoffman <[EMAIL PROTECTED]> wrote: > > > It looks like moc stuff to me. The Model constructor destructor are not > missing, just a bunch of slots and signals like methods... > I think Bill is right. I did not see any "QT4_WRAP_*" in the CMakeLists.txt file. If

Re: [CMake] cmake strange errors when porting VS2005

2008-04-04 Thread Bill Hoffman
Mike Jackson wrote: Looks like either all the source files are NOT listed in your CMakeLists.txt file OR you need another library to link against. Do you have a file called "Model.h" that declares the "Model" class or is "Model" declared in an external library? It looks like moc stuff to me.

Re: [CMake] cmake strange errors when porting VS2005

2008-04-04 Thread Mike Jackson
On 4/4/08, Alin M Elena <[EMAIL PROTECTED]> wrote: > > Hi, > > I try to port an application on windows using VS2005 Professional edition. > It uses qt4 and readline. As external libs > > > > I get this set of errors that do not help me to much in the linking stage > > > > Linking CXX executable bin

[CMake] cmake strange errors when porting VS2005

2008-04-04 Thread Alin M Elena
Hi, I try to port an application on windows using VS2005 Professional edition. It uses qt4 and readline. As external libs I get this set of errors that do not help me to much in the linking stage Linking CXX executable bin\aten.exe gui.lib(disorder_funcs.cpp.obj) : error LNK2019: unres

[CMake] Testing for time.h on various platforms

2008-04-04 Thread Mike Jackson
I am looking for a game plan (or code..) to test for a header file and where the "correct" location of that header might be. Seems on some systems, time.h should be were on others it is just . Should I create some cmake code to test each one individually? or is there a more common/scalable approa

Re: [CMake] acyclic subdirectory builds

2008-04-04 Thread Amitha Perera
Egon Kocjan wrote: I have a complicated situation :). I avoided the kind of approach, that you suggest because it's not modular - main project file contains add_subdirectory commands, which have to be maintained "by hand" - you can see the non-modular information leak here: "add_subdirectory( l

Re: [CMake] acyclic subdirectory builds

2008-04-04 Thread Egon Kocjan
Hi, I have a complicated situation :). I avoided the kind of approach, that you suggest because it's not modular - main project file contains add_subdirectory commands, which have to be maintained "by hand" - you can see the non-modular information leak here: "add_subdirectory( liba )". The

Re: [CMake] CMake 2.6.0 RC 6 ready for testing

2008-04-04 Thread Hendrik Sattler
Zitat von Bill Hoffman <[EMAIL PROTECTED]>: Hendrik Sattler wrote: Zitat von Bill Hoffman <[EMAIL PROTECTED]>: I am happy to announce that CMake 2.6.0 RC6 is ready for testing. You can find the source and binaries here: http://www.cmake.org/files/v2.6/. I tried it with a cross-compilatio

[CMake] FW: x64 builds

2008-04-04 Thread Leigh Childress
I am using Vista with Microsoft Visual Studio 2005 Professional Edition LeRetha -Original Message- From: Leigh Childress [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2008 8:25 AM To: 'Bill Hoffman' Subject: RE: [CMake] x64 builds Vista with Microsoft Visual Studio 2005 Professional

Re: [CMake] CMake 2.6.0 RC 6 ready for testing

2008-04-04 Thread Bill Hoffman
Hendrik Sattler wrote: Zitat von Bill Hoffman <[EMAIL PROTECTED]>: I am happy to announce that CMake 2.6.0 RC6 is ready for testing. You can find the source and binaries here: http://www.cmake.org/files/v2.6/. I tried it with a cross-compilation setup. Works really great except that an _exe

Re: [CMake] acyclic subdirectory builds

2008-04-04 Thread Amitha Perera
Bätge wrote: > ADD_DEPENDENCIES( exea liba ) > ADD_DEPENDENCIES( exeb liba ) That should be TARGET_LINK_LIBRARIES. Egon: as Stephan says, you want to avoid this include() stuff. That is only useful some complicated situations. What you want is probably something like this: (I added a libb

Re: [CMake] x64 builds

2008-04-04 Thread Bill Hoffman
Bill Hoffman wrote: Leigh Childress wrote: I was hoping someone might could help me. Is it possible to do x64 builds using cmake command line and if so how? I’ve looked on the web but merely got confused about whether it was possible or not. I think the answer is yes. What os/compiler?

Re: [CMake] CMake 2.6.0 RC 6 ready for testing

2008-04-04 Thread Hendrik Sattler
Zitat von Bill Hoffman <[EMAIL PROTECTED]>: I am happy to announce that CMake 2.6.0 RC6 is ready for testing. You can find the source and binaries here: http://www.cmake.org/files/v2.6/. I tried it with a cross-compilation setup. Works really great except that an _executable_ that links agai

Re: [CMake] x64 builds

2008-04-04 Thread Bill Hoffman
Leigh Childress wrote: I was hoping someone might could help me. Is it possible to do x64 builds using cmake command line and if so how? I’ve looked on the web but merely got confused about whether it was possible or not. I think the answer is yes. What os/compiler? -Bill

Re: [CMake] Problems to use TRY_COMPILE

2008-04-04 Thread Bill Hoffman
My mistake, you want something like this: TRY_COMPILE(RESULT ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR}/teste.cpp CMAKE_FLAGS COMPILE_DEFINITIONS -I${QT_INCLUDE_DIR} -I${QT_QTCORE_INCLUDE_DIR} CMAKE_FLAGS "-DLINK_LIBRARIES:STRING=${QT_QTCORE_LIBRARY}" OUTPUT_VARIABLE MY_

[CMake] x64 builds

2008-04-04 Thread Leigh Childress
I was hoping someone might could help me. Is it possible to do x64 builds using cmake command line and if so how? I've looked on the web but merely got confused about whether it was possible or not. Thanks LeRetha ___ CMake mailing list CMake@cma

Re: [CMake] Cdash, triggersite

2008-04-04 Thread Gerhard den Hollander
Thanks ctest -D Nightly --debug clearly showed what was going wrong (http_proxy was still set and pointing the wrong way) > Gerhard den Hollander wrote: > > Im trying to setup a Cdash dashoard, most of it seems to go fine, > > but the submissions do not show up on the dashboard > > > > One t

Re: [CMake] Coverage

2008-04-04 Thread Bill Hoffman
Cedric Pinson wrote: ok adding ctest make the target available when i do make help but when i run i have the following error Cannot find file: /home/mornifle/dev/AnimationMesh/build/test/CTestConfiguration.ini Site: Build name: Problem initializing the dashboard. i dont want any dashboard,

Re: [CMake] Coverage

2008-04-04 Thread Cedric Pinson
ok adding ctest make the target available when i do make help but when i run i have the following error Cannot find file: /home/mornifle/dev/AnimationMesh/build/test/CTestConfiguration.ini Site: Build name: Problem initializing the dashboard. i dont want any dashboard, i tried to google it

Re: [CMake] Coverage

2008-04-04 Thread Bill Hoffman
Cedric Pinson wrote: I already use the flag and i have the file generated .gcno .gcda but here the location ./CMakeFiles/TestAnimationMesh.dir/__/__/src/AnimationMesh.gcno ./CMakeFiles/TestAnimationMesh.dir/__/__/src/AnimationMesh.gcda ./CMakeFiles/TestAnimationMesh.dir/test_read.gcda ./CMakeFil

Re: [CMake] Problems to use TRY_COMPILE

2008-04-04 Thread Bill Hoffman
Vitor Vasconcelos Araujo Silva wrote: >> TRY_COMPILE(RESULT ${PROJECT_BINARY_DIR} >> >> ${PROJECT_SOURCE_DIR}/teste.cpp >> CMAKE_FLAGS >> COMPILE_DEFINITIONS -I${QT_INCLUDE_DIR} >> -I${QT_QTCORE_INCLUDE_DIR} >> -l${QT_QTCORE_LIBRARY} >> OUTPUT_VARIAB

Re: [CMake] Coverage

2008-04-04 Thread Cedric Pinson
I already use the flag and i have the file generated .gcno .gcda but here the location ./CMakeFiles/TestAnimationMesh.dir/__/__/src/AnimationMesh.gcno ./CMakeFiles/TestAnimationMesh.dir/__/__/src/AnimationMesh.gcda ./CMakeFiles/TestAnimationMesh.dir/test_read.gcda ./CMakeFiles/TestAnimationMesh.d

Re: [CMake] acyclic subdirectory builds

2008-04-04 Thread Egon Kocjan
Hi, I'll check ADD_DEPENDENCIES more closely if it fits the requirements, thanks. However, I may already have a solution for add_subdirectory duplicates - you can simply force cmake to only include the subdirectory once. It's ugly but it seems to work (ENV hack is to force 100% global scope

Re: [CMake] Problems to use TRY_COMPILE

2008-04-04 Thread Vitor Vasconcelos Araujo Silva
Thanks for your answer Bill, I cutted from the example code the LINK_LIBRARIES, sorry. I use the Qt4 macro and I get my application compiled without any problems. FIND_PACKAGE ( Qt4 ) ADD_DEFINITIONS ( ${QT_DEFINITIONS} ) INCLUDE_DIRECTORIES ( ${QT_INC

Re: [CMake] acyclic subdirectory builds

2008-04-04 Thread ITUC; ADITG/DFG
Hi Egon, it seems "add_subdirectory(${liba_dir} ${liba_dir})" is called twice (for exea and exeb). Instead of usage "include(../liba/include.cmake)" you you should use: ADD_DEPENDENCIES( exea liba ) ADD_DEPENDENCIES( exeb liba ) Hence, "link_libraries(liba)" is probably redundant. st -

Re: [CMake] Coverage

2008-04-04 Thread Andreas Schneider
Cedric Pinson wrote: Hi, I would like to add coverage on my project with a valgrind pass i saw that there is something with dashboard. But when i run ctest it says CTestConfiguration.ini I dont need to submit result or anything like that i would like to dispay the coverage and the result of va