[Cmake-commits] CMake branch, next, updated. v2.8.11.2-3829-gcaec092
Daniele E. Domenichelli
daniele.domenichelli at gmail.com
Fri Aug 9 10:58:51 EDT 2013
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".
The branch, next has been updated
via caec09261ace95094b47ffbf775984d58fd6837b (commit)
via d3466549b9e4d34784a640719dee88829feacc43 (commit)
via 44e7ca4a82336d41d45ba39d553d1b767901b581 (commit)
via a59c96d21880bad01a9fbd926e6d52e36c28ce76 (commit)
via 7316bc897124c8c77eb4f0a24966dae83993a8ca (commit)
from fdc4d4385353a2bd387fe5a80ac8b440b7fc3e62 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=caec09261ace95094b47ffbf775984d58fd6837b
commit caec09261ace95094b47ffbf775984d58fd6837b
Merge: fdc4d43 d346654
Author: Daniele E. Domenichelli <daniele.domenichelli at gmail.com>
AuthorDate: Fri Aug 9 10:58:41 2013 -0400
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Fri Aug 9 10:58:41 2013 -0400
Merge topic 'FindGTK2-targets' into next
d346654 FindGTK2: Add unit tests for all targets in gtk and gtkmm modules
44e7ca4 FindGTK2: Add check to ensure that target exists
a59c96d FindGTK2: Fix gmodule, glibmm, pangoft2, and pangoxft targets
7316bc8 FindGTK2: Link freetype libs to targets including freetype includes
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=d3466549b9e4d34784a640719dee88829feacc43
commit d3466549b9e4d34784a640719dee88829feacc43
Author: Daniele E. Domenichelli <daniele.domenichelli at iit.it>
AuthorDate: Fri Aug 9 16:39:26 2013 +0200
Commit: Daniele E. Domenichelli <daniele.domenichelli at iit.it>
CommitDate: Fri Aug 9 16:53:22 2013 +0200
FindGTK2: Add unit tests for all targets in gtk and gtkmm modules
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index d6d328b..993a826 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -1069,34 +1069,9 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
endif()
endif()
- if(NOT GTK2_FOUND)
- find_package(GTK2 COMPONENTS gtk glade gtkmm glademm QUIET)
- endif()
-
- if(GTK2_GTK_FOUND)
- add_test(GTK2Gtk ${CMAKE_CTEST_COMMAND}
- --build-and-test
- "${CMake_SOURCE_DIR}/Tests/GTK2Gtk"
- "${CMake_BINARY_DIR}/Tests/GTK2Gtk"
- ${build_generator_args}
- --build-project GTK2Gtk
- --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Gtk"
- --force-new-ctest-process
- --test-command ${CMAKE_CTEST_COMMAND} -V
- )
- endif()
-
- if(GTK2_GTKMM_FOUND)
- add_test(GTK2GtkMM ${CMAKE_CTEST_COMMAND}
- --build-and-test
- "${CMake_SOURCE_DIR}/Tests/GTK2GtkMM"
- "${CMake_BINARY_DIR}/Tests/GTK2GtkMM"
- ${build_generator_args}
- --build-project GTK2GtkMM
- --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2GtkMM"
- --force-new-ctest-process
- --test-command ${CMAKE_CTEST_COMMAND} -V
- )
+ find_package(GTK2 QUIET)
+ if(GTK2_FOUND)
+ add_subdirectory(GTK2Targets)
endif()
add_test(ExternalProject ${CMAKE_CTEST_COMMAND}
diff --git a/Tests/GTK2GtkMM/CMakeLists.txt b/Tests/GTK2GtkMM/CMakeLists.txt
deleted file mode 100644
index 017f884..0000000
--- a/Tests/GTK2GtkMM/CMakeLists.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-cmake_minimum_required(VERSION 2.8)
-
-project(GTK2GtkMM)
-
-find_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
-
-set(CMAKE_INCLUDE_CURRENT_DIR ON)
-
-add_executable(GTK2GtkMM WIN32 main.cpp helloworld.cpp helloworld.h)
-target_link_libraries(GTK2GtkMM GTK2::gtkmm)
diff --git a/Tests/GTK2Targets/CMakeLists.txt b/Tests/GTK2Targets/CMakeLists.txt
new file mode 100644
index 0000000..ada25ec
--- /dev/null
+++ b/Tests/GTK2Targets/CMakeLists.txt
@@ -0,0 +1,287 @@
+find_package(GTK2 COMPONENTS gtk glade gtkmm glademm QUIET)
+
+if(GTK2_GLIB_FOUND)
+ add_test(GTK2Targets.glib ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/glib"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/glib"
+ ${build_generator_args}
+ --build-project glib
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/glib"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_GOBJECT_FOUND)
+ add_test(GTK2Targets.gobject ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/gobject"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/gobject"
+ ${build_generator_args}
+ --build-project gobject
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/gobject"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_GIO_FOUND)
+ add_test(GTK2Targets.gio ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/gio"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/gio"
+ ${build_generator_args}
+ --build-project gio
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/gio"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_GMODULE_FOUND)
+ add_test(GTK2Targets.gmodule ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/gmodule"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/gmodule"
+ ${build_generator_args}
+ --build-project gmodule
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/gmodule"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_GTHREAD_FOUND)
+ add_test(GTK2Targets.gthread ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/gthread"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/gthread"
+ ${build_generator_args}
+ --build-project gthread
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/gthread"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_ATK_FOUND)
+ add_test(GTK2Targets.atk ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/atk"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/atk"
+ ${build_generator_args}
+ --build-project atk
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/atk"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_GDK_PIXBUF_FOUND)
+ add_test(GTK2Targets.gdk_pixbuf ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/gdk_pixbuf"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/gdk_pixbuf"
+ ${build_generator_args}
+ --build-project gdk_pixbuf
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/gdk_pixbuf"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_CAIRO_FOUND)
+ add_test(GTK2Targets.cairo ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/cairo"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/cairo"
+ ${build_generator_args}
+ --build-project cairo
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/cairo"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_PANGO_FOUND)
+ add_test(GTK2Targets.pango ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/pango"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/pango"
+ ${build_generator_args}
+ --build-project pango
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/pango"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_PANGOCAIRO_FOUND)
+ add_test(GTK2Targets.pangocairo ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/pangocairo"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/pangocairo"
+ ${build_generator_args}
+ --build-project pangocairo
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/pangocairo"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_PANGOXFT_FOUND)
+ add_test(GTK2Targets.pangoxft ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/pangoxft"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/pangoxft"
+ ${build_generator_args}
+ --build-project pangoxft
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/pangoxft"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_PANGOFT2_FOUND)
+ add_test(GTK2Targets.pangoft2 ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/pangoft2"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/pangoft2"
+ ${build_generator_args}
+ --build-project pangoft2
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/pangoft2"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_GDK_FOUND)
+ add_test(GTK2Targets.gdk ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/gdk"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/gdk"
+ ${build_generator_args}
+ --build-project gdk
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/gdk"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_GTK_FOUND)
+ add_test(GTK2Targets.gtk ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/gtk"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/gtk"
+ ${build_generator_args}
+ --build-project gtk
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/gtk"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_SIGC++_FOUND)
+ add_test(GTK2Targets.sigc++ ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/sigc++"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/sigc++"
+ ${build_generator_args}
+ --build-project sigc++
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/sigc++"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_GLIBMM_FOUND)
+ add_test(GTK2Targets.glibmm ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/glibmm"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/glibmm"
+ ${build_generator_args}
+ --build-project glibmm
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/glibmm"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_GIOMM_FOUND)
+ add_test(GTK2Targets.giomm ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/giomm"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/giomm"
+ ${build_generator_args}
+ --build-project giomm
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/giomm"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_ATKMM_FOUND)
+ add_test(GTK2Targets.atkmm ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/atkmm"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/atkmm"
+ ${build_generator_args}
+ --build-project atkmm
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/atkmm"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_CAIROMM_FOUND)
+ add_test(GTK2Targets.cairomm ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/cairomm"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/cairomm"
+ ${build_generator_args}
+ --build-project cairomm
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/cairomm"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_PANGOMM_FOUND)
+ add_test(GTK2Targets.pangomm ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/pangomm"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/pangomm"
+ ${build_generator_args}
+ --build-project pangomm
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/pangomm"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_GDKMM_FOUND)
+ add_test(GTK2Targets.gdkmm ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/gdkmm"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/gdkmm"
+ ${build_generator_args}
+ --build-project gdkmm
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/gdkmm"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
+
+if(GTK2_GTKMM_FOUND)
+ add_test(GTK2Targets.gtkmm ${CMAKE_CTEST_COMMAND}
+ --build-and-test
+ "${CMake_SOURCE_DIR}/Tests/GTK2Targets/gtkmm"
+ "${CMake_BINARY_DIR}/Tests/GTK2Targets/gtkmm"
+ ${build_generator_args}
+ --build-project gtkmm
+ --build-exe-dir "${CMake_BINARY_DIR}/Tests/GTK2Targets/gtkmm"
+ --force-new-ctest-process
+ --test-command ${CMAKE_CTEST_COMMAND} -V
+ )
+endif()
diff --git a/Tests/GTK2Gtk/CMakeLists.txt b/Tests/GTK2Targets/atk/CMakeLists.txt
similarity index 55%
copy from Tests/GTK2Gtk/CMakeLists.txt
copy to Tests/GTK2Targets/atk/CMakeLists.txt
index 30ab706..11c5cc4 100644
--- a/Tests/GTK2Gtk/CMakeLists.txt
+++ b/Tests/GTK2Targets/atk/CMakeLists.txt
@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 2.8)
-project(GTK2Gtk)
+project(atk)
find_package(GTK2 COMPONENTS gtk REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
-add_executable(GTK2Gtk WIN32 main.c)
-target_link_libraries(GTK2Gtk GTK2::gtk)
+add_executable(atk WIN32 main.c)
+target_link_libraries(atk GTK2::atk)
diff --git a/Tests/GTK2Targets/atk/main.c b/Tests/GTK2Targets/atk/main.c
new file mode 100644
index 0000000..573a313
--- /dev/null
+++ b/Tests/GTK2Targets/atk/main.c
@@ -0,0 +1,9 @@
+#include <atk/atk.h>
+
+int main(int argc, char *argv[])
+{
+ guint major = atk_get_major_version();
+ guint minor = atk_get_minor_version();
+ guint micro = atk_get_micro_version();
+ return 0;
+}
diff --git a/Tests/GTK2Targets/atkmm/CMakeLists.txt b/Tests/GTK2Targets/atkmm/CMakeLists.txt
new file mode 100644
index 0000000..6d06db0
--- /dev/null
+++ b/Tests/GTK2Targets/atkmm/CMakeLists.txt
@@ -0,0 +1,10 @@
+cmake_minimum_required(VERSION 2.8)
+
+project(atkmm)
+
+find_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+add_executable(atkmm WIN32 main.cpp)
+target_link_libraries(atkmm GTK2::atkmm)
diff --git a/Tests/GTK2Targets/atkmm/main.cpp b/Tests/GTK2Targets/atkmm/main.cpp
new file mode 100644
index 0000000..f455c7a
--- /dev/null
+++ b/Tests/GTK2Targets/atkmm/main.cpp
@@ -0,0 +1,8 @@
+#include <atkmm.h>
+#include <atkmm/init.h>
+
+int main(int argc, char *argv[])
+{
+ Atk::init();
+ return 0;
+}
diff --git a/Tests/GTK2Gtk/CMakeLists.txt b/Tests/GTK2Targets/cairo/CMakeLists.txt
similarity index 55%
copy from Tests/GTK2Gtk/CMakeLists.txt
copy to Tests/GTK2Targets/cairo/CMakeLists.txt
index 30ab706..124ec13 100644
--- a/Tests/GTK2Gtk/CMakeLists.txt
+++ b/Tests/GTK2Targets/cairo/CMakeLists.txt
@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 2.8)
-project(GTK2Gtk)
+project(cairo)
find_package(GTK2 COMPONENTS gtk REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
-add_executable(GTK2Gtk WIN32 main.c)
-target_link_libraries(GTK2Gtk GTK2::gtk)
+add_executable(cairo WIN32 main.c)
+target_link_libraries(cairo GTK2::cairo)
diff --git a/Tests/GTK2Targets/cairo/main.c b/Tests/GTK2Targets/cairo/main.c
new file mode 100644
index 0000000..1b61001
--- /dev/null
+++ b/Tests/GTK2Targets/cairo/main.c
@@ -0,0 +1,52 @@
+/* Taken from http://cairographics.org/samples/ */
+
+
+#include <cairo.h>
+#include <math.h>
+#include <stdio.h>
+
+int main(int argc, char *argv[])
+{
+ char *filename;
+ if (argc != 2)
+ {
+ fprintf (stderr, "Usage: %s OUTPUT_FILENAME\n", argv[0]);
+ return 1;
+ }
+ filename = argv[1];
+ double xc = 128.0;
+ double yc = 128.0;
+ double radius = 100.0;
+ double angle1 = 45.0 * (M_PI/180.0); /* angles are specified */
+ double angle2 = 180.0 * (M_PI/180.0); /* in radians */
+
+ cairo_surface_t *im = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, xc * 2, yc * 2);
+ cairo_t *cr = cairo_create(im);
+
+
+ cairo_set_line_width (cr, 10.0);
+ cairo_arc (cr, xc, yc, radius, angle1, angle2);
+ cairo_stroke (cr);
+
+ /* draw helping lines */
+ cairo_set_source_rgba (cr, 1, 0.2, 0.2, 0.6);
+ cairo_set_line_width (cr, 6.0);
+
+ cairo_arc (cr, xc, yc, 10.0, 0, 2*M_PI);
+ cairo_fill (cr);
+
+ cairo_arc (cr, xc, yc, radius, angle1, angle1);
+ cairo_line_to (cr, xc, yc);
+ cairo_arc (cr, xc, yc, radius, angle2, angle2);
+ cairo_line_to (cr, xc, yc);
+ cairo_stroke (cr);
+
+ cairo_status_t status = cairo_surface_write_to_png (im, filename);
+ cairo_surface_destroy (im);
+ if (status != CAIRO_STATUS_SUCCESS) {
+ fprintf(stderr, "Could not save png to '%s'\n", filename);
+ }
+
+ cairo_destroy(cr);
+ return 0;
+}
diff --git a/Tests/GTK2Targets/cairomm/CMakeLists.txt b/Tests/GTK2Targets/cairomm/CMakeLists.txt
new file mode 100644
index 0000000..451c7bc
--- /dev/null
+++ b/Tests/GTK2Targets/cairomm/CMakeLists.txt
@@ -0,0 +1,10 @@
+cmake_minimum_required(VERSION 2.8)
+
+project(cairomm)
+
+find_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+add_executable(cairomm WIN32 main.cpp)
+target_link_libraries(cairomm GTK2::cairomm)
diff --git a/Tests/GTK2Targets/cairomm/main.cpp b/Tests/GTK2Targets/cairomm/main.cpp
new file mode 100644
index 0000000..ea8f106
--- /dev/null
+++ b/Tests/GTK2Targets/cairomm/main.cpp
@@ -0,0 +1,62 @@
+// Taken from http://cgit.freedesktop.org/cairomm/plain/examples/surfaces/image-surface.cc
+
+
+/* M_PI is defined in math.h in the case of Microsoft Visual C++, Solaris,
+ * et. al.
+ */
+#if defined(_MSC_VER)
+#define _USE_MATH_DEFINES
+#endif
+
+#include <string>
+#include <iostream>
+#include <cairommconfig.h>
+#include <cairomm/context.h>
+#include <cairomm/surface.h>
+
+#include <cmath>
+
+int main()
+{
+ Cairo::RefPtr<Cairo::ImageSurface> surface =
+ Cairo::ImageSurface::create(Cairo::FORMAT_ARGB32, 600, 400);
+
+ Cairo::RefPtr<Cairo::Context> cr = Cairo::Context::create(surface);
+
+ cr->save(); // save the state of the context
+ cr->set_source_rgb(0.86, 0.85, 0.47);
+ cr->paint(); // fill image with the color
+ cr->restore(); // color is back to black now
+
+ cr->save();
+ // draw a border around the image
+ cr->set_line_width(20.0); // make the line wider
+ cr->rectangle(0.0, 0.0, surface->get_width(), surface->get_height());
+ cr->stroke();
+
+ cr->set_source_rgba(0.0, 0.0, 0.0, 0.7);
+ // draw a circle in the center of the image
+ cr->arc(surface->get_width() / 2.0, surface->get_height() / 2.0,
+ surface->get_height() / 4.0, 0.0, 2.0 * M_PI);
+ cr->stroke();
+
+ // draw a diagonal line
+ cr->move_to(surface->get_width() / 4.0, surface->get_height() / 4.0);
+ cr->line_to(surface->get_width() * 3.0 / 4.0, surface->get_height() * 3.0 / 4.0);
+ cr->stroke();
+ cr->restore();
+
+#ifdef CAIRO_HAS_PNG_FUNCTIONS
+
+ std::string filename = "image.png";
+ surface->write_to_png(filename);
+
+ std::cout << "Wrote png file \"" << filename << "\"" << std::endl;
+
+#else
+
+ std::cout << "You must compile cairo with PNG support for this example to work."
+ << std::endl;
+
+#endif
+}
diff --git a/Tests/GTK2Gtk/CMakeLists.txt b/Tests/GTK2Targets/gdk/CMakeLists.txt
similarity index 55%
copy from Tests/GTK2Gtk/CMakeLists.txt
copy to Tests/GTK2Targets/gdk/CMakeLists.txt
index 30ab706..ebb90f6 100644
--- a/Tests/GTK2Gtk/CMakeLists.txt
+++ b/Tests/GTK2Targets/gdk/CMakeLists.txt
@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 2.8)
-project(GTK2Gtk)
+project(gdk)
find_package(GTK2 COMPONENTS gtk REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
-add_executable(GTK2Gtk WIN32 main.c)
-target_link_libraries(GTK2Gtk GTK2::gtk)
+add_executable(gdk WIN32 main.c)
+target_link_libraries(gdk GTK2::gdk)
diff --git a/Tests/GTK2Targets/gdk/main.c b/Tests/GTK2Targets/gdk/main.c
new file mode 100644
index 0000000..ac1bd4b
--- /dev/null
+++ b/Tests/GTK2Targets/gdk/main.c
@@ -0,0 +1,7 @@
+#include <gdk/gdk.h>
+
+int main(int argc, char *argv[])
+{
+ gdk_init(argc, argv);
+ return 0;
+}
diff --git a/Tests/GTK2Gtk/CMakeLists.txt b/Tests/GTK2Targets/gdk_pixbuf/CMakeLists.txt
similarity index 51%
copy from Tests/GTK2Gtk/CMakeLists.txt
copy to Tests/GTK2Targets/gdk_pixbuf/CMakeLists.txt
index 30ab706..addf9d6 100644
--- a/Tests/GTK2Gtk/CMakeLists.txt
+++ b/Tests/GTK2Targets/gdk_pixbuf/CMakeLists.txt
@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 2.8)
-project(GTK2Gtk)
+project(gdk_pixbuf)
find_package(GTK2 COMPONENTS gtk REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
-add_executable(GTK2Gtk WIN32 main.c)
-target_link_libraries(GTK2Gtk GTK2::gtk)
+add_executable(gdk_pixbuf WIN32 main.c)
+target_link_libraries(gdk_pixbuf GTK2::gdk_pixbuf)
diff --git a/Tests/GTK2Targets/gdk_pixbuf/main.c b/Tests/GTK2Targets/gdk_pixbuf/main.c
new file mode 100644
index 0000000..e42b83e
--- /dev/null
+++ b/Tests/GTK2Targets/gdk_pixbuf/main.c
@@ -0,0 +1,10 @@
+#include <gdk-pixbuf/gdk-pixbuf.h>
+
+int main(int argc, char *argv[])
+{
+ const char *version = gdk_pixbuf_version;
+ const guint major = gdk_pixbuf_major_version;
+ const guint minor = gdk_pixbuf_minor_version;
+ const guint micro = gdk_pixbuf_micro_version;
+ return 0;
+}
diff --git a/Tests/GTK2Targets/gdkmm/CMakeLists.txt b/Tests/GTK2Targets/gdkmm/CMakeLists.txt
new file mode 100644
index 0000000..90b8e2c
--- /dev/null
+++ b/Tests/GTK2Targets/gdkmm/CMakeLists.txt
@@ -0,0 +1,10 @@
+cmake_minimum_required(VERSION 2.8)
+
+project(gdkmm)
+
+find_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+add_executable(gdkmm WIN32 main.cpp)
+target_link_libraries(gdkmm GTK2::gdkmm)
diff --git a/Tests/GTK2Targets/gdkmm/main.cpp b/Tests/GTK2Targets/gdkmm/main.cpp
new file mode 100644
index 0000000..935bcc4
--- /dev/null
+++ b/Tests/GTK2Targets/gdkmm/main.cpp
@@ -0,0 +1,7 @@
+#include <gdkmm.h>
+
+int main(int argc, char *argv[])
+{
+ Gdk::Color red = Gdk::Color("red");
+ return 0;
+}
diff --git a/Tests/GTK2Gtk/CMakeLists.txt b/Tests/GTK2Targets/gio/CMakeLists.txt
similarity index 55%
copy from Tests/GTK2Gtk/CMakeLists.txt
copy to Tests/GTK2Targets/gio/CMakeLists.txt
index 30ab706..76a809a 100644
--- a/Tests/GTK2Gtk/CMakeLists.txt
+++ b/Tests/GTK2Targets/gio/CMakeLists.txt
@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 2.8)
-project(GTK2Gtk)
+project(gio)
find_package(GTK2 COMPONENTS gtk REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
-add_executable(GTK2Gtk WIN32 main.c)
-target_link_libraries(GTK2Gtk GTK2::gtk)
+add_executable(gio WIN32 main.c)
+target_link_libraries(gio GTK2::gio)
diff --git a/Tests/GTK2Targets/gio/main.c b/Tests/GTK2Targets/gio/main.c
new file mode 100644
index 0000000..13f4304
--- /dev/null
+++ b/Tests/GTK2Targets/gio/main.c
@@ -0,0 +1,8 @@
+#include <gio/gio.h>
+
+int main(int argc, char *argv[])
+{
+ GFile *file = g_file_new_for_path("path");
+ g_object_unref(file);
+ return 0;
+}
diff --git a/Tests/GTK2Targets/giomm/CMakeLists.txt b/Tests/GTK2Targets/giomm/CMakeLists.txt
new file mode 100644
index 0000000..093dbd5
--- /dev/null
+++ b/Tests/GTK2Targets/giomm/CMakeLists.txt
@@ -0,0 +1,10 @@
+cmake_minimum_required(VERSION 2.8)
+
+project(giomm)
+
+find_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+add_executable(giomm WIN32 main.cpp)
+target_link_libraries(giomm GTK2::giomm)
diff --git a/Tests/GTK2Targets/giomm/main.cpp b/Tests/GTK2Targets/giomm/main.cpp
new file mode 100644
index 0000000..8303ba9
--- /dev/null
+++ b/Tests/GTK2Targets/giomm/main.cpp
@@ -0,0 +1,7 @@
+#include <giomm.h>
+
+int main(int argc, char *argv[])
+{
+ Glib::RefPtr<Gio::File> f = Gio::File::create_for_path("path");
+ return 0;
+}
diff --git a/Tests/GTK2Gtk/CMakeLists.txt b/Tests/GTK2Targets/glib/CMakeLists.txt
similarity index 55%
copy from Tests/GTK2Gtk/CMakeLists.txt
copy to Tests/GTK2Targets/glib/CMakeLists.txt
index 30ab706..fc00db3 100644
--- a/Tests/GTK2Gtk/CMakeLists.txt
+++ b/Tests/GTK2Targets/glib/CMakeLists.txt
@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 2.8)
-project(GTK2Gtk)
+project(glib)
find_package(GTK2 COMPONENTS gtk REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
-add_executable(GTK2Gtk WIN32 main.c)
-target_link_libraries(GTK2Gtk GTK2::gtk)
+add_executable(glib WIN32 main.c)
+target_link_libraries(glib GTK2::glib)
diff --git a/Tests/GTK2Targets/glib/main.c b/Tests/GTK2Targets/glib/main.c
new file mode 100644
index 0000000..80d0554
--- /dev/null
+++ b/Tests/GTK2Targets/glib/main.c
@@ -0,0 +1,11 @@
+#include <glib.h>
+
+int main(int argc, char *argv[])
+{
+ if (!g_file_test("file", G_FILE_TEST_EXISTS)) {
+ g_print("File not found. \n");
+ } else {
+ g_print("File found. \n");
+ }
+ return 0;
+}
diff --git a/Tests/GTK2Targets/glibmm/CMakeLists.txt b/Tests/GTK2Targets/glibmm/CMakeLists.txt
new file mode 100644
index 0000000..337dcd8
--- /dev/null
+++ b/Tests/GTK2Targets/glibmm/CMakeLists.txt
@@ -0,0 +1,10 @@
+cmake_minimum_required(VERSION 2.8)
+
+project(glibmm)
+
+find_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+add_executable(glibmm WIN32 main.cpp)
+target_link_libraries(glibmm GTK2::glibmm)
diff --git a/Tests/GTK2Targets/glibmm/main.cpp b/Tests/GTK2Targets/glibmm/main.cpp
new file mode 100644
index 0000000..973a22a
--- /dev/null
+++ b/Tests/GTK2Targets/glibmm/main.cpp
@@ -0,0 +1,84 @@
+// Taken from https://developer.gnome.org/glibmm/unstable/thread_2thread_8cc-example.html
+
+
+#include <iostream>
+#include <queue>
+#include <glibmm/threads.h>
+#include <glibmm/random.h>
+#include <glibmm/timer.h>
+#include <glibmm/init.h>
+
+namespace
+{
+class MessageQueue
+{
+public:
+ MessageQueue();
+ ~MessageQueue();
+ void producer();
+ void consumer();
+private:
+ Glib::Threads::Mutex mutex_;
+ Glib::Threads::Cond cond_push_;
+ Glib::Threads::Cond cond_pop_;
+ std::queue<int> queue_;
+};
+MessageQueue::MessageQueue()
+{}
+MessageQueue::~MessageQueue()
+{}
+void MessageQueue::producer()
+{
+ Glib::Rand rand (1234);
+ for(int i = 0; i < 200; ++i)
+ {
+ {
+ Glib::Threads::Mutex::Lock lock (mutex_);
+ while(queue_.size() >= 64)
+ cond_pop_.wait(mutex_);
+ queue_.push(i);
+ std::cout << '*';
+ std::cout.flush();
+ cond_push_.signal();
+ }
+ if(rand.get_bool())
+ continue;
+ Glib::usleep(rand.get_int_range(0, 100000));
+ }
+}
+void MessageQueue::consumer()
+{
+ Glib::Rand rand (4567);
+ for(;;)
+ {
+ {
+ Glib::Threads::Mutex::Lock lock (mutex_);
+ while(queue_.empty())
+ cond_push_.wait(mutex_);
+ const int i = queue_.front();
+ queue_.pop();
+ std::cout << "\x08 \x08";
+ std::cout.flush();
+ cond_pop_.signal();
+ if(i >= 199)
+ break;
+ }
+ if(rand.get_bool())
+ continue;
+ Glib::usleep(rand.get_int_range(10000, 200000));
+ }
+}
+}
+int main(int, char**)
+{
+ Glib::init();
+ MessageQueue queue;
+ Glib::Threads::Thread *const producer = Glib::Threads::Thread::create(
+ sigc::mem_fun(queue, &MessageQueue::producer));
+ Glib::Threads::Thread *const consumer = Glib::Threads::Thread::create(
+ sigc::mem_fun(queue, &MessageQueue::consumer));
+ producer->join();
+ consumer->join();
+ std::cout << std::endl;
+ return 0;
+}
diff --git a/Tests/GTK2Gtk/CMakeLists.txt b/Tests/GTK2Targets/gmodule/CMakeLists.txt
similarity index 54%
copy from Tests/GTK2Gtk/CMakeLists.txt
copy to Tests/GTK2Targets/gmodule/CMakeLists.txt
index 30ab706..f70209c 100644
--- a/Tests/GTK2Gtk/CMakeLists.txt
+++ b/Tests/GTK2Targets/gmodule/CMakeLists.txt
@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 2.8)
-project(GTK2Gtk)
+project(gmodule)
find_package(GTK2 COMPONENTS gtk REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
-add_executable(GTK2Gtk WIN32 main.c)
-target_link_libraries(GTK2Gtk GTK2::gtk)
+add_executable(gmodule WIN32 main.c)
+target_link_libraries(gmodule GTK2::gmodule)
diff --git a/Tests/GTK2Targets/gmodule/main.c b/Tests/GTK2Targets/gmodule/main.c
new file mode 100644
index 0000000..5c85a6f
--- /dev/null
+++ b/Tests/GTK2Targets/gmodule/main.c
@@ -0,0 +1,7 @@
+#include <gmodule.h>
+
+int main(int argc, char *argv[])
+{
+ gboolean b = g_module_supported();
+ return 0;
+}
diff --git a/Tests/GTK2Gtk/CMakeLists.txt b/Tests/GTK2Targets/gobject/CMakeLists.txt
similarity index 54%
copy from Tests/GTK2Gtk/CMakeLists.txt
copy to Tests/GTK2Targets/gobject/CMakeLists.txt
index 30ab706..46100eb 100644
--- a/Tests/GTK2Gtk/CMakeLists.txt
+++ b/Tests/GTK2Targets/gobject/CMakeLists.txt
@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 2.8)
-project(GTK2Gtk)
+project(gobject)
find_package(GTK2 COMPONENTS gtk REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
-add_executable(GTK2Gtk WIN32 main.c)
-target_link_libraries(GTK2Gtk GTK2::gtk)
+add_executable(gobject WIN32 main.c)
+target_link_libraries(gobject GTK2::gobject)
diff --git a/Tests/GTK2Targets/gobject/main.c b/Tests/GTK2Targets/gobject/main.c
new file mode 100644
index 0000000..d3e13f9
--- /dev/null
+++ b/Tests/GTK2Targets/gobject/main.c
@@ -0,0 +1,72 @@
+/* Taken from https://developer.gnome.org/gobject/stable/chapter-gobject.html */
+
+
+#include <glib-object.h>
+
+
+#define MAMAN_TYPE_BAR (maman_bar_get_type ())
+#define MAMAN_BAR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MAMAN_TYPE_BAR, MamanBar))
+#define MAMAN_IS_BAR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MAMAN_TYPE_BAR))
+#define MAMAN_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MAMAN_TYPE_BAR, MamanBarClass))
+#define MAMAN_IS_BAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MAMAN_TYPE_BAR))
+#define MAMAN_BAR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MAMAN_TYPE_BAR, MamanBarClass))
+
+typedef struct _MamanBar MamanBar;
+typedef struct _MamanBarClass MamanBarClass;
+
+struct _MamanBar
+{
+ GObject parent_instance;
+
+ /* instance members */
+};
+
+struct _MamanBarClass
+{
+ GObjectClass parent_class;
+
+ /* class members */
+};
+
+/* will create maman_bar_get_type and set maman_bar_parent_class */
+G_DEFINE_TYPE (MamanBar, maman_bar, G_TYPE_OBJECT);
+
+static GObject *
+maman_bar_constructor (GType gtype,
+ guint n_properties,
+ GObjectConstructParam *properties)
+{
+ GObject *obj;
+
+ {
+ /* Always chain up to the parent constructor */
+ obj = G_OBJECT_CLASS (maman_bar_parent_class)->constructor (gtype, n_properties, properties);
+ }
+
+ /* update the object state depending on constructor properties */
+
+ return obj;
+}
+
+static void
+maman_bar_class_init (MamanBarClass *klass)
+{
+ GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
+
+ gobject_class->constructor = maman_bar_constructor;
+}
+
+static void
+maman_bar_init (MamanBar *self)
+{
+ /* initialize the object */
+}
+
+
+int
+main(int argc, char *argv[])
+{
+ MamanBar *bar = g_object_new (MAMAN_TYPE_BAR, NULL);
+ g_object_unref(bar);
+ return 0;
+}
diff --git a/Tests/GTK2Gtk/CMakeLists.txt b/Tests/GTK2Targets/gthread/CMakeLists.txt
similarity index 54%
copy from Tests/GTK2Gtk/CMakeLists.txt
copy to Tests/GTK2Targets/gthread/CMakeLists.txt
index 30ab706..8c3d765 100644
--- a/Tests/GTK2Gtk/CMakeLists.txt
+++ b/Tests/GTK2Targets/gthread/CMakeLists.txt
@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 2.8)
-project(GTK2Gtk)
+project(gthread)
find_package(GTK2 COMPONENTS gtk REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
-add_executable(GTK2Gtk WIN32 main.c)
-target_link_libraries(GTK2Gtk GTK2::gtk)
+add_executable(gthread WIN32 main.c)
+target_link_libraries(gthread GTK2::gthread)
diff --git a/Tests/GTK2Targets/gthread/main.c b/Tests/GTK2Targets/gthread/main.c
new file mode 100644
index 0000000..cf470ac
--- /dev/null
+++ b/Tests/GTK2Targets/gthread/main.c
@@ -0,0 +1,13 @@
+#include <glib.h>
+
+gpointer func(gpointer data) {
+ return NULL;
+}
+
+int main(int argc, char *argv[])
+{
+ g_thread_init(NULL);
+ GThread *thread = g_thread_new("thread", func, NULL);
+ g_thread_join(thread);
+ return 0;
+}
diff --git a/Tests/GTK2Gtk/CMakeLists.txt b/Tests/GTK2Targets/gtk/CMakeLists.txt
similarity index 55%
copy from Tests/GTK2Gtk/CMakeLists.txt
copy to Tests/GTK2Targets/gtk/CMakeLists.txt
index 30ab706..31d36e3 100644
--- a/Tests/GTK2Gtk/CMakeLists.txt
+++ b/Tests/GTK2Targets/gtk/CMakeLists.txt
@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 2.8)
-project(GTK2Gtk)
+project(gtk)
find_package(GTK2 COMPONENTS gtk REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
-add_executable(GTK2Gtk WIN32 main.c)
-target_link_libraries(GTK2Gtk GTK2::gtk)
+add_executable(gtk WIN32 main.c)
+target_link_libraries(gtk GTK2::gtk)
diff --git a/Tests/GTK2Gtk/main.c b/Tests/GTK2Targets/gtk/main.c
similarity index 100%
rename from Tests/GTK2Gtk/main.c
rename to Tests/GTK2Targets/gtk/main.c
diff --git a/Tests/GTK2Targets/gtkmm/CMakeLists.txt b/Tests/GTK2Targets/gtkmm/CMakeLists.txt
new file mode 100644
index 0000000..b577913
--- /dev/null
+++ b/Tests/GTK2Targets/gtkmm/CMakeLists.txt
@@ -0,0 +1,10 @@
+cmake_minimum_required(VERSION 2.8)
+
+project(gtkmm)
+
+find_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+add_executable(gtkmm WIN32 main.cpp helloworld.cpp helloworld.h)
+target_link_libraries(gtkmm GTK2::gtkmm)
diff --git a/Tests/GTK2GtkMM/helloworld.cpp b/Tests/GTK2Targets/gtkmm/helloworld.cpp
similarity index 100%
rename from Tests/GTK2GtkMM/helloworld.cpp
rename to Tests/GTK2Targets/gtkmm/helloworld.cpp
diff --git a/Tests/GTK2GtkMM/helloworld.h b/Tests/GTK2Targets/gtkmm/helloworld.h
similarity index 100%
rename from Tests/GTK2GtkMM/helloworld.h
rename to Tests/GTK2Targets/gtkmm/helloworld.h
diff --git a/Tests/GTK2GtkMM/main.cpp b/Tests/GTK2Targets/gtkmm/main.cpp
similarity index 85%
rename from Tests/GTK2GtkMM/main.cpp
rename to Tests/GTK2Targets/gtkmm/main.cpp
index 0df7d54..5ff64d1 100644
--- a/Tests/GTK2GtkMM/main.cpp
+++ b/Tests/GTK2Targets/gtkmm/main.cpp
@@ -1,7 +1,7 @@
#include <gtkmm.h>
#include "helloworld.h"
-int main (int argc, char *argv[])
+int main(int argc, char *argv[])
{
Gtk::Main kit(argc, argv);
diff --git a/Tests/GTK2Gtk/CMakeLists.txt b/Tests/GTK2Targets/pango/CMakeLists.txt
similarity index 55%
copy from Tests/GTK2Gtk/CMakeLists.txt
copy to Tests/GTK2Targets/pango/CMakeLists.txt
index 30ab706..f26c122 100644
--- a/Tests/GTK2Gtk/CMakeLists.txt
+++ b/Tests/GTK2Targets/pango/CMakeLists.txt
@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 2.8)
-project(GTK2Gtk)
+project(pango)
find_package(GTK2 COMPONENTS gtk REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
-add_executable(GTK2Gtk WIN32 main.c)
-target_link_libraries(GTK2Gtk GTK2::gtk)
+add_executable(pango WIN32 main.c)
+target_link_libraries(pango GTK2::pango)
diff --git a/Tests/GTK2Targets/pango/main.c b/Tests/GTK2Targets/pango/main.c
new file mode 100644
index 0000000..3e6ea05
--- /dev/null
+++ b/Tests/GTK2Targets/pango/main.c
@@ -0,0 +1,7 @@
+#include <pango/pango.h>
+
+int main(int argc, char *argv[])
+{
+ int version = pango_version();
+ return 0;
+}
diff --git a/Tests/GTK2Gtk/CMakeLists.txt b/Tests/GTK2Targets/pangocairo/CMakeLists.txt
similarity index 51%
copy from Tests/GTK2Gtk/CMakeLists.txt
copy to Tests/GTK2Targets/pangocairo/CMakeLists.txt
index 30ab706..68c85a4 100644
--- a/Tests/GTK2Gtk/CMakeLists.txt
+++ b/Tests/GTK2Targets/pangocairo/CMakeLists.txt
@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 2.8)
-project(GTK2Gtk)
+project(pangocairo)
find_package(GTK2 COMPONENTS gtk REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
-add_executable(GTK2Gtk WIN32 main.c)
-target_link_libraries(GTK2Gtk GTK2::gtk)
+add_executable(pangocairo WIN32 main.c)
+target_link_libraries(pangocairo GTK2::pangocairo)
diff --git a/Tests/GTK2Targets/pangocairo/main.c b/Tests/GTK2Targets/pangocairo/main.c
new file mode 100644
index 0000000..78268d6
--- /dev/null
+++ b/Tests/GTK2Targets/pangocairo/main.c
@@ -0,0 +1,72 @@
+/* Taken from https://developer.gnome.org/pango/stable/pango-Cairo-Rendering.html */
+
+
+#include <math.h>
+#include <pango/pangocairo.h>
+static void
+draw_text (cairo_t *cr)
+{
+#define RADIUS 150
+#define N_WORDS 10
+#define FONT "Sans Bold 27"
+ PangoLayout *layout;
+ PangoFontDescription *desc;
+ int i;
+ /* Center coordinates on the middle of the region we are drawing
+ */
+ cairo_translate (cr, RADIUS, RADIUS);
+ /* Create a PangoLayout, set the font and text */
+ layout = pango_cairo_create_layout (cr);
+ pango_layout_set_text (layout, "Text", -1);
+ desc = pango_font_description_from_string (FONT);
+ pango_layout_set_font_description (layout, desc);
+ pango_font_description_free (desc);
+ /* Draw the layout N_WORDS times in a circle */
+ for (i = 0; i < N_WORDS; i++)
+ {
+ int width, height;
+ double angle = (360. * i) / N_WORDS;
+ double red;
+ cairo_save (cr);
+ /* Gradient from red at angle == 60 to blue at angle == 240 */
+ red = (1 + cos ((angle - 60) * G_PI / 180.)) / 2;
+ cairo_set_source_rgb (cr, red, 0, 1.0 - red);
+ cairo_rotate (cr, angle * G_PI / 180.);
+ /* Inform Pango to re-layout the text with the new transformation */
+ pango_cairo_update_layout (cr, layout);
+ pango_layout_get_size (layout, &width, &height);
+ cairo_move_to (cr, - ((double)width / PANGO_SCALE) / 2, - RADIUS);
+ pango_cairo_show_layout (cr, layout);
+ cairo_restore (cr);
+ }
+ /* free the layout object */
+ g_object_unref (layout);
+}
+int main (int argc, char **argv)
+{
+ cairo_t *cr;
+ char *filename;
+ cairo_status_t status;
+ cairo_surface_t *surface;
+ if (argc != 2)
+ {
+ g_printerr ("Usage: cairosimple OUTPUT_FILENAME\n");
+ return 1;
+ }
+ filename = argv[1];
+ surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
+ 2 * RADIUS, 2 * RADIUS);
+ cr = cairo_create (surface);
+ cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
+ cairo_paint (cr);
+ draw_text (cr);
+ cairo_destroy (cr);
+ status = cairo_surface_write_to_png (surface, filename);
+ cairo_surface_destroy (surface);
+ if (status != CAIRO_STATUS_SUCCESS)
+ {
+ g_printerr ("Could not save png to '%s'\n", filename);
+ return 1;
+ }
+ return 0;
+}
diff --git a/Tests/GTK2Gtk/CMakeLists.txt b/Tests/GTK2Targets/pangoft2/CMakeLists.txt
similarity index 53%
copy from Tests/GTK2Gtk/CMakeLists.txt
copy to Tests/GTK2Targets/pangoft2/CMakeLists.txt
index 30ab706..8046f98 100644
--- a/Tests/GTK2Gtk/CMakeLists.txt
+++ b/Tests/GTK2Targets/pangoft2/CMakeLists.txt
@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 2.8)
-project(GTK2Gtk)
+project(pangoft2)
find_package(GTK2 COMPONENTS gtk REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
-add_executable(GTK2Gtk WIN32 main.c)
-target_link_libraries(GTK2Gtk GTK2::gtk)
+add_executable(pangoft2 WIN32 main.c)
+target_link_libraries(pangoft2 GTK2::pangoft2)
diff --git a/Tests/GTK2Targets/pangoft2/main.c b/Tests/GTK2Targets/pangoft2/main.c
new file mode 100644
index 0000000..cf3459e
--- /dev/null
+++ b/Tests/GTK2Targets/pangoft2/main.c
@@ -0,0 +1,8 @@
+#include <pango/pangoft2.h>
+
+int main(int argc, char *argv[])
+{
+ PangoFontMap* pfm = pango_ft2_font_map_new();
+ g_object_unref(pfm);
+ return 0;
+}
diff --git a/Tests/GTK2Targets/pangomm/CMakeLists.txt b/Tests/GTK2Targets/pangomm/CMakeLists.txt
new file mode 100644
index 0000000..2668f24
--- /dev/null
+++ b/Tests/GTK2Targets/pangomm/CMakeLists.txt
@@ -0,0 +1,10 @@
+cmake_minimum_required(VERSION 2.8)
+
+project(pangomm)
+
+find_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+add_executable(pangomm WIN32 main.cpp)
+target_link_libraries(pangomm GTK2::pangomm)
diff --git a/Tests/GTK2Targets/pangomm/main.cpp b/Tests/GTK2Targets/pangomm/main.cpp
new file mode 100644
index 0000000..32ec914
--- /dev/null
+++ b/Tests/GTK2Targets/pangomm/main.cpp
@@ -0,0 +1,8 @@
+#include <pangomm.h>
+#include <pangomm/init.h>
+
+int main(int argc, char *argv[])
+{
+ Pango::init();
+ return 0;
+}
diff --git a/Tests/GTK2Gtk/CMakeLists.txt b/Tests/GTK2Targets/pangoxft/CMakeLists.txt
similarity index 53%
rename from Tests/GTK2Gtk/CMakeLists.txt
rename to Tests/GTK2Targets/pangoxft/CMakeLists.txt
index 30ab706..2cf92bb 100644
--- a/Tests/GTK2Gtk/CMakeLists.txt
+++ b/Tests/GTK2Targets/pangoxft/CMakeLists.txt
@@ -1,10 +1,10 @@
cmake_minimum_required(VERSION 2.8)
-project(GTK2Gtk)
+project(pangoxft)
find_package(GTK2 COMPONENTS gtk REQUIRED)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
-add_executable(GTK2Gtk WIN32 main.c)
-target_link_libraries(GTK2Gtk GTK2::gtk)
+add_executable(pangoxft WIN32 main.c)
+target_link_libraries(pangoxft GTK2::pangoxft)
diff --git a/Tests/GTK2Targets/pangoxft/main.c b/Tests/GTK2Targets/pangoxft/main.c
new file mode 100644
index 0000000..cb04f61
--- /dev/null
+++ b/Tests/GTK2Targets/pangoxft/main.c
@@ -0,0 +1,7 @@
+#include <pango/pangoxft.h>
+
+int main(int argc, char *argv[])
+{
+ pango_xft_get_context(NULL, 0);
+ return 0;
+}
diff --git a/Tests/GTK2Targets/sigc++/CMakeLists.txt b/Tests/GTK2Targets/sigc++/CMakeLists.txt
new file mode 100644
index 0000000..f78df8f
--- /dev/null
+++ b/Tests/GTK2Targets/sigc++/CMakeLists.txt
@@ -0,0 +1,10 @@
+cmake_minimum_required(VERSION 2.8)
+
+project(sigc++)
+
+find_package(GTK2 COMPONENTS gtk gtkmm REQUIRED)
+
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
+add_executable(sigc++ WIN32 main.cpp)
+target_link_libraries(sigc++ GTK2::sigc++)
diff --git a/Tests/GTK2Targets/sigc++/main.cpp b/Tests/GTK2Targets/sigc++/main.cpp
new file mode 100644
index 0000000..78428e7
--- /dev/null
+++ b/Tests/GTK2Targets/sigc++/main.cpp
@@ -0,0 +1,30 @@
+// Taken from https://developer.gnome.org/libsigc++-tutorial/stable/ch02.html
+
+
+#include <sigc++/sigc++.h>
+#include <iostream>
+
+class AlienDetector
+{
+public:
+ AlienDetector() {}
+
+ void run() {}
+
+ sigc::signal<void> signal_detected;
+};
+
+void warn_people()
+{
+ std::cout << "There are aliens in the carpark!" << std::endl;
+}
+
+int main()
+{
+ AlienDetector mydetector;
+ mydetector.signal_detected.connect( sigc::ptr_fun(warn_people) );
+
+ mydetector.run();
+
+ return 0;
+}
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=44e7ca4a82336d41d45ba39d553d1b767901b581
commit 44e7ca4a82336d41d45ba39d553d1b767901b581
Author: Daniele E. Domenichelli <daniele.domenichelli at iit.it>
AuthorDate: Fri Aug 9 10:39:46 2013 +0200
Commit: Daniele E. Domenichelli <daniele.domenichelli at iit.it>
CommitDate: Fri Aug 9 16:52:21 2013 +0200
FindGTK2: Add check to ensure that target exists
diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake
index 7468cbb..20b90b5 100644
--- a/Modules/FindGTK2.cmake
+++ b/Modules/FindGTK2.cmake
@@ -455,11 +455,13 @@ function(_GTK2_ADD_TARGET_DEPENDS _var)
string(TOLOWER "${_var}" _basename)
- get_target_property(_configs GTK2::${_basename} IMPORTED_CONFIGURATIONS)
- _GTK2_ADD_TARGET_DEPENDS_INTERNAL(${_var} INTERFACE_LINK_LIBRARIES ${ARGN})
- foreach(_config ${_configs})
- _GTK2_ADD_TARGET_DEPENDS_INTERNAL(${_var} IMPORTED_LINK_INTERFACE_LIBRARIES_${_config} ${ARGN})
- endforeach()
+ if(TARGET GTK2::${_basename})
+ get_target_property(_configs GTK2::${_basename} IMPORTED_CONFIGURATIONS)
+ _GTK2_ADD_TARGET_DEPENDS_INTERNAL(${_var} INTERFACE_LINK_LIBRARIES ${ARGN})
+ foreach(_config ${_configs})
+ _GTK2_ADD_TARGET_DEPENDS_INTERNAL(${_var} IMPORTED_LINK_INTERFACE_LIBRARIES_${_config} ${ARGN})
+ endforeach()
+ endif()
endfunction()
function(_GTK2_ADD_TARGET_INCLUDE_DIRS _var)
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a59c96d21880bad01a9fbd926e6d52e36c28ce76
commit a59c96d21880bad01a9fbd926e6d52e36c28ce76
Author: Daniele E. Domenichelli <daniele.domenichelli at iit.it>
AuthorDate: Fri Aug 9 12:22:24 2013 +0200
Commit: Daniele E. Domenichelli <daniele.domenichelli at iit.it>
CommitDate: Fri Aug 9 16:52:21 2013 +0200
FindGTK2: Fix gmodule, glibmm, pangoft2, and pangoxft targets
diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake
index 70f419b..7468cbb 100644
--- a/Modules/FindGTK2.cmake
+++ b/Modules/FindGTK2.cmake
@@ -627,7 +627,7 @@ foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
_GTK2_ADJUST_LIB_VARS (GTHREAD)
_GTK2_FIND_LIBRARY (GMODULE gmodule false true)
- _GTK2_ADJUST_LIB_VARS (MODULE)
+ _GTK2_ADJUST_LIB_VARS (GMODULE)
_GTK2_FIND_LIBRARY (GIO gio false true)
_GTK2_ADJUST_LIB_VARS (GIO)
@@ -645,7 +645,6 @@ foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
_GTK2_FIND_LIBRARY (GLIB glib false true)
_GTK2_ADJUST_LIB_VARS (GLIB)
- #_GTK2_ADD_TARGET_DEPENDS(GOBJECT glib)
_GTK2_ADD_TARGET_DEPENDS(GOBJECT glib)
_GTK2_ADD_TARGET_DEPENDS(ATK gobject glib)
_GTK2_ADD_TARGET_DEPENDS(GIO gobject glib)
@@ -656,6 +655,12 @@ foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
_GTK2_ADD_TARGET_LIBRARIES(CAIRO ${FREETYPE_LIBRARIES})
_GTK2_ADD_TARGET_DEPENDS(PANGO gobject glib)
_GTK2_ADD_TARGET_DEPENDS(PANGOCAIRO pango cairo gobject glib)
+ _GTK2_ADD_TARGET_DEPENDS(PANGOFT2 pango gobject glib)
+ _GTK2_ADD_TARGET_INCLUDE_DIRS(PANGOFT2 ${FREETYPE_INCLUDE_DIRS} ${GTK2_FONTCONFIG_INCLUDE_DIRS})
+ _GTK2_ADD_TARGET_LIBRARIES(PANGOFT2 ${FREETYPE_LIBRARIES})
+ _GTK2_ADD_TARGET_DEPENDS(PANGOXFT pangoft2 pango gobject glib)
+ _GTK2_ADD_TARGET_INCLUDE_DIRS(PANGOXFT ${FREETYPE_INCLUDE_DIRS} ${GTK2_FONTCONFIG_INCLUDE_DIRS})
+ _GTK2_ADD_TARGET_LIBRARIES(PANGOXFT ${FREETYPE_LIBRARIES})
_GTK2_ADD_TARGET_DEPENDS(GDK pangocairo pango cairo gdk_pixbuf gobject glib)
_GTK2_ADD_TARGET_DEPENDS(GTK gdk atk gio pangoft2 pangocairo pango cairo gdk_pixbuf gthread gobject glib)
@@ -700,7 +705,7 @@ foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
_GTK2_FIND_LIBRARY (SIGC++ sigc true true)
_GTK2_ADJUST_LIB_VARS (SIGC++)
- _GTK2_ADD_TARGET_DEPENDS(GLIBMM gobject sigc glib)
+ _GTK2_ADD_TARGET_DEPENDS(GLIBMM gobject sigc++ glib)
_GTK2_ADD_TARGET_DEPENDS(GIOMM gio glibmm gobject sigc glib)
_GTK2_ADD_TARGET_DEPENDS(ATKMM atk glibmm gobject sigc glib)
_GTK2_ADD_TARGET_DEPENDS(CAIROMM cairo sigc++)
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7316bc897124c8c77eb4f0a24966dae83993a8ca
commit 7316bc897124c8c77eb4f0a24966dae83993a8ca
Author: Daniele E. Domenichelli <daniele.domenichelli at iit.it>
AuthorDate: Fri Aug 9 10:46:10 2013 +0200
Commit: Daniele E. Domenichelli <daniele.domenichelli at iit.it>
CommitDate: Fri Aug 9 16:52:21 2013 +0200
FindGTK2: Link freetype libs to targets including freetype includes
diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake
index d5b0f35..70f419b 100644
--- a/Modules/FindGTK2.cmake
+++ b/Modules/FindGTK2.cmake
@@ -477,6 +477,22 @@ function(_GTK2_ADD_TARGET_INCLUDE_DIRS _var)
endif()
endfunction()
+function(_GTK2_ADD_TARGET_LIBRARIES _var)
+ if(GTK2_DEBUG)
+ message(STATUS "[FindGTK2.cmake:${CMAKE_CURRENT_LIST_LINE}] "
+ "_GTK2_ADD_TARGET_LIBRARIES( ${_var} )")
+ endif()
+
+ string(TOLOWER "${_var}" _basename)
+
+ if(TARGET GTK2::${_basename})
+ set_property(TARGET GTK2::${_basename} APPEND PROPERTY INTERFACE_LINK_LIBRARIES "${ARGN}")
+ foreach(_library ${ARGN})
+ set_property(TARGET GTK2::${_basename} APPEND PROPERTY IMPORTED_LINK_INTERFACE_LIBRARIES_$ "${_library}")
+ endforeach()
+ endif()
+endfunction()
+
#=============================================================
#
@@ -637,6 +653,7 @@ foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
_GTK2_ADD_TARGET_DEPENDS(GMODULE glib)
_GTK2_ADD_TARGET_DEPENDS(GDK_PIXBUF gobject glib)
_GTK2_ADD_TARGET_INCLUDE_DIRS(CAIRO ${FREETYPE_INCLUDE_DIRS} ${GTK2_FONTCONFIG_INCLUDE_DIRS})
+ _GTK2_ADD_TARGET_LIBRARIES(CAIRO ${FREETYPE_LIBRARIES})
_GTK2_ADD_TARGET_DEPENDS(PANGO gobject glib)
_GTK2_ADD_TARGET_DEPENDS(PANGOCAIRO pango cairo gobject glib)
_GTK2_ADD_TARGET_DEPENDS(GDK pangocairo pango cairo gdk_pixbuf gobject glib)
@@ -690,8 +707,10 @@ foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
_GTK2_ADD_TARGET_DEPENDS(PANGOMM glibmm cairomm pangocairo sigc++ pango cairo gobject glib)
_GTK2_ADD_TARGET_DEPENDS(GDKMM giomm pangomm gtk glibmm cairomm sigc++ gdk atk gio pangoft2 pangocairo gdk_pixbuf cairo pango gobject glib)
_GTK2_ADD_TARGET_INCLUDE_DIRS(GDKMM ${FREETYPE_INCLUDE_DIRS} ${GTK2_FONTCONFIG_INCLUDE_DIRS})
+ _GTK2_ADD_TARGET_LIBRARIES(GDKMM ${FREETYPE_LIBRARIES})
_GTK2_ADD_TARGET_DEPENDS(GTKMM atkmm gdkmm giomm pangomm gtk glibmm cairomm sigc++ gdk atk gio pangoft2 pangocairo gdk_pixbuf cairo pango gthread gobject glib)
_GTK2_ADD_TARGET_INCLUDE_DIRS(GTKMM ${FREETYPE_INCLUDE_DIRS} ${GTK2_FONTCONFIG_INCLUDE_DIRS})
+ _GTK2_ADD_TARGET_LIBRARIES(GTKMM ${FREETYPE_LIBRARIES})
elseif(_GTK2_component STREQUAL "glade")
@@ -700,6 +719,7 @@ foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
_GTK2_ADJUST_LIB_VARS (GLADE)
_GTK2_ADD_TARGET_DEPENDS(GLADE gtk gdk atk gio pangoft2 pangocairo gdk_pixbuf cairo pango gobject glib)
_GTK2_ADD_TARGET_INCLUDE_DIRS(GLADE ${FREETYPE_INCLUDE_DIRS} ${GTK2_FONTCONFIG_INCLUDE_DIRS})
+ _GTK2_ADD_TARGET_LIBRARIES(GLADE ${FREETYPE_LIBRARIES})
elseif(_GTK2_component STREQUAL "glademm")
@@ -709,6 +729,7 @@ foreach(_GTK2_component ${GTK2_FIND_COMPONENTS})
_GTK2_ADJUST_LIB_VARS (GLADEMM)
_GTK2_ADD_TARGET_DEPENDS(GLADEMM gtkmm glade atkmm gdkmm giomm pangomm glibmm cairomm sigc++ gtk gdk atk gio pangoft pangocairo gdk_pixbuf cairo pango gthread gobject glib)
_GTK2_ADD_TARGET_INCLUDE_DIRS(GLADEMM ${FREETYPE_INCLUDE_DIRS} ${GTK2_FONTCONFIG_INCLUDE_DIRS})
+ _GTK2_ADD_TARGET_LIBRARIES(GLADEMM ${FREETYPE_LIBRARIES})
else()
message(FATAL_ERROR "Unknown GTK2 component ${_component}")
-----------------------------------------------------------------------
Summary of changes:
Modules/FindGTK2.cmake | 44 +++-
Tests/CMakeLists.txt | 31 +--
Tests/GTK2Gtk/CMakeLists.txt | 10 -
Tests/GTK2GtkMM/CMakeLists.txt | 10 -
Tests/GTK2GtkMM/main.cpp | 13 -
Tests/GTK2Targets/CMakeLists.txt | 287 ++++++++++++++++++++
Tests/GTK2Targets/atk/CMakeLists.txt | 10 +
Tests/GTK2Targets/atk/main.c | 9 +
Tests/GTK2Targets/atkmm/CMakeLists.txt | 10 +
Tests/GTK2Targets/atkmm/main.cpp | 8 +
Tests/GTK2Targets/cairo/CMakeLists.txt | 10 +
Tests/GTK2Targets/cairo/main.c | 52 ++++
Tests/GTK2Targets/cairomm/CMakeLists.txt | 10 +
Tests/GTK2Targets/cairomm/main.cpp | 62 +++++
Tests/GTK2Targets/gdk/CMakeLists.txt | 10 +
Tests/GTK2Targets/gdk/main.c | 7 +
Tests/GTK2Targets/gdk_pixbuf/CMakeLists.txt | 10 +
Tests/GTK2Targets/gdk_pixbuf/main.c | 10 +
Tests/GTK2Targets/gdkmm/CMakeLists.txt | 10 +
Tests/GTK2Targets/gdkmm/main.cpp | 7 +
Tests/GTK2Targets/gio/CMakeLists.txt | 10 +
Tests/GTK2Targets/gio/main.c | 8 +
Tests/GTK2Targets/giomm/CMakeLists.txt | 10 +
Tests/GTK2Targets/giomm/main.cpp | 7 +
Tests/GTK2Targets/glib/CMakeLists.txt | 10 +
Tests/GTK2Targets/glib/main.c | 11 +
Tests/GTK2Targets/glibmm/CMakeLists.txt | 10 +
Tests/GTK2Targets/glibmm/main.cpp | 84 ++++++
Tests/GTK2Targets/gmodule/CMakeLists.txt | 10 +
Tests/GTK2Targets/gmodule/main.c | 7 +
Tests/GTK2Targets/gobject/CMakeLists.txt | 10 +
Tests/GTK2Targets/gobject/main.c | 72 +++++
Tests/GTK2Targets/gthread/CMakeLists.txt | 10 +
Tests/GTK2Targets/gthread/main.c | 13 +
Tests/GTK2Targets/gtk/CMakeLists.txt | 10 +
Tests/{GTK2Gtk => GTK2Targets/gtk}/main.c | 0
Tests/GTK2Targets/gtkmm/CMakeLists.txt | 10 +
.../gtkmm}/helloworld.cpp | 0
.../{GTK2GtkMM => GTK2Targets/gtkmm}/helloworld.h | 0
Tests/GTK2Targets/gtkmm/main.cpp | 13 +
Tests/GTK2Targets/pango/CMakeLists.txt | 10 +
Tests/GTK2Targets/pango/main.c | 7 +
Tests/GTK2Targets/pangocairo/CMakeLists.txt | 10 +
Tests/GTK2Targets/pangocairo/main.c | 72 +++++
Tests/GTK2Targets/pangoft2/CMakeLists.txt | 10 +
Tests/GTK2Targets/pangoft2/main.c | 8 +
Tests/GTK2Targets/pangomm/CMakeLists.txt | 10 +
Tests/GTK2Targets/pangomm/main.cpp | 8 +
Tests/GTK2Targets/pangoxft/CMakeLists.txt | 10 +
Tests/GTK2Targets/pangoxft/main.c | 7 +
Tests/GTK2Targets/sigc++/CMakeLists.txt | 10 +
Tests/GTK2Targets/sigc++/main.cpp | 30 ++
52 files changed, 1048 insertions(+), 69 deletions(-)
delete mode 100644 Tests/GTK2Gtk/CMakeLists.txt
delete mode 100644 Tests/GTK2GtkMM/CMakeLists.txt
delete mode 100644 Tests/GTK2GtkMM/main.cpp
create mode 100644 Tests/GTK2Targets/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/atk/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/atk/main.c
create mode 100644 Tests/GTK2Targets/atkmm/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/atkmm/main.cpp
create mode 100644 Tests/GTK2Targets/cairo/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/cairo/main.c
create mode 100644 Tests/GTK2Targets/cairomm/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/cairomm/main.cpp
create mode 100644 Tests/GTK2Targets/gdk/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/gdk/main.c
create mode 100644 Tests/GTK2Targets/gdk_pixbuf/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/gdk_pixbuf/main.c
create mode 100644 Tests/GTK2Targets/gdkmm/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/gdkmm/main.cpp
create mode 100644 Tests/GTK2Targets/gio/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/gio/main.c
create mode 100644 Tests/GTK2Targets/giomm/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/giomm/main.cpp
create mode 100644 Tests/GTK2Targets/glib/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/glib/main.c
create mode 100644 Tests/GTK2Targets/glibmm/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/glibmm/main.cpp
create mode 100644 Tests/GTK2Targets/gmodule/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/gmodule/main.c
create mode 100644 Tests/GTK2Targets/gobject/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/gobject/main.c
create mode 100644 Tests/GTK2Targets/gthread/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/gthread/main.c
create mode 100644 Tests/GTK2Targets/gtk/CMakeLists.txt
rename Tests/{GTK2Gtk => GTK2Targets/gtk}/main.c (100%)
create mode 100644 Tests/GTK2Targets/gtkmm/CMakeLists.txt
rename Tests/{GTK2GtkMM => GTK2Targets/gtkmm}/helloworld.cpp (100%)
rename Tests/{GTK2GtkMM => GTK2Targets/gtkmm}/helloworld.h (100%)
create mode 100644 Tests/GTK2Targets/gtkmm/main.cpp
create mode 100644 Tests/GTK2Targets/pango/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/pango/main.c
create mode 100644 Tests/GTK2Targets/pangocairo/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/pangocairo/main.c
create mode 100644 Tests/GTK2Targets/pangoft2/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/pangoft2/main.c
create mode 100644 Tests/GTK2Targets/pangomm/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/pangomm/main.cpp
create mode 100644 Tests/GTK2Targets/pangoxft/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/pangoxft/main.c
create mode 100644 Tests/GTK2Targets/sigc++/CMakeLists.txt
create mode 100644 Tests/GTK2Targets/sigc++/main.cpp
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list