Re: [CMake] How can I add -gstabs to the compile item for Debug?

2008-12-19 Thread Werner Smekal
Hi, cmake -DCMAKE_CXX_FLAGS_DEBUG=-g CMAKE_INSTALL_PREFIX=/usr .. But the result is: This GDB was configured as i486-linux-gnu... (gdb) b main Breakpoint 1 at 0x80487b3 (gdb) r Starting program: /home/kermit/Project/FreeRecite/build/bin/ FreeRecite-core Breakpoint 1, 0x080487b3 in main ()

Re: [CMake] Unable to find GTK with cmake on Ubuntu

2008-12-19 Thread Philip Lowman
On Thu, Dec 18, 2008 at 8:05 PM, Timothy M. Shead tsh...@k-3d.com wrote: Pierrick Grasland wrote: I'm testing CMake with a little project, but I encounter a problem with GTK. I was building with autotools and pkg_config before, so I know I have GTK+-2.0 on my system. Since pkg-config

Re: [CMake] Unable to find GTK with cmake on Ubuntu

2008-12-19 Thread Pierrick Grasland
Hi, I just tried FindGTK2.cmake It correctly locate GTK2 library, but when I trying to build my project, GCC output a lot of error in GTK lib ... It seems to be unable to find definition of GTK. I copy / paste here my CMakeLists.txt (I think I forgot something) : SET(CMAKE_MODULE_PATH

Re: [CMake] Unable to find GTK with cmake on Ubuntu

2008-12-19 Thread Philip Lowman
On Fri, Dec 19, 2008 at 4:40 AM, Pierrick Grasland pierrick.grasl...@gmail.com wrote: Hi, I just tried FindGTK2.cmake It correctly locate GTK2 library, but when I trying to build my project, GCC output a lot of error in GTK lib ... It seems to be unable to find definition of GTK. I

Re: [CMake] MSVC projects keep building even if one fails

2008-12-19 Thread Philip Lowman
On Thu, Dec 18, 2008 at 2:44 PM, Tyler Roscoe ty...@cryptio.net wrote: I don't know about your first question but: On Thu, Dec 18, 2008 at 12:33:56PM -0700, Brad Aisa wrote: Also (minor point) how is the default project chosen? Can I explicitly override this to force my main executable

Re: [CMake] Unable to find GTK with cmake on Ubuntu

2008-12-19 Thread Pierrick Grasland
Ok. I modify my CMakeLists.txt : SET(CMAKE_MODULE_PATH /home/bobby/workspace/SipSec/gui) FIND_PACKAGE(GTK2 COMPONENTS gtk) include_directories (${GTK2_INCLUDE_DIR}) set( GUI_SRC gtkCallback.c interface.c widgetUI.c) add_library (sipsecgui ${GUI_SRC}) target_link_libraries(sipsecgui

Re: [CMake] Unable to find GTK with cmake on Ubuntu

2008-12-19 Thread Pierrick Grasland
Found it ! ${GTK2_INCLUDE_DIR} != ${GTK2_INCLUDE_DIR*S*} Sorry for bothering you. On Fri, Dec 19, 2008 at 11:12 AM, Pierrick Grasland pierrick.grasl...@gmail.com wrote: Ok. I modify my CMakeLists.txt : SET(CMAKE_MODULE_PATH /home/bobby/workspace/SipSec/gui) FIND_PACKAGE(GTK2

Re: [CMake] Unable to find GTK with cmake on Ubuntu

2008-12-19 Thread Pierrick Grasland
Hi. I though I resolved my problem, but not. Actually, my project can link gtk2 with my C source file, with the following include : #include gtk-2.0/gtk/gtk.h But, within gtk.h, gtk includes are linked with the following : #include gtk/gdk.h (for example) So, I can't build since I don't

Re: [CMake] How can I add -gstabs to the compile item for Debug?

2008-12-19 Thread Kermit Mei
Werner Smekal wrote: Hi, cmake -DCMAKE_CXX_FLAGS_DEBUG=-g CMAKE_INSTALL_PREFIX=/usr .. But the result is: This GDB was configured as i486-linux-gnu... (gdb) b main Breakpoint 1 at 0x80487b3 (gdb) r Starting program: /home/kermit/Project/FreeRecite/build/bin/FreeRecite-core Breakpoint 1,

Re: [CMake] Unable to find GTK with cmake on Ubuntu

2008-12-19 Thread Philip Lowman
On Fri, Dec 19, 2008 at 5:38 AM, Pierrick Grasland pierrick.grasl...@gmail.com wrote: Hi. I though I resolved my problem, but not. Actually, my project can link gtk2 with my C source file, with the following include : #include gtk-2.0/gtk/gtk.h But, within gtk.h, gtk includes are

Re: [CMake] Unable to find GTK with cmake on Ubuntu

2008-12-19 Thread Philip Lowman
On Thu, Dec 18, 2008 at 2:37 PM, Hendrik Sattler p...@hendrik-sattler.dewrote: Am Thursday 18 December 2008 20:03:25 schrieb Philip Lowman: Could you try the following beta FindGTK2 module? Set CMAKE_MODULE_PATH prior to calling FIND_PACKAGE(GTK2 COMPONENTS gtk) See the module for

[CMake] [MacOSX] Create screensaver

2008-12-19 Thread Steven Van Ingelgem
Hi, How can I make a screensaver project in CMake? What I understand is that a screensaver project is saved under projectname.saver instead of projectname.app. But how could I make this work? Thanks! ___ CMake mailing list CMake@cmake.org

Re: [CMake] [MacOSX] Create screensaver

2008-12-19 Thread Michael Jackson
You will probably have to use cmake code to create the folder structure yourself. I believe CMake is Hard Coded to create a .app bundle when you use the add_executable() command in CMake. _ Mike Jackson

[CMake] target to copy include files?

2008-12-19 Thread Brad Aisa
I would like to create a target that will copy (or link) a big whack of include files defined in my project to a local /include folder. (They start life in a bunch of subfolders, and some of them are generated programmatically during the build.) Note that we already have an install-time

[CMake] MSVC not true!

2008-12-19 Thread Brad Aisa
The cmake web site says MSVC: True when using Microsoft Visual C However if I put it in test like this: if (MSVC) ... it is not true! ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] MSVC not true!

2008-12-19 Thread Christopher Harvey
how can you be sure it's not going into the if? what's the full code? Brad Aisa wrote: The cmake web site says MSVC: True when using Microsoft Visual C However if I put it in test like this: if (MSVC) ... it is not true! ___ CMake mailing list