Commit 00e6e8c7 authored by Murray Cumming's avatar Murray Cumming
Browse files

Add cmake build system.

parent 98fb9450
......@@ -26,7 +26,6 @@ Makefile.in
/config.status
/config.log
/config.h
/config.h.in
/config.guess
/autom4te.cache
/aclocal.m4
......
This diff is collapsed.
# - Try to find GettextPO
#
# Once done this will define
#
# GETTEXTPO_FOUND - System has GETTEXTPO
# GETTEXTPO_INCLUDE_DIR - The GETTEXTPO include directory
# GETTEXTPO_LIBRARY - The library needed to use GETTEXTPO
# Copyright (c) 2012, Ni Hui <shuizhuyuanluo@126.com>
# Based off FindLibXml2.cmake from CMake 2.6.4 by Alexander Neundorf <neundorf@kde.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
if(GETTEXTPO_INCLUDE_DIR AND GETTEXTPO_LIBRARY)
# in cache already
set(GETTEXTPO_FIND_QUIETLY TRUE)
endif(GETTEXTPO_INCLUDE_DIR AND GETTEXTPO_LIBRARY)
find_path(GETTEXTPO_INCLUDE_DIR gettext-po.h)
find_library(GETTEXTPO_LIBRARY NAMES gettextpo)
include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set GETTEXTPO_FOUND to TRUE if
# all listed variables are TRUE
find_package_handle_standard_args(GettextPO DEFAULT_MSG GETTEXTPO_LIBRARY GETTEXTPO_INCLUDE_DIR)
mark_as_advanced(GETTEXTPO_INCLUDE_DIR GETTEXTPO_LIBRARY)
# glom_pkg_check_variable() - a function to retrieve pkg-config variables in CMake
#
# Based on: http://bloerg.net/2015/03/06/pkg-config-variables-in-cmake.html
# with a glom_ prefix to avoid it looking like an official CMake function
# when used in CMakeList.txt
find_package(PkgConfig REQUIRED)
function(glom_pkg_check_variable _pkg _name)
string(TOUPPER ${_pkg} _pkg_upper)
string(TOUPPER ${_name} _name_upper)
string(REPLACE "-" "_" _pkg_upper ${_pkg_upper})
string(REPLACE "-" "_" _name_upper ${_name_upper})
set(_output_name "${_pkg_upper}_${_name_upper}")
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=${_name} ${_pkg}
OUTPUT_VARIABLE _pkg_result
OUTPUT_STRIP_TRAILING_WHITESPACE)
set("${_output_name}" "${_pkg_result}" CACHE STRING "pkg-config variable ${_name} of ${_pkg}")
endfunction()
/* Define to 1 if translation of program messages to the user's native
language is requested. */
#cmakedefine ENABLE_NLS
/* Define to the file extension of executables on the target.
* Note: We use define instead of cmakedefine, to let this be an empty string. */
#define EXEEXT "@EXEEXT@"
/* Define to the gettext package name. */
#cmakedefine GETTEXT_PACKAGE "@GETTEXT_PACKAGE@"
/* Define to the Glom ABI version string. */
#cmakedefine GLOM_ABI_VERSION "@GLOM_ABI_VERSION@"
/* Define to the Glom ABI version with '.' replaced by '_'. */
#cmakedefine GLOM_ABI_VERSION_UNDERLINED "@GLOM_ABI_VERSION_UNDERLINED@"
/* Define to disable support for self-hosting and developer mode. */
#cmakedefine GLOM_ENABLE_CLIENT_ONLY
/* Whether to enable support for MySQL databases. */
#cmakedefine GLOM_ENABLE_MYSQL
/* Whether to enable support for PostgreSQL databases. */
#cmakedefine GLOM_ENABLE_POSTGRESQL @GLOM_ENABLE_POSTGRESQL@
/* Whether to enable support for SQLite databases. */
#cmakedefine GLOM_ENABLE_SQLITE
/* Define to the location of the msgfmt gettext utility. */
#cmakedefine GLOM_MSGFMT
/* Define if libgettextpo provides the new po_xerror_handler struct. */
#cmakedefine HAVE_GETTEXTPO_XERROR
/* Define to the installation prefix of the iso-codes module. */
/* TODO: Avoid duplication with libglom-config.h */
#cmakedefine ISO_CODES_PREFIX "@ISO_CODES_PREFIX@"
/* Define to the location of the MySQL utilities. */
#cmakedefine MYSQL_UTILS_PATH "@MYSQL_UTILS_PATH@"
/* Define to the full name of this package. */
#cmakedefine PACKAGE_NAME
/* Define to the full name and version of this package. */
#cmakedefine PACKAGE_STRING "@PACKAGE_STRING@"
/* Define to the one symbol short name of this package. */
#cmakedefine PACKAGE_TARNAME
/* Define to the home page for this package. */
#cmakedefine PACKAGE_URL
/* Define to the version of this package. */
#cmakedefine PACKAGE_VERSION "@PACKAGE_VERSION@"
/* Define to the location of the PostgreSQL utilities. */
#cmakedefine POSTGRES_UTILS_PATH "@POSTGRES_UTILS_PATH@"
#define GLOM_LOCALEDIR "@GLOM_LOCALEDIR@"
#ifndef GLOM_LIBGLOM_CONFIG_H
#define GLOM_LIBGLOM_CONFIG_H
/* "definition of GLOM_DTD_INSTALL_DIR" */
#cmakedefine GLOM_DTD_INSTALL_DIR
/* Define to 1 if you have the `dcgettext' function. */
#cmakedefine HAVE_DCGETTEXT
/* Define to 1 if you have the <dlfcn.h> header file. */
#cmakedefine HAVE_DLFCN_H
/* Define if the GNU gettext() function is already present or preinstalled. */
#cmakedefine HAVE_GETTEXT
/* Define to 1 if you have the `strptime' function. */
#cmakedefine HAVE_STRPTIME
/* Define to the installation prefix of the iso-codes module. */
#cmakedefine ISO_CODES_PREFIX "@ISO_CODES_PREFIX@"
#endif /* GLOM_LIBGLOM_CONFIG_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment