diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-01-24 11:03:06 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-01-24 11:03:06 +0100 |
commit | b683ce2789d95b2e9f221e75adc30efd91cfb901 (patch) | |
tree | 7903b95887c3fbb995ec2e6a99b027053e617adf /CMakeLists.txt | |
parent | 73201cab74e84e5372b6c4a1f72f7e70df5c0d5a (diff) |
Imported Upstream version 0.5.7upstream/0.5.7
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 55 |
1 files changed, 10 insertions, 45 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c7729e..cf015a2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,24 +26,13 @@ ensure_vala_version("0.11.0" MINIMUM) find_package(PkgConfig) # check whether GTK3 is supported -pkg_check_modules(GTK3 gtk+-3.0) - -if (${GTK3_FOUND}) - pkg_check_modules(INDICATOR3 appindicator3-0.1) - pkg_check_modules(UNIQUE REQUIRED unique-3.0) - pkg_check_modules(WNCK REQUIRED libwnck-3.0) - pkg_check_modules(BAMF REQUIRED libbamf3) -else (${GTK3_FOUND}) - pkg_check_modules(GTK2 REQUIRED gtk+-2.0) - pkg_check_modules(INDICATOR appindicator-0.1) - pkg_check_modules(UNIQUE REQUIRED unique-1.0) - pkg_check_modules(WNCK REQUIRED libwnck-1.0) - pkg_check_modules(BAMF REQUIRED libbamf) -endif (${GTK3_FOUND}) - +pkg_check_modules(GTK3 REQUIRED gtk+-3.0) +pkg_check_modules(INDICATOR3 appindicator3-0.1) +pkg_check_modules(WNCK REQUIRED libwnck-3.0) +pkg_check_modules(BAMF REQUIRED libbamf3) pkg_check_modules(GIO REQUIRED gio-unix-2.0) pkg_check_modules(CAIRO REQUIRED cairo) -pkg_check_modules(GEE REQUIRED gee-1.0) +pkg_check_modules(GEE REQUIRED gee-0.8) pkg_check_modules(X11 REQUIRED x11) pkg_check_modules(XML REQUIRED libxml-2.0) pkg_check_modules(XTST REQUIRED xtst) @@ -54,7 +43,6 @@ find_library(GTHREAD_LIB gthread-2.0) set(CFLAGS ${GIO_CFLAGS} - ${GTK2_CFLAGS} ${GTK2_CFLAGS_OTHER} ${GTK3_CFLAGS} ${GTK3_CFLAGS_OTHER} ${CAIRO_CFLAGS} ${CAIRO_CFLAGS_OTHER} ${GEE_CFLAGS} ${CAIRO_CFLAGS_OTHER} @@ -66,11 +54,6 @@ set(CFLAGS # -g ) -# fallback to gtk2 if gtk3 wasn't found -if (${GTK3_FOUND}) - LIST(APPEND CFLAGS -DHAVE_GTK_3) -endif (${GTK3_FOUND}) - # fallback to gnome-menus2 if gnome-menus3 wasn't found if (${GMENU3_FOUND}) LIST(APPEND CFLAGS -DHAVE_GMENU_3) @@ -90,7 +73,6 @@ add_definitions(${CFLAGS}) set(LIBS ${GIO_LIBRARIES} - ${GTK2_LIBRARIES} ${GTK3_LIBRARIES} ${CAIRO_LIBRARIES} ${GEE_LIBRARIES} @@ -100,7 +82,6 @@ set(LIBS ${XTST_LIBRARIES} ${GMENU_LIBRARIES} ${GMENU3_LIBRARIES} - ${UNIQUE_LIBRARIES} ${X11_LIBRARIES} ${WNCK_LIBRARIES} ${BAMF_LIBRARIES} @@ -111,7 +92,6 @@ link_libraries(${LIBS}) set(LIB_PATHS ${GIO_LIBRARY_DIRS} - ${GTK2_LIBRARY_DIRS} ${GTK3_LIBRARY_DIRS} ${CAIRO_LIBRARY_DIRS} ${GEE_LIBRARY_DIRS} @@ -121,7 +101,6 @@ set(LIB_PATHS ${XTST_LIBRARY_DIRS} ${GMENU_LIBRARY_DIRS} ${GMENU3_LIBRARY_DIRS} - ${UNIQUE_LIBRARY_DIRS} ${X11_LIBRARY_DIRS} ${WNCK_LIBRARY_DIRS} ${BAMF_LIBRARY_DIRS} @@ -130,7 +109,6 @@ link_directories(${LIB_PATHS}) set(INCLUDE_PATHS ${GIO_INCLUDE_DIRS} - ${GTK2_INCLUDE_DIRS} ${GTK3_INCLUDE_DIRS} ${CAIRO_INCLUDE_DIRS} ${GEE_INCLUDE_DIRS} @@ -140,7 +118,6 @@ set(INCLUDE_PATHS ${XTST_INCLUDE_DIRS} ${GMENU_INCLUDE_DIRS} ${GMENU3_INCLUDE_DIRS} - ${UNIQUE_INCLUDE_DIRS} ${X11_INCLUDE_DIRS} ${BAMF_INCLUDE_DIRS} ${WNCK_INCLUDE_DIRS} @@ -154,8 +131,12 @@ include_directories(${INCLUDE_PATHS}) set(EXECUTABLE_OUTPUT_PATH ${gnomepie_SOURCE_DIR}) set(VALA_PKGS + gtk+-3.0 + gdk-x11-3.0 + libwnck-3.0 + libbamf3 cairo - gee-1.0 + gee-0.8 x11 gio-unix-2.0 posix @@ -177,20 +158,6 @@ else (${GMENU3_FOUND}) LIST(APPEND VALA_PKGS libgnome-menu) endif (${GMENU3_FOUND}) -if (${GTK3_FOUND}) - LIST(APPEND VALA_PKGS gtk+-3.0) - LIST(APPEND VALA_PKGS gdk-x11-3.0) - LIST(APPEND VALA_PKGS libbamf3) - LIST(APPEND VALA_PKGS libwnck-3.0) - LIST(APPEND VALA_PKGS unique-3.0) -else (${GTK3_FOUND}) - LIST(APPEND VALA_PKGS gtk+-2.0) - LIST(APPEND VALA_PKGS gdk-x11-2.0) - LIST(APPEND VALA_PKGS bamf) - LIST(APPEND VALA_PKGS libwnck-1.0) - LIST(APPEND VALA_PKGS unique-1.0) -endif (${GTK3_FOUND}) - add_subdirectory(src) ################################################################ @@ -214,7 +181,6 @@ message( "Summary:" ) message( " EXECUTABLE_OUTPUT_PATH = ${EXECUTABLE_OUTPUT_PATH}" ) message( " VALA_EXECUTABLE = ${VALA_EXECUTABLE}" ) message( "Libs:" ) -message( " GTK2_LIBRARIES = ${GTK2_LIBRARIES}" ) message( " GTK3_LIBRARIES = ${GTK3_LIBRARIES}" ) message( " CAIRO_LIBRARIES = ${CAIRO_LIBRARIES}" ) message( " GEE_LIBRARIES = ${GEE_LIBRARIES}" ) @@ -224,7 +190,6 @@ message( " XML_LIBRARIES = ${XML_LIBRARIES}" ) message( " XTST_LIBRARIES = ${XTST_LIBRARIES}" ) message( " GMENU_LIBRARIES = ${GMENU_LIBRARIES}" ) message( " GMENU3_LIBRARIES = ${GMENU3_LIBRARIES}" ) -message( " UNIQUE_LIBRARIES = ${UNIQUE_LIBRARIES}" ) message( " X11_LIBRARIES = ${X11_LIBRARIES}" ) message( " BAMF_LIBRARIES = ${BAMF_LIBRARIES}" ) message( " WNCK_LIBRARIES = ${WNCK_LIBRARIES}" ) |