[CMake] Set executable for dll project in vs2010 with cmake

2013-11-25 Thread elizabeta petreska
Hi I want to set executable command for starting dll project with cmake. The option in vs2010 is in Project Properties-Configuration Properties-Debugging-Command Is this possible with cmake -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at:

[CMake] Additional manifest

2011-05-09 Thread elizabeta petreska
Hi, I am using cmake 2.8.3 and the generator for vs2005. How can I specify Additional Manifest file through cmakelist.txt . This option is found in Project Properties - Manifest Tool -Input and Output-Additional Manifest Files . ___ Powered by

Re: [CMake] Visual Studio 2010 generator and custom command

2010-09-30 Thread elizabeta petreska
This works. Thanks. Save me from a lot of trouble. On Wed, Sep 29, 2010 at 11:07 PM, Bill Hoffman bill.hoff...@kitware.comwrote: On 9/29/2010 11:02 AM, elizabeta petreska wrote: This is the link to bug report http://www.paraview.org/Bug/view.php?id=11274 OK, I have fixed the issue

[CMake] Visual Studio 2010 generator and custom command

2010-09-29 Thread elizabeta petreska
Hi, I asked this question some time ago in the mailing list. Unfortunately, I did not try to resolve this issue since then, so I am trying again. :) I am using Visual Studio 2010 generator and cmake 2.8.2. Why the following custom command is runing all the time, although the input dependency (

Re: [CMake] Visual Studio 2010 generator and custom command

2010-09-29 Thread elizabeta petreska
well. Thanks On Wed, Sep 29, 2010 at 1:38 PM, Campbell Barton ideasma...@gmail.comwrote: On Wed, Sep 29, 2010 at 10:02 AM, elizabeta petreska elizabeta.petre...@gmail.com wrote: Hi, I asked this question some time ago in the mailing list. Unfortunately, I did not try to resolve this issue

Re: [CMake] Visual Studio 2010 generator and custom command

2010-09-29 Thread elizabeta petreska
Just checked. same issue On Wed, Sep 29, 2010 at 3:50 PM, Bill Hoffman bill.hoff...@kitware.comwrote: On 9/29/2010 9:38 AM, elizabeta petreska wrote: If I use such a script for comparing time stamps of input and output files, I would need to rewrite every cmakelists.txt that uses

Re: [CMake] Visual Studio 2010 generator and custom command

2010-09-29 Thread elizabeta petreska
On Wed, Sep 29, 2010 at 4:31 PM, elizabeta petreska elizabeta.petre...@gmail.com wrote: I did the test. Unfortunately the problem remains. On Wed, Sep 29, 2010 at 4:16 PM, Bill Hoffman bill.hoff...@kitware.comwrote: On 9/29/2010 9:55 AM, elizabeta petreska wrote: Just checked. same issue

Re: [CMake] Visual Studio 2010 generator and custom command

2010-09-29 Thread elizabeta petreska
This is the link to bug report http://www.paraview.org/Bug/view.php?id=11274 On Wed, Sep 29, 2010 at 4:41 PM, Bill Hoffman bill.hoff...@kitware.comwrote: On 9/29/2010 10:31 AM, elizabeta petreska wrote: OK, can you send a complete project that shows the issue and create a bug report

Re: [CMake] Why is this custom command run twice?

2010-04-30 Thread elizabeta petreska
). Thank you On Wed, Apr 28, 2010 at 6:52 PM, Brad King brad.k...@kitware.com wrote: elizabeta petreska wrote: I am using Visual Studio 2010 generator and cmake 2.8.1 The example code you show, does work with Visual Studio 2005 generator and visual studio 2008 generator , but does not work

Re: [CMake] Why is this custom command run twice?

2010-04-30 Thread elizabeta petreska
Thank you for looking this I am sending you two projects in the attachment, one manually generated and one with cmake. On Fri, Apr 30, 2010 at 3:53 PM, Brad King brad.k...@kitware.com wrote: elizabeta petreska wrote: I add custom build step manually through VS10 dialog for the following

Re: [CMake] Why is this custom command run twice?

2010-04-28 Thread elizabeta petreska
Hello I am using Visual Studio 2010 generator and cmake 2.8.1 The example code you show, does work with Visual Studio 2005 generator and visual studio 2008 generator , but does not work with Visual Studio 2010 generator, i.e If I touch the ${PROJECT_BINARY_DIR}/generated.txt, the target is not

[CMake] ADD_CUSTOM_COMMAND and Visual Studio 2010

2010-03-31 Thread elizabeta petreska
Hello I am using cmake 2.8 to generate Visual Studio 2010 solution files. I have the following cmakelists.txt : set(PROJECT_NAME Test2) PROJECT(${PROJECT_NAME}) FILE(GLOB Test_SRCS main.cpp ) ADD_EXECUTABLE(${PROJECT_NAME} ${Test_SRCS} ) ADD_CUSTOM_COMMAND (OUTPUT

Re: [CMake] ADD_CUSTOM_COMMAND and Visual Studio 2010

2010-03-31 Thread elizabeta petreska
: Well, VS-2010 isn't even released so far... Which exact version of CMake are you using by the way? 2.8 or 2.8.1? If I remember correctly, there were some improvements in 2.8.1 w.r.t. VS-2010. Michael On 31. Mar, 2010, at 14:28 , elizabeta petreska wrote: If I use Visual Studio 2005

Re: [CMake] Reruning cmake and environment variables

2009-11-02 Thread elizabeta petreska
Thank you, it works. On Sun, Nov 1, 2009 at 4:36 PM, Michael Wild them...@gmail.com wrote: On 1. Nov, 2009, at 16:27 , elizabeta petreska wrote: Hello I am using Windows ansd Cmake 2.6. I am invoking CMake from command window which has set some environment variables. The environment

[CMake] Qt4_WRAP_CPP

2009-11-02 Thread elizabeta petreska
Hello how to control where the generated moc files go ? I am using this macro like this : FILE(GLOB MOC_HEADERS moc/*.h ) QT4_WRAP_CPP(out_moc_files ${MOC_HEADERS}) And the generated files are going in my CMAKE_BINARY_DIR. What to do if I want the generated files to go to

Re: [CMake] Qt4_WRAP_CPP

2009-11-02 Thread elizabeta petreska
Do I actually need moc generated files per build comfiguration? On Mon, Nov 2, 2009 at 4:21 PM, elizabeta petreska elizabeta.petre...@gmail.com wrote: Hello how to control where the generated moc files go ? I am using this macro like this : FILE(GLOB MOC_HEADERS moc/*.h

Re: [CMake] Qt4_WRAP_CPP

2009-11-02 Thread elizabeta petreska
...@elemtech.comwrote: On Nov 2, 2009, at 1:41 PM, elizabeta petreska wrote: Do I actually need moc generated files per build comfiguration? No you don't. The output from moc is identical for all build configurations. Clint On Mon, Nov 2, 2009 at 4:21 PM, elizabeta petreska elizabeta.petre

[CMake] Reruning cmake and environment variables

2009-11-01 Thread elizabeta petreska
Hello I am using Windows ansd Cmake 2.6. I am invoking CMake from command window which has set some environment variables. The environment variables are visible only the during the lifetime of the command window. I am using the environment variables in many places through my cmakelists.txt ,

Re: [CMake] ATL support

2009-06-12 Thread elizabeta petreska
MIDL1003 : error returned by the C preprocessor (2) -- Daniel *From:* cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] *On Behalf Of *elizabeta petreska *Sent:* Thursday, June 11, 2009 3:26 AM *To:* CMake ML *Subject:* Re: [CMake] ATL support On Thu, Jun 11, 2009 at 8:55 AM

[CMake] ATL support

2009-06-11 Thread elizabeta petreska
Hello How to add ATL support to my project? I saw the question in the mailling list, but with no answer. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages

Re: [CMake] ATL support

2009-06-11 Thread elizabeta petreska
On Thu, Jun 11, 2009 at 8:43 AM, elizabeta petreska elizabeta.petre...@gmail.com wrote: The ATL (Active Template Library) is project template in Visual Studio that simplifies creation of COM objects. http://en.wikipedia.org/wiki/Active_Template_Library I was hoping that in Cmake exsist

Re: [CMake] ATL support

2009-06-11 Thread elizabeta petreska
On Thu, Jun 11, 2009 at 8:55 AM, Eric Noulard eric.noul...@gmail.comwrote: 2009/6/11 elizabeta petreska elizabeta.petre...@gmail.com: On Thu, Jun 11, 2009 at 8:43 AM, elizabeta petreska elizabeta.petre...@gmail.com wrote: The ATL (Active Template Library) is project template

[CMake] Mfc flag

2009-04-17 Thread elizabeta petreska
Hello I have the cmakelists.txt witch define two libraries : //cmakelists.txt add_library(A SHARED ${A_SRC}) message(${CMAKE_MFC_FLAG}) # prints nothing set(CMAKE_MFC_FLAG 2) message(${CMAKE_MFC_FLAG}) # prints 2 add_library(B SHARED ${B_SRC}) I was expecting CMAKE_MFC _FLAG to be set just

Re: [CMake] Mfc flag

2009-04-17 Thread elizabeta petreska
sorry for the repost, I'm still stuck with this Can someone explain this behavior? I'm sure I'm missing something essential On Fri, Apr 17, 2009 at 11:48 AM, elizabeta petreska elizabeta.petre...@gmail.com wrote: Hello I have the cmakelists.txt witch define two libraries

[CMake] How to use OBJECT_DEPENDS

2009-04-08 Thread elizabeta petreska
Hello all I want to make my target dependent on existing non source file on disk. So far I have the following : SET_SOURCE_FILES_PROPERTIES(main.cpp OBJECT_DEPENDS ${CMAKE_SOURCE_DIR}/myfile.txt) ADD_EXECUTABLE(MyTarget main.cpp) But the this does NOT work, if I touch myfile.txt MyTarget is

[CMake] files used in source_group must be listed in add_library or add_executable

2009-04-06 Thread elizabeta petreska
Hello I am trying to group my files( which are not .cpp or .h ) under visual studio folder. I am using these files as input to custom command which produces output used in custom target. I am doing the following : SOURCE_GROUP(Matlab files FILES ${My_Matlab_Files}) This is not working, so I

[CMake] inherit include directories from child directory

2009-04-03 Thread elizabeta petreska
Hello I have the following problem. I have two libraries A and B. A depends on B. I am adding B in A with add_subdirectory ---this is B cmakelists.txt .. include_directories(B_external_includes) --this is A cmakelists.txt . add_subdirectory(../B ${CMAKE_BINARY_DIR})

[CMake] cmake is reruning on rebuild

2009-02-18 Thread elizabeta petreska
Hello I have one project say C that is dependent on A ,and A is dependent on B. in C.cmakelists.txt I am doing the following : add_subdirectory(../A ${CMAKE_BINARY_DIR}) ADD_LIBRARY(C SHARED ${C_S_SRCS} ) TARGET_LINK_LIBRARIES(C A ) in A cmakelists.txt I am doing the follwing :

[CMake] Compiling Matlab M files

2009-02-10 Thread elizabeta petreska
Hello My problem is this : I am having a set of matlab M files which need to be compiled with Matlab compiler mcc.exe. And I have separate directory for my matlab files which looks like this: -MM --m files dummy.cpp cmakelists.txt the cmakelists.txt inside the directory: ADD_LIBRARY(MM

Re: [CMake] Compiling Matlab M files

2009-02-10 Thread elizabeta petreska
Ok I think I found solution maybe the answer is to use ADD_CUSTOM_COMMAND with DEPENDS On Tue, Feb 10, 2009 at 12:51 PM, elizabeta petreska elizabeta.petre...@gmail.com wrote: Hello My problem is this : I am having a set of matlab M files which need to be compiled with Matlab compiler

[CMake] Read Windows Registry value

2009-02-09 Thread elizabeta petreska
HelloI am trying to read MatlabRoot from Registry ,so I can use it in my include and lib paths. like this : GET_FILENAME_COMPONENT(MATLAB_ROOT_PATH [HKEY_LOCAL_MACHINE\\SOFTWARE\\MathWorks\\MATLAB\\7.0;MATLABROOT] ABSOLUTE) message(${MATLAB_ROOT_PATH}) But the message only prints /registry.

Re: [CMake] Read Windows Registry value

2009-02-09 Thread elizabeta petreska
Still not working.I am getting the following : MATLAB_ROOT_PATH = [HKEY_LOCAL_MACHINE\SOFTWARE\MathWorks\MATLAB\7.6;MATLABROOT] On Mon, Feb 9, 2009 at 4:28 PM, Eric Noulard eric.noul...@gmail.com wrote: 2009/2/9 elizabeta petreska elizabeta.petre...@gmail.com: Hello I am trying to read

[CMake] CMAKE_MFC_FLAG is inherited in subdirectory ?

2009-02-04 Thread elizabeta petreska
Hello I have one cmakelists in which I do the following : set(CMAKE_MFC_FLAG 2) In the same cmakelists I am using add_subdirectory to add another project , and this makes my added directory with sub_directory to have set CMAKE_MFC_FLAG too ,which is not the behaviour I want . How to avoid this ?

[CMake] Add external project library to another project

2009-01-12 Thread Elizabeta Petreska
Hello I have two directories. In the first directory I have static library which I want to use in my projects. In the second directory is my main project which links to the static library. How to add the static library to the main project cmakelists so when the static library is rebuilt and