tAdd initial build files for CMake (not yet functional). - vaccinewars - be a doctor and try to vaccinate the world
 (HTM) git clone git://src.adamsgaard.dk/vaccinewars
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit e26f3cc0f06b0f72cb9cda70eea4cae8ffc23946
 (DIR) parent 18f060459016a272f2649ce7f6bf4b3a73d7b319
 (HTM) Author: Ben Webb <ben@salilab.org>
       Date:   Fri, 27 Mar 2015 13:41:34 -0700
       
       Add initial build files for CMake (not yet functional).
       
       Diffstat:
         A CMakeLists.txt                      |      28 ++++++++++++++++++++++++++++
         A config-cmake.h.in                   |     202 +++++++++++++++++++++++++++++++
       
       2 files changed, 230 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/CMakeLists.txt b/CMakeLists.txt
       t@@ -0,0 +1,28 @@
       +cmake_minimum_required(VERSION 2.8)
       +
       +project(dopewars)
       +set(VERSION SVN)
       +
       +include(CheckIncludeFiles)
       +
       +# Find generated config.h
       +include_directories("${PROJECT_BINARY_DIR}")
       +
       +check_include_files(fcntl.h HAVE_FCNTL_H)
       +check_include_files(sys/time.h HAVE_SYS_TIME_H)
       +check_include_files(unistd.h HAVE_UNISTD_H)
       +check_include_files(stdlib.h HAVE_STDLIB_H)
       +
       +# Process client options
       +option(GUI_CLIENT "include graphical client (GTK+/Win32)" "probe")
       +option(CURSES_CLIENT "include curses client" "probe")
       +option(GUI_SERVER "use a simple GTK+/Win32 GUI for the server" "probe")
       +
       +option(WITH_ESD "support ESD sound output" "probe")
       +option(WITH_SDL "support SDL sound output" "probe")
       +
       +configure_file("${PROJECT_SOURCE_DIR}/config-cmake.h.in"
       +               "${PROJECT_BINARY_DIR}/config.h")
       +
       +add_executable(dopewars "${PROJECT_SOURCE_DIR}/src/*.c")
       +target_link_libraries(dopewars ${EXTRA_LIBS})
 (DIR) diff --git a/config-cmake.h.in b/config-cmake.h.in
       t@@ -0,0 +1,202 @@
       +/* Use the (n)curses client? */
       +#cmakedefine CURSES_CLIENT
       +
       +/* Define if building under the Cygwin environment */
       +#undef CYGWIN
       +
       +/* The directory containing the docs and sounds */
       +#undef DPDATADIR
       +
       +/* The directory containing the high score file */
       +#undef DPSCOREDIR
       +
       +/* Define to 1 if translation of program messages to the user's native
       +   language is requested. */
       +#undef ENABLE_NLS
       +
       +/* Use the graphical client? */
       +#cmakedefine GUI_CLIENT
       +
       +/* Use a graphical server? */
       +#cmakedefine GUI_SERVER
       +
       +/* Define if the GNU dcgettext() function is already present or preinstalled.
       +   */
       +#undef HAVE_DCGETTEXT
       +
       +/* Define to 1 if you have the <dlfcn.h> header file. */
       +#undef HAVE_DLFCN_H
       +
       +/* Do we have the ESD sound library? */
       +#cmakedefine HAVE_ESD
       +
       +/* Define to 1 if you have the <fcntl.h> header file. */
       +#cmakedefine HAVE_FCNTL_H
       +
       +/* Define to 1 if you have the `fork' function. */
       +#undef HAVE_FORK
       +
       +/* Define to 1 if you have the `gethostbyname' function. */
       +#undef HAVE_GETHOSTBYNAME
       +
       +/* Define to 1 if you have the `getopt' function. */
       +#undef HAVE_GETOPT
       +
       +/* Define to 1 if you have the `getopt_long' function. */
       +#undef HAVE_GETOPT_LONG
       +
       +/* Define if the GNU gettext() function is already present or preinstalled. */
       +#undef HAVE_GETTEXT
       +
       +/* Define if you have the iconv() function and it works. */
       +#undef HAVE_ICONV
       +
       +/* Define to 1 if you have the <inttypes.h> header file. */
       +#undef HAVE_INTTYPES_H
       +
       +/* Define to 1 if you have the `curses' library (-lcurses). */
       +#undef HAVE_LIBCURSES
       +
       +/* Define to 1 if you have the `cur_colr' library (-lcur_colr). */
       +#undef HAVE_LIBCUR_COLR
       +
       +/* Define to 1 if you have the `ncurses' library (-lncurses). */
       +#undef HAVE_LIBNCURSES
       +
       +/* Define to 1 if you have the <memory.h> header file. */
       +#undef HAVE_MEMORY_H
       +
       +/* Do we have the SDL_mixer sound library? */
       +#undef HAVE_SDL_MIXER
       +
       +/* Define to 1 if you have the `select' function. */
       +#undef HAVE_SELECT
       +
       +/* Define to 1 if you have the `socket' function. */
       +#undef HAVE_SOCKET
       +
       +/* Do we have the socklen_t data type? */
       +#undef HAVE_SOCKLEN_T
       +
       +/* Define to 1 if you have the <stdint.h> header file. */
       +#undef HAVE_STDINT_H
       +
       +/* Define to 1 if you have the <stdlib.h> header file. */
       +#undef HAVE_STDLIB_H
       +
       +/* Define to 1 if you have the `strdup' function. */
       +#undef HAVE_STRDUP
       +
       +/* Define to 1 if you have the `strftime' function. */
       +#undef HAVE_STRFTIME
       +
       +/* Define to 1 if you have the <strings.h> header file. */
       +#undef HAVE_STRINGS_H
       +
       +/* Define to 1 if you have the <string.h> header file. */
       +#undef HAVE_STRING_H
       +
       +/* Define to 1 if you have the `strstr' function. */
       +#undef HAVE_STRSTR
       +
       +/* Define to 1 if you have the <sys/stat.h> header file. */
       +#undef HAVE_SYS_STAT_H
       +
       +/* Define to 1 if you have the <sys/time.h> header file. */
       +#cmakedefine HAVE_SYS_TIME_H
       +
       +/* Define to 1 if you have the <sys/types.h> header file. */
       +#undef HAVE_SYS_TYPES_H
       +
       +/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
       +#undef HAVE_SYS_WAIT_H
       +
       +/* Define to 1 if you have the <unistd.h> header file. */
       +#cmakedefine HAVE_UNISTD_H
       +
       +/* Do we have the Windows multimedia system? */
       +#undef HAVE_WINMM
       +
       +/* The directory containing locale files */
       +#undef LOCALEDIR
       +
       +/* Define to the sub-directory in which libtool stores uninstalled libraries.
       +   */
       +#undef LT_OBJDIR
       +
       +/* Define if dopewars should use TCP/IP networking to connect to servers */
       +#undef NETWORKING
       +
       +/* Name of package */
       +#undef PACKAGE
       +
       +/* Define to the address where bug reports for this package should be sent. */
       +#undef PACKAGE_BUGREPORT
       +
       +/* Define to the full name of this package. */
       +#undef PACKAGE_NAME
       +
       +/* Define to the full name and version of this package. */
       +#undef PACKAGE_STRING
       +
       +/* Define to the one symbol short name of this package. */
       +#undef PACKAGE_TARNAME
       +
       +/* Define to the home page for this package. */
       +#undef PACKAGE_URL
       +
       +/* Define to the version of this package. */
       +#undef PACKAGE_VERSION
       +
       +/* The directory containing the plugins */
       +#undef PLUGINDIR
       +
       +/* Define if using dynamically-loaded sound modules */
       +#undef PLUGINS
       +
       +/* The size of `long long', as computed by sizeof. */
       +#undef SIZEOF_LONG_LONG
       +
       +/* Define to 1 if you have the ANSI C header files. */
       +#undef STDC_HEADERS
       +
       +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
       +#undef TIME_WITH_SYS_TIME
       +
       +/* Define to 1 if your <sys/time.h> declares `struct tm'. */
       +#undef TM_IN_SYS_TIME
       +
       +/* Enable extensions on AIX 3, Interix.  */
       +#ifndef _ALL_SOURCE
       +# undef _ALL_SOURCE
       +#endif
       +/* Enable GNU extensions on systems that have them.  */
       +#ifndef _GNU_SOURCE
       +# undef _GNU_SOURCE
       +#endif
       +/* Enable threading extensions on Solaris.  */
       +#ifndef _POSIX_PTHREAD_SEMANTICS
       +# undef _POSIX_PTHREAD_SEMANTICS
       +#endif
       +/* Enable extensions on HP NonStop.  */
       +#ifndef _TANDEM_SOURCE
       +# undef _TANDEM_SOURCE
       +#endif
       +/* Enable general extensions on Solaris.  */
       +#ifndef __EXTENSIONS__
       +# undef __EXTENSIONS__
       +#endif
       +
       +
       +/* Version number of package */
       +#cmakedefine VERSION
       +
       +/* Define to 1 if on MINIX. */
       +#undef _MINIX
       +
       +/* Define to 2 if the system does not provide POSIX.1 features except with
       +   this defined. */
       +#undef _POSIX_1_SOURCE
       +
       +/* Define to 1 if you need to in order for `stat' and other things to work. */
       +#undef _POSIX_SOURCE