Hi, how about this CMakeLists.txt? I use it to test my GTK+ programs,
and it always work well;p
cmake_minimum_required(VERSION 2.6)
INCLUDE(UsePkgConfig)
FIND_PACKAGE(GTK)
IF (GTK_FOUND)
INCLUDE_DIRECTORIES(${GTK_INCLUDE_DIR})
ADD_DEFINITIONS(-DHAVE_GTK)
MESSAGE(GTK 1.x found and
Thanks a lot.
But, like I said before, I found a workaround, and now, Philip's FindGtk2
work perfectly.
On Mon, Jan 12, 2009 at 3:56 AM, Kermit Mei kermit@gmail.com wrote:
Hi, how about this CMakeLists.txt? I use it to test my GTK+ programs,
and it always work well;p
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
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
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
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
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
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
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
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
Hello all,
I'm testing CMake with a little project, but I encounter a problem with GTK.
I have the following architecture with CMake 2.6-patch2 on ubuntu 8.04 :
src/
gui/
tools/
target/
My goal is to generate my project in target.
So I created a CMakeLists.txt in src :
Could you try the following beta FindGTK2 module?
Set CMAKE_MODULE_PATH prior to calling FIND_PACKAGE(GTK2 COMPONENTS gtk)
See the module for details
.. Original Message ...
On Thu, 18 Dec 2008 16:15:28 +0100 Pierrick Grasland
pierrick.grasl...@gmail.com wrote:
Hello all,
I'm testing
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 details
Some notes: you should make better use of path suffixes in find_file instead
of
Ok, I will try it tomorrow.
On Thu, Dec 18, 2008 at 8: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
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 is the officially supported way to obtain GTK
dependencies and compiler flag (I
15 matches
Mail list logo