[CMake] Can't use Visual Studio Debugger with Cmake

2013-07-22 Thread Benoit
ntdll.dll' > 'helloDemo.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll' > The program '[0x808] helloDemo.exe: Native' has exited with code 0 (0x0). Do you have any idea what I am doing wrong! I though setting Build_type to debug was enough! The st

[CMake] Visual Studio: Inherited Project Property Sheets

2010-05-25 Thread Benoit Thomas
Hello, Is there a way to set the "Inherited Project Property Sheets" attribute with CMake when generating a Visual Studio project ? Thanks, -- Ben. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/o

[CMake] Can not install two executable using CPACK_NSIS_EXTRA_INSTALL_COMMANDS .

2010-05-17 Thread Benoit
as wondering if someone has a way to solve this problem. Another simple question is: if it is possible to check that the software is already installed, and select repair or uninstall (like other installer) if want to use a more recent version? -- Benoit RAT www.neub.co.nr ___

[CMake] Script Mode

2010-05-13 Thread Benoit Thomas
Hello, Is there any way to know if my code is running script mode (cmake -P) or normal mode ? I wanna do something like this: if (CMAKE_IS_RUNNING_IN_SCRIPT_MODE) # do some special stuff else() # do the normal stuff endif() Thank you, -- Ben. _

Re: [CMake] addprefix macro?

2010-05-05 Thread Benoit Thomas
On 2010-05-05 10:22, Michael Wild wrote: # prefix and suffix elements > foreach(l ${list_name}) >list(APPEND ${list_name}_TMP ${prefix}${l}${suffix} ) > endforeach() You also have an error in your foreach, it should be: foreach(l ${${list_name}}) -- Ben. ___

Re: [CMake] Question about PARENT_SCOPE

2010-05-03 Thread Benoit Thomas
On 2010-05-03 15:00, Clinton Stimpson wrote: On Monday 03 May 2010 12:42:58 pm Benoit Thomas wrote: Hello, Is it possible to do something like this (sorry if there are typos): function (bar v scope) set (v 1 GRAND_PARENT_SCOPE) endfunction() function (foo v) bar (${v

Re: [CMake] Question about PARENT_SCOPE

2010-05-03 Thread Benoit Thomas
On 2010-05-03 15:19, Alexander Neundorf wrote: On Monday 03 May 2010, Benoit Thomas wrote: function (foo v) bar (${v} PARENT_SCOPE) endfunction() You could have bar() use PARENT_SCOPE to set it in a variable in bar(), which could then itself set it to PARENT_SCOPE. Would that

[CMake] Question about PARENT_SCOPE

2010-05-03 Thread Benoit Thomas
Hello, Is it possible to do something like this (sorry if there are typos): function (bar v scope) set (v 1 GRAND_PARENT_SCOPE) endfunction() function (foo v) bar (${v} PARENT_SCOPE) endfunction() foo (v) message ("${v} == 1") If it's not possible, I'll go with global variables. Curre

Re: [CMake] I'm confused with Find*.cmake and *-config.cmake

2010-04-20 Thread Benoit Thomas
On 2010-04-20 03:27, Michael Hertling wrote: On 04/19/2010 10:07 PM, Benoit Thomas wrote: I'm using an external library which is already compiled. I have wrapped the library in a MyLib.cmake and use it in cmake as an imported library. It works fine, but since the include line

[CMake] I'm confused with Find*.cmake and *-config.cmake

2010-04-19 Thread Benoit Thomas
Hello, I'm using an external library which is already compiled. I have wrapped the library in a MyLib.cmake and use it in cmake as an imported library. It works fine, but since the include line uses relative path, it changes from projects to projects and in some case it looks just wrong. I w

Re: [CMake] target_link_libraries difficulties

2010-04-02 Thread Benoit Thomas
_ Mike Jackson www.bluequartz.net Principal Software Engineer mike.jack...@bluequartz.net BlueQuartz Software Dayton, Ohio On Apr 1, 2010, at 2:52 PM, Benoit Thomas wrote: Hello, I'm trying to find a work around since target_link_l

[CMake] target_link_libraries difficulties

2010-04-01 Thread Benoit Thomas
Hello, I'm trying to find a work around since target_link_libraries cannot be used per-configuration. I know that out-of-build could solve my problem, but my team is currently migrating from Visual Studio to cmake, so I need something which "feel" more like Visual Studio. My current project

Re: [CMake] project (name NONE) still search for a valid compiler

2010-03-30 Thread Benoit Thomas
is: cmake version 2.8.1 -- Configuring done -- Generating done -- Build files have been written to: /Users/davidcole/Desktop/xyz/build You are correct: using "NONE" in the project statement should (and does for me) prevent the "compiler works" testing. HTH, David On Tue, Mar

[CMake] project (name NONE) still search for a valid compiler

2010-03-30 Thread Benoit Thomas
Hello, I'm trying to prevent cmake for looking for a valid compiler (since it currently doesn't find the appropriate compiler and we use cmake to generate visual studio solutions). I've tried using project (name NONE) but it doesn't seems to work; I also tried other combination like project

[CMake] GetPrerequisites (Install the Qt DLL needed)

2010-03-25 Thread Benoit
ver) if(WIN32) set(TARGET_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Debug) set(PREREQ "") get_prerequisites(${TARGET_DIR}/${EXECNAME}.exe" PREREQ 0 1 ${TARGET_DIR} "") message(STATUS "PREREQ=${PREREQ}") endif(WIN32) Thanks, -- Benoit RAT www.neub.co.nr __

Re: [CMake] New CMake book ready for orders!

2010-03-22 Thread Benoit Thomas
Hello, I tried to order the book from Amazon but it still unavailable there; do you know when it will be possible to order it from Amazon ? Thanks, Ben. On 2010-03-19 13:53, Bill Hoffman wrote: Eric Noulard wrote: Is there really nothing you can to to lower the price of the shipping for eu

Re: [CMake] Bug ? Or I'm doing something wrong ?

2010-03-22 Thread Benoit Thomas
on to disable it, or override this behavior. I hope this explain it better (I'm still new to cmake). Thank you, Ben. On 2010-03-22 04:52, David Cole wrote: On Fri, Mar 19, 2010 at 5:28 PM, Benoit Thomas mailto:benoit.tho...@gameloft.com>> wrote: Hello, I have the following dir

[CMake] Bug ? Or I'm doing something wrong ?

2010-03-19 Thread Benoit Thomas
Hello, I have the following directory structure root |--- project A |--- project B Project A & B both have their cmakelists.txt file Root has a cmakelists.txt file which does add_subdirectory for project A and B When I generate the tree in visual studio, I have a solution wi

Re: [CMake] 2 questions :)

2010-03-11 Thread Benoit Thomas
Hi, Thanks for the answer, I'll use target_link_libraries for my dependency problem. For the multiple add_library, someone else had the same problem (and explain it better than I did), and his solution also worked for me :) Ben. On 2010-03-11 09:42, Matt McCormick wrote: add_subdirect

[CMake] 2 questions :)

2010-03-10 Thread Benoit Thomas
Hello, I have 3 projects, one library and 2 executables. Both executables depends on the library. The library is legacy stuff, and I don't need to fully convert it to cmake so the cmakelists. txt looks something like this: add_library(mylib STATIC IMPORTED) set_target_properties(mylib PROPE

[CMake] link_directories & include_directories

2010-03-10 Thread Benoit Thomas
Hello, Are there equivalent to link_directories & include_directories which would require a target ? Thanks, Ben. ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please

Re: [CMake] Question about add_library with IMPORTED

2010-03-09 Thread Benoit Thomas
I knew I was missing something :) Thanks for the answers, work perfectly now ! Ben. On 2010-03-09 12:27, Benoit Thomas wrote: Hello, I have a library which is a Visual Studio project only (which will be converted to cmake in the future). In my current cmake project, I try adding this

[CMake] Question about add_library with IMPORTED

2010-03-09 Thread Benoit Thomas
Hello, I have a library which is a Visual Studio project only (which will be converted to cmake in the future). In my current cmake project, I try adding this library using the following code: set (IMPORTED_LOCATION "../farfaraway/lib") add_library ("mylib" STATIC IMPORTED) When I run cmak

Re: [CMake] Is this possible ?

2010-02-18 Thread Benoit Thomas
This is perfect, Thank you ! On 2010-02-18 17:15, Tyler Roscoe wrote: On Thu, Feb 18, 2010 at 05:02:38PM -0500, Benoit Thomas wrote: I am trying to do something like this: function (FOO_DEBUG) ... endfunction (FOO_DEBUG) function (FOO_RELEASE) ... endfunction (FOO_RELEASE

[CMake] Is this possible ?

2010-02-18 Thread Benoit Thomas
Hi, I am trying to do something like this: function (FOO_DEBUG) ... endfunction (FOO_DEBUG) function (FOO_RELEASE) ... endfunction (FOO_RELEASE) foreach (CONFIG ${CMAKE_CONFIGURATION_TYPES}) FOO_${CONFIG} endforeach(CONFIG) But naturally, it doesn't work :( Is there a way to make

[CMake] Overwriting variables in cache.

2010-02-18 Thread Benoit Thomas
Hi, I am trying to overwrite some variables in the cache (without editing the cache); it works well for variables like CMAKE_CXX_FLAGS, but I cannot overwirte the CMAKE_CONFIGURATION_TYPES variable. Is there a way to do this without having to edit the cache ? (or modifying it the first time t

[CMake] Cpack Component and NSIS shortcut

2009-12-14 Thread Benoit
nstall only the client (by default) and I have two shortcuts (client and server) So i think it is just a simple bug but i don't know how to correct it :( Someone can help me ! Regards, -- Benoit RAT www.neub.co.nr ___ Powe

[CMake] Library in different location according to its version!

2009-06-15 Thread Benoit
nd my variable stay unchanged! Someone can tell me where i did wrong (I think is using cache variable, but i don't really know how to handle it). Thanks in advance for your help! -- Benoit RAT www.neub.co.nr ___ Powered by www.kitware.com Visit oth

[CMake] Problem with target_link_libraries

2009-05-08 Thread Benoit
library x7sxml is created like this: set(LIBNAME "x7sxml") add_library(${LIBNAME} ${SRC_FILES} ${HDR_FILES}) target_link_libraries(${LIBNAME} "D:/projects/builds/CvS400/ec_mingw/3rdparty/lib/libtinyxml.a") thanks -- Benoit RAT www.neub.co.nr

[CMake] Compiling dll under MSVC 2008

2009-04-16 Thread Benoit
very stupid things but i'm not microsoft friendly and it is the first time i use the MSVC compilator -- Benoit RAT www.neub.co.nr ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensour

[CMake] add_custom_target and eclipse

2009-03-30 Thread Benoit
hope here is a good place !! -- Benoit RAT www.neub.co.nr ___ 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

Re: [CMake] [Doxygen-users] Complex documentation question

2009-03-28 Thread Benoit
tagfile. This is just an idea but i never try it because i'm generating documentation in one step because my libraries have linear depencies. libcore > no depency libio > depend on libcore main > depend on libio and libcore. -- Benoit RAT www.neub.co.nr On Sat, Mar 28, 2009 at 4

Re: [CMake] Doxygen and variable environment

2009-03-27 Thread Benoit
Okay, it's an easier way to do this If think you should put this in the FAQ for next time. -- Benoit RAT www.neub.co.nr On Fri, Mar 27, 2009 at 1:25 PM, Mike Jackson wrote: > Go back to yesterday and look for the thread "[CMake] > execute_process() and writing output to

[CMake] Doxygen and variable environment

2009-03-27 Thread Benoit
hen i call it I have this error: D:\projects\CvS400\build>"C:\Archivos de programa\CMake 2.6\bin\cmake.exe" -E time runcommand.cmake %1 no es una aplicación Win32 válida - If someone know a good way to perform this operation it would be very happy. -- Benoit RAT www.ne

[CMake] problem with cmake script.

2009-03-09 Thread Benoit
encv and not /opt/opencv/1.1.0/include/opencv even if both files /opt/opencv/1.1.0/include/opencv/highgui.h and/usr/include/opencv/highgui.h exist in my path. -- Benoit RAT www.neub.co.nr ___ Powered by www.kitware.com Visit other Kitware open-source proj

[CMake] copying directory structure : path issue

2009-03-02 Thread Benoit Callebaut
structure. I looked for options and even using REGEX to strip the path (without an success). How can I do it ? Thanks, Benoit ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource

[CMake] adding extra resources to MACOSX package

2009-02-27 Thread Benoit Callebaut
Hello, How can I copy external resources in the MACOSX bundle. I haven't seen any command to do this. I also need to change paths in a config file depending on the packaging (MACOSX or Linux or Windows). Is it possible to call some external program like sed ,awk or a custom script in CMAKE ?

Re: [CMake] MAC OXS linking problem : -lcrt1.10.5.o not found

2009-02-27 Thread Benoit Callebaut
Tanks, adding -mmacosx-version-min=10.4 to the CMAKE_CXX_FLAGS, it worked. But I had to change the compiler from c++ to g++. On Feb 26, 2009, at 4:17 PM, Sean McBride wrote: On 2/26/09 4:07 PM, Benoit Callebaut said: I end up with the following message: Linking CXX executable

[CMake] MAC OXS linking problem : -lcrt1.10.5.o not found

2009-02-26 Thread Benoit Callebaut
/OgreSDK/OgreSDK/Dependencies/lib/Release/ -I/Developer/ SDKs/OgreSDK/OgreSDK/Samples/include/ -L/Developer/SDKs/OgreSDK/ OgreSDK/Dependencies/ -l ois -framework Carbon -framework Ogre - framework IOKit CubeMapping.cpp Where can this problem come from ? Benoit Callebaut

[CMake] Cmake macro and date

2009-02-12 Thread Benoit
today date") ENDIF(PERL_FOUND) ENDMACRO (TODAY) Then in the CMakeList.txt I have call INCLUDE(GetTime) TODAY(VAR) MESSAGE( STATUS "TODAY is ${VAR}") When i call the makefile I have: -- (in) VAR -- Correctly setted Someone can tell me how to use a macro to retrieve a r

[CMake] Cmake, Eclipse and MinGW (bug in the include)

2009-02-09 Thread Benoit
4.5) ELSE(EXISTS "C:/MinGW/include") MESSAGE(STATUS "MinGW include dir not found") ENDIF(EXISTS "C:/MinGW/include") ENDIF(MINGW) This hack works correctly but it is not the best way to handle this problem. I wanted to know if other people have th

[CMake] copy generated dll in executable directory

2009-02-09 Thread Benoit
put path. Using the target all should be sufficient to generate the executable and the new dll in the same directory. Thanks, -- Benoit RAT www.neub.co.nr ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware

Re: [CMake] svn info from cmake script?

2006-08-11 Thread Benoit Myard
Hi list, On Fri, Aug 11, 2006 at 12:18:24PM -0700, Abe Stephens wrote: > > > > > > > Thanks for your directions, I'm experiencing one problem however: > Yeah, that's HTML. Would you mind not using HTML in your messages ? It's actualy considered a good practice to write plain text message

[CMake] Re: Project installation

2006-05-10 Thread Benoit Regrain
Hi,   I'm working on windows and I have a CMake project Is there an installation mode on windows like the linux equivalent make install ?   Benoit ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CMake + VS Toolkit 2003

2006-01-13 Thread Benoit Regrain
- Original Message - From: "William A. Hoffman" <[EMAIL PROTECTED]> To: "Benoit Regrain" <[EMAIL PROTECTED]>; "Mathieu Malaterre" <[EMAIL PROTECTED]>; Sent: Friday, January 13, 2006 2:26 PM Subject: Re: [CMake] CMake + VS Toolkit 200

Re: [CMake] CMake + VS Toolkit 2003

2006-01-13 Thread Benoit Regrain
clude\Win64\mfc LIB : c:\Program Files\Microsoft Platform SDK\Lib;c:\Program Files\Microsoft Visual Studio .NET 2003\VC7\lib;c:\Program Files\Microsoft Visual C++ Toolkit 2003\lib PATH : c:\Program Files\Microsoft Platform SDK\Bin;c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin Benoi

[CMake] CMake + VS Toolkit 2003

2006-01-12 Thread Benoit Regrain
my problem ?   -----Benoit RegrainIngénieur d'études CNRS (Creatis)email : [EMAIL PROTECTED]phone : (+33) (0) 4.72.43.82.58fax : (+33) (0) 4.72.43.85.26address :   CREATIS - CNRS UMR5515   INSA - Bâtiment Blaise Pascal   7, avenue Jean Capelle   F - 6962