Re: [CMake] CDash broken after production mode is set to true

2011-06-26 Thread Mika . Rajala
cmake-boun...@cmake.org wrote on 23.06.2011 12:42:42: > From: mika.raj...@patria.fi > To: cmake@cmake.org > Date: 23.06.2011 12:43 > Subject: Re: [CMake] CDash broken after production mode is set to true > Sent by: cmake-boun...@cmake.org > > ----- Forwarded by Mika Rajala

Re: [CMake] CDash broken after production mode is set to true

2011-06-23 Thread Mika . Rajala
- Forwarded by Mika Rajala/PATRIA on 23.06.2011 12:42 - From: Mika Rajala/PATRIA To: mika.raj...@patria.fi Date: 23.06.2011 12:42 Subject:Re: [CMake] CDash broken after production mode is set to true Hi I tried installing a different browser and, with that, it seems to

[CMake] CDash broken after production mode is set to true

2011-06-23 Thread Mika . Rajala
Hi I was all set up with my cdash server, after setting production mode to true, things stop working. Clients when they attempt to receive their id when they submit to cdash server get some junk as answer, they don't list up the schedule build thing. Fonts change, menus won't work. For insta

Re: [CMake] If syntax

2011-05-02 Thread Mika . Rajala
Hi if(expression) ... endif(expression2) Makes an error since the expressions didn't match I think this is the case with "else" as well. However, i'm uncertain how to write it when you use elseif, maybe it still needs to match with the expression in the IF thing The reasoning behind this, A

Re: [CMake] CDash Dynamic Analysis

2011-05-01 Thread Mika . Rajala
Hi Am I asking my questions in the wrong place? Is my question stupid and/or I should find answers from documentation / internet? -mika From: mika.raj...@patria.fi To: mika.raj...@patria.fi Cc: cmake@cmake.org, cmake-boun...@cmake.org Date: 28.04.2011 07:50 Subject:Re: [

Re: [CMake] CDash Dynamic Analysis

2011-04-27 Thread Mika . Rajala
Hi Another update and a question I'v reverse engineered and hacked the CDash/CMake/CTest code a bit to see how it works. I'v now come to the conclusion that the best way to handle custom tools (style checks, static code analysis) is to use custom builds and custom build groups The issue I cu

Re: [CMake] CDash Dynamic Analysis

2011-04-20 Thread Mika . Rajala
Hi I went for the custom DynamicAnalysis.xml thing I think I figured out what the file should contain. There is a slight problem however. The Labels in the defect list of CDash are that of some other tool How do I change them? -mika From: mika.raj...@patria.fi To: mika.raj...@patria.

Re: [CMake] CDash Dynamic Analysis

2011-04-15 Thread Mika . Rajala
Hi This doesn't seem to be very easy, fun or well documented. I'v resolved to looking aroung the CTest source code to see what is going on. >From what I'v found out, there seems to be some syntax to what the defect list contains! I'm not certain if this is the easy way through, but it

[CMake] CDash Dynamic Analysis

2011-04-13 Thread Mika . Rajala
Hi I'm trying to integrate custom tools to CDash Dynamic analysis. I'm not that certain on what is the way I should be going. Is there a way to tell cmake to pick up lines from a program as defects in the custom tool submission xml? Do i need to make a program that generates a valid xml file?

Re: [CMake] Run/build custom command/target only when "input" files change

2011-03-08 Thread Mika . Rajala
Yes it works.. Thanks for the help. I need to add this to my list of things to remember. Now i still have the problem of the missing tlb file to fix, but i'll handle that on my own. -mika mika.raj...@patria.fi Sent by: cmake-boun...@cmake.org 08.03.2011 13:42 To cmake@cmake.org cc Subj

Re: [CMake] Run/build custom command/target only when "input" files change

2011-03-08 Thread Mika . Rajala
Second try, replied to sender directly :) Now that i checked the IDL_OUTPUT_DIR i found out that the second output file is always missing, the .tlb one. Maybe this is why it always runs that command? Testing.. Richard Wackerbarth Sent by: cmake-boun...@cmake.org 08.03.2011 13:18 To mika

Re: [CMake] Run/build custom command/target only when "input" files change

2011-03-08 Thread Mika . Rajala
My cmake version is 2.8.4 "Rolf Eike Beer" Sent by: cmake-boun...@cmake.org 08.03.2011 13:21 To cmake@cmake.org cc Subject Re: [CMake] Run/build custom command/target only when "input" files change > foreach(in_file ${ARGN}) > > > > ADD_CUSTOM_COMMAND( > OUTPUT ${IDL_O

Re: [CMake] Run/build custom command/target only when "input" files change

2011-03-08 Thread Mika . Rajala
foreach(in_file ${ARGN}) ADD_CUSTOM_COMMAND( OUTPUT ${IDL_OUTPUT_DIR}/${out_file}.h ${IDL_OUTPUT_DIR}/${out_file}.tlb DEPENDS ${in_file} COMMAND(${MIDL_EXECUTABLE} ${in_file} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) endforeach()

[CMake] Run/build custom command/target only when "input" files change

2011-03-08 Thread Mika . Rajala
Hi I have created a custom command that generates source code for me. There is a slight annoyance still, the command is excecuted every single time i tell the compiler to build. Can I make it so that it runs the program only when the source file changes or the target file doesn't exist? I loo

[CMake] Static code analysis with CDash

2011-03-01 Thread Mika . Rajala
Hi Is it possible to include static code analysis to CDash? I could make a test that fails if the tool detects errors, but I'd like to make something better. Currently I'm testing with the static code analysis tool CppCheck -mika ___ Powered by www.k

[CMake] CTest to verbose mode from CMakeLists.txt

2011-02-24 Thread Mika . Rajala
Hi How can i turn CTest to Verbose mode through CMakeLists.txt code? I'd like to run code analysis with cppcheck through CTest. However, the interesting output of cppcheck is not visible. I tried the add_custom_command thing and i got the output to the console of the IDE, but i think that runn

Re: [CMake] MIDL include directiories

2011-02-23 Thread Mika . Rajala
Hi It appears I was wrong, the HEADER_FILE_ONLY did work for them, it seems I had some error while trying it. Everything works smoothly now. My solution: Create a macro to handle the IDL files, which outputs the header files and the tlb-files so that you may move them around later on. This al

Re: [CMake] MIDL include directiories

2011-02-23 Thread Mika . Rajala
Hi I solved this exact problem by using the add_custom_command, to write the command for the midl tool. (I created a macro for it) Now I neatly get the generated tlb and header files, and now i can easily list them in the visual studio. However, I'm yet to figure out how to add the idl files t

[CMake] MIDL include directiories

2011-02-23 Thread Mika . Rajala
Hi I'd like to know is it possible to give additional include directories for the MIDL tool in Visual Studio 2005 with CMakeLists.txt code. The include_directories command does not work for the MIDL tool parameters. To delve deeper into the reason why this is a problem, helloworld1.idl uses

Re: [CMake] add_executable created file name

2010-12-28 Thread Mika . Rajala
Thanks, this works nicely Sorry for the double posting. I waited for 30 minutes and the mail didn't appear on the list, so I assumed it failed somehow. -mika Michael Wild Sent by: cmake-boun...@cmake.org 28.12.2010 16:23 To cmake@cmake.org cc Subject Re: [CMake] add_executable created

[CMake] add_executable created file name

2010-12-28 Thread Mika . Rajala
Hello I'd need to get the filepath of a created executable file, so that i can use the filepath on a custom command. add_executable(Program ...) add_custom_command(TARGET Program POST_BUILD COMMAND ${ProgramToRun} ${Program} ...) To clarify, i'd like to run the executable "ProgramToRun" with

[CMake] add_executable created file path

2010-12-28 Thread Mika . Rajala
Hello I'm using add_executable to create an executable file. I'd like to extract the filepath of the created executable for a custom command. This causes some trouble for me because I use and must use visual studio. The familiar problem with the build type being added as a subfolder. However,

[CMake] Running external programs

2010-04-08 Thread Mika . Rajala
Hi I need to generate a license file for my application and install it with the NSIS package generated. To generate it I need to run a program with various command line arguments, one of which is a path to the compiled executable. add_executable(MyApp .) execute_process(LicenseApp "-f My

Re: [CMake] Skipping PATH when using find_library

2010-03-14 Thread Mika . Rajala
I did try that already. Thanks anyway, I'll try to figure out what is wrong. -mika Philip Lowman

Re: [CMake] adding same subdirectory multiple times.

2010-03-11 Thread Mika . Rajala
cmake-boun...@cmake.org wrote on 11.03.2010 10:56:42: > > On 11. Mar, 2010, at 9:41 , mika.raj...@patria.fi wrote: > > > > > > > cmake-boun...@cmake.org wrote on 11.03.2010 10:37:47: > > > >> > >> On 11. Mar, 2010, at 9:27 , mika.raj...@patria.fi wrote: > >> > >>> > >>> > >>> cmake-boun...@cmake

Re: [CMake] adding same subdirectory multiple times.

2010-03-11 Thread Mika . Rajala
cmake-boun...@cmake.org wrote on 11.03.2010 10:37:47: > > On 11. Mar, 2010, at 9:27 , mika.raj...@patria.fi wrote: > > > > > > > cmake-boun...@cmake.org wrote on 11.03.2010 10:04:42: > > > >> On 11.03.10 09:56:35, mika.raj...@patria.fi wrote: > >>> > >>> Hi > >>> > >>> The problem: > >>> >

Re: [CMake] adding same subdirectory multiple times.

2010-03-11 Thread Mika . Rajala
cmake-boun...@cmake.org wrote on 11.03.2010 10:04:42: > On 11.03.10 09:56:35, mika.raj...@patria.fi wrote: > > > > Hi > > > > The problem: > > > > >From a shared CMakeLists.txt i get the following error when defining a > > library target. > > Policy CMP0002 is not set: Logival target names must

Re: [CMake] Skipping PATH when using find_library

2010-03-11 Thread Mika . Rajala
More reading documentation and attempts... but still not working. Maybe there is no way? mika.raj...@patri a.fi

[CMake] adding same subdirectory multiple times.

2010-03-10 Thread Mika . Rajala
Hi The problem: >From a shared CMakeLists.txt i get the following error when defining a library target. Policy CMP0002 is not set: Logival target names must be globally unique. The situation: Let's assume i have the following cmake files in the following folders with the svn:externals propert

Re: [CMake] Skipping PATH when using find_library

2010-03-04 Thread Mika . Rajala
Still unsolved. Meanwhile I have made a horrible kludge that works for now, but which i really wouldn't want to leave as it is. I think my problems could be solved if i could define the version of the library which to look for. Is this somehow possible? I'll look into the documentation once mor

[CMake] Skipping PATH when using find_library

2010-03-03 Thread Mika . Rajala
Hi I have read the documentation on find_library command, and i think what i need is possible, but i just can't figure it out. I'd like to run the find_library command, so that it doesn't use the windows environment variable PATH for folders to look from. Is this possible with cmake? I tried a

[CMake] where do libraries go?

2010-02-12 Thread Mika . Rajala
Hi I have multiple cmake projects and some of them generate shared libraries. Now to run the program in debug mode, without running the install step, i do ofcourse need the runtime shared libraries when i start the debug. I have the problem that i can't get the path where the library is, so I c

[CMake] How to get Qt shared libraries to install with cmake 2.8.0

2010-02-03 Thread Mika . Rajala
Hi I'd like to install the necessary .dll files of Qt to my install directory. So that when someone installs my program from a package, he gets the complete set and doesn't need to install Qt seperately. Actually my program is multiple programs and i'd rather not link them statically to Qt libr

[CMake] Problem with FindQt.cmake or Qt 4.6.1 on Windows platform. CMake 2.8.0

2010-02-02 Thread Mika . Rajala
Hi I'm not certain if this should be here or in some Qt messageboard, but here's the thing. I had Qt 4.4.X version installed, and i wanted to upgrade to 4.6.1 for nicer licensing. I used the uninstaller to remove the 4.4.X version, and did everything according to the install instructions for ve

Re: [CMake] Installing Find*.cmake to the correct folder using NSIS configured by cmake on windows platform

2010-01-26 Thread Mika . Rajala
Hi Thanks a lot for the help. Sorry that I didn't provide all necessary information at start, I just didn't understand the matter enought to write it all. You guessed right, I want to find out the folder of the host, so that the cmake running on the host machine may find it. I'd like that the use

[CMake] Installing Find*.cmake to the correct folder using NSIS configured by cmake on windows platform

2010-01-26 Thread Mika . Rajala
Hi How can i tell the NSIS installer, using cmake, to install my Find*.cmake script to the ${CMAKE_ROOT}/Modules directory? Writing that to the "install" command doesn't work. I did try googling for anwsers for the better part of yesterday so if it can be found on the internet, please provide s

Re: [CMake] A neat package out of a library

2010-01-25 Thread Mika . Rajala
Hi I think i have solved something now, it was just too easy for my sceptical mind. Anyway, I found out that NSIS installer on windows xp (which is the only platform this currently needs to work on) already generates a registry entry, and i only need to read it in the Find*.cmake file, which app

[CMake] A neat package out of a library

2010-01-24 Thread Mika . Rajala
Hi I'm trying to generate a NSIS installer for a development library. The installer would need to do the following, install the headers and libraries to a directory, copy the Find**.cmake to the correct location where it can be found with cmake, set a registry key value to indicate where it was