[CMake] CMake - Generating Visual Studio project using Intel Compiler

2010-06-06 Thread Miłosz Hulbój
Hello,
Is there a simple (or hack) way to generate a Visual Studio 2008
project that uses Intel Compiler from cmake?

I have found some notes about using ICProjConvert.
(http://www.cmake.org/pipermail/cmake/2009-February/027208.html)
Does anyone have any scripts or CMake snippets that are proven to work?

Cheers,
Milosz
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] setting xcode's compiler with cmake

2010-06-06 Thread Bill Hoffman

On 6/4/2010 6:18 PM, Benson Limketkai wrote:

Hi,

When I use the Xcode generator, the CMAKE_CXX_COMPILER flag is ignored
inside Xcode. It always is at: System default (GCC 4.2) when I look at
the Compiler Version under the project build settings.



See here:

http://www.cmake.org/pipermail/cmake/2010-March/036188.html

I've tried:

cmake -G Xcode -DCMAKE_BUILD_TYPE:STRING=Debug
-DCMAKE_CXX_COMPILER:FILEPATH=/opt/intel/Compiler/11.1/076/bin/ia32/icpc

and:

CXX=/opt/intel/Compiler/11.1/076/bin/ia32/icpc cmake -G Xcode
-DCMAKE_BUILD_TYPE:STRING=Debug

I'm using Cmake 2.6.4 and Xcode 3.2.2

Any ideas?

Thanks,
Benson
___
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake




--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoff...@kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Visual Studio 2010 with /CLR

2010-06-06 Thread Tony Duarte
I just got cmake working with C++ VS2010 .NET, so I thought I'd describe what I 
did, since the email archive and bug database were the most useful tutorials 
that I found.

My Goal: Create a VS2010/CLR project using cmake.
My Approach: Create the most trivial code using VS2010, and get a cmake 
CMakeLists.txt that will compile it with nmake so that it runs (the hello 
world is created automatically by VS2010). At that point, I'll know I've got a 
working CMakeLists.txt for a .NET project.

The steps:
0) Download cmake.
1) In VS2010 create a project and specify a console app using CLR. Try running 
it to make sure it prints Hello World. (eg Projects\AJunkProj)
2) Create a parallel directory beside it in Projects. (eg. 
Projects\AJunkProjBld)
3) Create a CMakeLists.txt in Projects\AJunkProj\AJunkProj. File shown below.
4) Launch a shell window from inside VS2010 to run cmake (otherwise, cmake 
environment won't find compilation tools). cd to your build directory (eg. 
Projects\AJunkProjBld)
5) Run:  cmake  ..\AJunkProject\AJunkProject  
6) At this point, for me, there were no errors. So Run: nmake
7) The executable should now exist for you to run (eg. AJunkProj.exe)
In theory, you should be able to debug using nmake VERBOSE=1, though I only got 
it to display the first level of make commands.

I then ran:  cmake -G Visual Studio 10 ..\AJunkProject\AJunkProject
But I haven't inspected the generated project closely to see if it compiles 
properly (or at all.)

# My CMakeLists.txt file 
PROJECT(AJunkProject)
cmake_minimum_required(VERSION 2.8)
SET(PROJ_SRCS
  AJunkProject.cpp 
  AssemblyInfo.cpp 
  stdafx.cpp
)

# Mail archive recommended app.rc be added to file list later...don't know why.
IF(WIN32)
SET(PROJ_SRCS ${PROJ_SRCS}
app.rc
)
  # add a -lpath to the typical link line.
TARGET_LINK_LIBRARIES(
wsock32
)
ENDIF(WIN32)

# where to find header files...slashes must by unix style
INCLUDE_DIRECTORIES(C:/Program Files/Microsoft Visual Studio 10.0/VC/include)

# From Mantis bug tracking notes...To set /clr flag for compiler 
STRING(REPLACE /EHsc /EHa CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
STRING(REPLACE /RTC1  CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG})
SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} /clr)

# set up a target
ADD_EXECUTABLE(AJunkProject ${PROJ_SRCS})
#==

I realize that my CMakeLists.txt is still pretty rough. It has a couple of 
unneeded lines and should have more placed inside IF(WIN32), but I'm glad just 
to have it working.

Thanks for creating cmake,
Tony



  ___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[CMake] CMake hidden files

2010-06-06 Thread Fred Fred

Hello,
I tried to install PV on Windows XP with MinGV, without any success.
So I decided to go with Visual Studio 10 Express, installed it, selected it as 
a generator, etc
But I get an error message, something like it seems that you try to build on 
VS with Qt built on MinGW.
Ok, right, so I installed a pre-compiled Qt for Windows distribution, changed 
the qmake.exe link accordingly and rerun it. Still the same error.
So I decided to go for some brutal method: destroyed installations of MinGW, 
MSYS and everything that was installed with it. Also destroyed PV sources, 
CMake, downloaded them again and unzip in a different place.
Now with nothing related on MinGW on my computer, I said ok man, here we are.
But still the same error when configuring with CMake.
So I wonder how CMake could raise such an error, please help!



  
_
Hotmail : Simple et Efficace qui vous facilite la vie… Découvrez la NOW 
génération !
http://www.windowslive.fr/hotmail/nowgeneration/___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMake hidden files

2010-06-06 Thread John Drescher
 I tried to install PV on Windows XP with MinGV, without any success.
 So I decided to go with Visual Studio 10 Express, installed it, selected it
 as a generator, etc
 But I get an error message, something like it seems that you try to build
 on VS with Qt built on MinGW.
 Ok, right, so I installed a pre-compiled Qt for Windows distribution,

That should cause you problems. Qt must be compiled by the same
compiler you use. And I believe the precompiled Qt was for vs2008. I
have found, windows or linux, usually not a good idea to mix compiler
versions.

John
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Using Valgrind on all tests

2010-06-06 Thread Clark Gaebel
Hello,

I've currently set up CMake and CTest for my building and testing needs,
but CDash just isn't for me. How do I set up CTest to run all the tests
in Valgrind? Again, I don't want to use CDash - just CTest.

Also, it'd be great if I get output on leaks, and silence when
everything's alright.

-- 
Regards,
-Clark

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake