grim/guifications3

moved gflib-ui to the new cmake module
cmake
2010-12-15, Gary Kramlich
47e19b83725e
Parents 9b0b5064a47a
Children b6418db658c1
moved gflib-ui to the new cmake module
--- a/gflib-ui/CMakeLists.txt Wed Dec 15 19:17:54 2010 -0600
+++ b/gflib-ui/CMakeLists.txt Wed Dec 15 19:18:02 2010 -0600
@@ -1,88 +1,9 @@
cmake_minimum_required(VERSION 2.8)
-###############################################################################
-# Project Info
-###############################################################################
-project(gflib-ui C)
-
-set(GFLIB_UI_MAJOR_VERSION 0)
-set(GFLIB_UI_MINOR_VERSION 0)
-set(GFLIB_UI_MICRO_VERSION 1)
-set(GFLIB_UI_EXTRA_VERSION dev)
-
-set(VERSION ${GFLIB_UI_MAJOR_VERSION}.${GFLIB_UI_MINOR_VERSION}.${GFLIB_UI_MICRO_VERSION}${GFLIB_UI_EXTRA_VERSION})
-
-###############################################################################
-# Dependencies
-###############################################################################
-include(FindPkgConfig)
-
-pkg_check_modules(GLIB REQUIRED
- glib-2.0>=2.16.0
- gobject-2.0>=2.16.0
- gthread-2.0>=2.16.0
-)
-
-pkg_check_modules(GFLIB REQUIRED gflib)
+include(gflib)
-find_program(GFLIB_GENHEADER
- NAMES gflib-genheader
- DOC "gflib-genheader executable"
-)
-mark_as_advanced(GFLIB_GENHEADER)
-
-###############################################################################
-# Build Info
-###############################################################################
-include_directories(
- ${CMAKE_SOURCE_DIR}
- ${CMAKE_SOURCE_DIR}/gflib-ui
- ${CMAKE_BINARY_DIR}
- ${GLIB_INCLUDE_DIRS}
- ${GFLIB_INCLUDE_DIRS}
-)
+GFLIB_LIBRARY_PROJECT(gflib-ui 0 0 1 dev)
-link_directories(
- ${GLIB_LIBRARY_DIRS}
- ${GFLIB_LIBRARY_DIRS}
-)
-
-add_definitions(
- -DGETTEXT_PACKAGE="gflib-ui"
- -DDATADIR="${CMAKE_INSTALL_PREFIX}/share"
- -DLIBDIR="${CMAKE_INSTALL_PREFIX}/lib"
- -DLOCALEDIR="${CMAKE_INSTALL_PREFIX}/locale"
- -g -g3 -Wall
-)
-
-###############################################################################
-# Subdirectories
-###############################################################################
add_subdirectory(gflib-ui)
add_subdirectory(tests)
-###############################################################################
-# Config Files
-###############################################################################
-configure_file(gflib-ui.pc.in gflib-ui.pc @ONLY)
-
-###############################################################################
-# Unit Testing
-###############################################################################
-enable_testing()
-
-###############################################################################
-# Install Stuff
-###############################################################################
-# documentation
-install(
- FILES AUTHORS ChangeLog COPYING NEWS README
- DESTINATION share/doc/gflib-ui
-)
-
-# pkg-config files
-install(
- FILES ${CMAKE_CURRENT_BINARY_DIR}/gflib-ui.pc
- DESTINATION lib/pkgconfig
-)
-