tDrop experimental CMake support - 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 45a1ba63b5b0501c44c3db154111004ab54221e5
 (DIR) parent 66e285514734be7ba71885e8e178cbfd25ac2180
 (HTM) Author: Ben Webb <ben@salilab.org>
       Date:   Sun, 29 Nov 2020 00:08:12 -0800
       
       Drop experimental CMake support
       
       Our CMake files aren't complete and don't do
       anything our old autoconf/automake setup doesn't,
       so drop them for now.
       
       Diffstat:
         D CMakeLists.txt                      |     144 -------------------------------
         D cmake_modules/FindDL.cmake          |      17 -----------------
         D cmake_modules/FindGLIB.cmake        |     120 -------------------------------
         D cmake_modules/FindLibIntl.cmake     |      60 -------------------------------
         D cmake_modules/LibFindMacros.cmake   |     111 ------------------------------
         D config-cmake.h.in                   |     214 -------------------------------
         D src/curses_client/CMakeLists.txt    |       1 -
         D src/cursesport/CMakeLists.txt       |       1 -
         D src/gtkport/CMakeLists.txt          |       1 -
         D src/gui_client/CMakeLists.txt       |       2 --
         D src/plugins/CMakeLists.txt          |       7 -------
       
       11 files changed, 0 insertions(+), 678 deletions(-)
       ---
 (DIR) diff --git a/CMakeLists.txt b/CMakeLists.txt
       t@@ -1,144 +0,0 @@
       -cmake_minimum_required(VERSION 2.8)
       -
       -project(dopewars)
       -set(VERSION "SVN")
       -
       -include(CheckIncludeFiles)
       -include(CheckFunctionExists)
       -include(GNUInstallDirs)
       -
       -set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
       -    ${PROJECT_SOURCE_DIR}/cmake_modules)
       -include(${PROJECT_SOURCE_DIR}/cmake_modules/FindGLIB.cmake)
       -include(${PROJECT_SOURCE_DIR}/cmake_modules/FindDL.cmake)
       -
       -# Find source headers
       -include_directories("${PROJECT_SOURCE_DIR}/src")
       -
       -# Find generated config.h
       -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DHAVE_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)
       -
       -# Check for socket and select even if networking gets manually
       -# disabled below, since select is used if available for
       -# millisecond sleeping
       -check_function_exists(socket HAVE_SOCKET)
       -check_function_exists(gethostbyname HAVE_GETHOSTBYNAME)
       -check_function_exists(select HAVE_SELECT)
       -if (${HAVE_SOCKET} AND ${HAVE_GETHOSTBYNAME} AND ${HAVE_SELECT})
       -  set(HAVE_NETWORK ON)
       -else()
       -  set(HAVE_NETWORK OFF)
       -endif()
       -
       -# Process client options
       -option(GUI_CLIENT "include graphical client (GTK+/Win32)" ON)
       -option(CURSES_CLIENT "include curses client" ON)
       -option(GUI_SERVER "use a simple GTK+/Win32 GUI for the server" "probe")
       -option(NETWORKING
       -       "should dopewars use TCP/IP networking to connect to servers?"
       -       ${HAVE_NETWORK})
       -
       -option(WITH_ESD "support ESD sound output" ON)
       -option(WITH_SDL "support SDL sound output" ON)
       -option(PLUGINS "use dynamically-loaded sound modules" ON)
       -
       -find_package(GLIB)
       -if (!GLIB_FOUND)
       -  message(FATAL_ERROR "GLib is required")
       -else()
       -  set(EXTRA_LIBS ${EXTRA_LIBS} ${GLIB_LIBRARIES})
       -  include_directories(${GLIB_INCLUDE_DIRS})
       -endif()
       -
       -find_package(LibIntl)
       -if (LibIntl_FOUND)
       -  set(EXTRA_LIBS ${EXTRA_LIBS} ${LibIntl_LIBRARIES})
       -  include_directories(${LibIntl_INCLUDE_DIRS})
       -endif()
       -
       -if (CURSES_CLIENT)
       -  find_package(Curses)
       -  if (CURSES_FOUND)
       -    add_subdirectory(src/curses_client)
       -    add_subdirectory(src/cursesport)
       -    set(EXTRA_LIBS ${EXTRA_LIBS} cursesclient cursesport ${CURSES_LIBRARIES})
       -    include_directories(${CURSES_INCLUDE_DIRS})
       -  else()
       -    message(WARNING "Cannot find any curses-type library")
       -    set(CURSES_CLIENT OFF)
       -  endif()
       -endif()
       -
       -if (GUI_CLIENT OR GUI_SERVER)
       -  find_package(GTK2 2.0 COMPONENTS gtk)
       -  if (GTK2_FOUND)
       -    set(EXTRA_LIBS ${EXTRA_LIBS} ${GTK2_LIBRARIES})
       -    include_directories(${GTK2_INCLUDE_DIRS})
       -    if (GUI_CLIENT)
       -      add_subdirectory(src/gui_client)
       -      set(EXTRA_LIBS ${EXTRA_LIBS} guiclient)
       -    endif()
       -    add_subdirectory(src/gtkport)
       -    set(EXTRA_LIBS ${EXTRA_LIBS} gtkport)
       -  else()
       -    message(WARNING "Cannot find GTK+; not building GUI client or server")
       -    set(GUI_CLIENT OFF)
       -    set(GUI_SERVER OFF)
       -  endif()
       -endif()
       -
       -if (PLUGINS)
       -  find_package(DL)
       -  if (DL_FOUND)
       -    include_directories(${DL_INCLUDE_DIR})
       -    set(EXTRA_LIBS ${EXTRA_LIBS} ${DL_LIBRARIES})
       -  else()
       -    set(PLUGINS OFF)
       -  endif()
       -endif()
       -
       -if (PLUGINS)
       -  # Add esound support if available
       -  find_package(ESD)
       -  if (ESD_FOUND)
       -    include_directories(${ESD_INCLUDE_DIR})
       -    set(SOUND_LIBS ${SOUND_LIBS} ${ESD_LIBRARY})
       -    set(HAVE_ESD ON)
       -  endif()
       -
       -  # Add SDL_mixer sound support if available
       -  find_package(SDL_mixer)
       -  if (SDL_MIXER_FOUND)
       -    include_directories(${SDL_MIXER_INCLUDE_DIRS})
       -    set(SOUND_LIBS ${SOUND_LIBS} ${SDL_MIXER_LIBRARIES})
       -    set(HAVE_SDL_MIXER ON)
       -  endif()
       -endif()
       -
       -add_subdirectory("src/plugins")
       -
       -configure_file("${PROJECT_SOURCE_DIR}/config-cmake.h.in"
       -               "${PROJECT_BINARY_DIR}/config.h")
       -
       -add_executable(dopewars
       -               "${PROJECT_SOURCE_DIR}/src/AIPlayer.c"
       -               "${PROJECT_SOURCE_DIR}/src/error.c"
       -               "${PROJECT_SOURCE_DIR}/src/sound.c"
       -               "${PROJECT_SOURCE_DIR}/src/admin.c"
       -               "${PROJECT_SOURCE_DIR}/src/log.c"
       -               "${PROJECT_SOURCE_DIR}/src/tstring.c"
       -               "${PROJECT_SOURCE_DIR}/src/configfile.c"
       -               "${PROJECT_SOURCE_DIR}/src/message.c"
       -               "${PROJECT_SOURCE_DIR}/src/util.c"
       -               "${PROJECT_SOURCE_DIR}/src/convert.c"
       -               "${PROJECT_SOURCE_DIR}/src/network.c"
       -               "${PROJECT_SOURCE_DIR}/src/dopewars.c"
       -               "${PROJECT_SOURCE_DIR}/src/serverside.c")
       -
       -target_link_libraries(dopewars ${EXTRA_LIBS})
 (DIR) diff --git a/cmake_modules/FindDL.cmake b/cmake_modules/FindDL.cmake
       t@@ -1,17 +0,0 @@
       -# - find where dlopen and friends are located.
       -# DL_FOUND - system has dynamic linking interface available
       -# DL_INCLUDE_DIR - where dlfcn.h is located.
       -# DL_LIBRARIES - libraries needed to use dlopen
       -
       -include(CheckFunctionExists)
       -
       -find_path(DL_INCLUDE_DIR NAMES dlfcn.h)
       -find_library(DL_LIBRARIES NAMES dl)
       -if(DL_LIBRARIES)
       -set(DL_FOUND)
       -else(DL_LIBRARIES)
       -check_function_exists(dlopen DL_FOUND)
       -# If dlopen can be found without linking in dl then dlopen is part
       -# of libc, so don't need to link extra libs.
       -set(DL_LIBRARIES "")
       -endif(DL_LIBRARIES)
 (DIR) diff --git a/cmake_modules/FindGLIB.cmake b/cmake_modules/FindGLIB.cmake
       t@@ -1,120 +0,0 @@
       -# - Try to find Glib and its components (gio, gobject etc)
       -# Once done, this will define
       -#
       -#  GLIB_FOUND - system has Glib
       -#  GLIB_INCLUDE_DIRS - the Glib include directories
       -#  GLIB_LIBRARIES - link these to use Glib
       -#
       -# Optionally, the COMPONENTS keyword can be passed to find_package()
       -# and Glib components can be looked for.  Currently, the following
       -# components can be used, and they define the following variables if
       -# found:
       -#
       -#  gio:             GLIB_GIO_LIBRARIES
       -#  gobject:         GLIB_GOBJECT_LIBRARIES
       -#  gmodule:         GLIB_GMODULE_LIBRARIES
       -#  gthread:         GLIB_GTHREAD_LIBRARIES
       -#
       -# Note that the respective _INCLUDE_DIR variables are not set, since
       -# all headers are in the same directory as GLIB_INCLUDE_DIRS.
       -#
       -# Copyright (C) 2012 Raphael Kubo da Costa <rakuco@webkit.org>
       -#
       -# Redistribution and use in source and binary forms, with or without
       -# modification, are permitted provided that the following conditions
       -# are met:
       -# 1.  Redistributions of source code must retain the above copyright
       -#     notice, this list of conditions and the following disclaimer.
       -# 2.  Redistributions in binary form must reproduce the above copyright
       -#     notice, this list of conditions and the following disclaimer in the
       -#     documentation and/or other materials provided with the distribution.
       -#
       -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND ITS CONTRIBUTORS ``AS
       -# IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
       -# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
       -# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR ITS
       -# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
       -# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
       -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
       -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
       -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
       -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
       -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
       -
       -find_package(PkgConfig)
       -pkg_check_modules(PC_GLIB QUIET glib-2.0)
       -
       -find_library(GLIB_LIBRARIES
       -    NAMES glib-2.0
       -    HINTS ${PC_GLIB_LIBDIR}
       -          ${PC_GLIB_LIBRARY_DIRS}
       -)
       -
       -# Files in glib's main include path may include glibconfig.h, which,
       -# for some odd reason, is normally in $LIBDIR/glib-2.0/include.
       -get_filename_component(_GLIB_LIBRARY_DIR ${GLIB_LIBRARIES} PATH)
       -find_path(GLIBCONFIG_INCLUDE_DIR
       -    NAMES glibconfig.h
       -    HINTS ${PC_LIBDIR} ${PC_LIBRARY_DIRS} ${_GLIB_LIBRARY_DIR}
       -          ${PC_GLIB_INCLUDEDIR} ${PC_GLIB_INCLUDE_DIRS}
       -    PATH_SUFFIXES glib-2.0/include
       -)
       -
       -find_path(GLIB_INCLUDE_DIR
       -    NAMES glib.h
       -    HINTS ${PC_GLIB_INCLUDEDIR}
       -          ${PC_GLIB_INCLUDE_DIRS}
       -    PATH_SUFFIXES glib-2.0
       -)
       -
       -set(GLIB_INCLUDE_DIRS ${GLIB_INCLUDE_DIR} ${GLIBCONFIG_INCLUDE_DIR})
       -
       -# Version detection
       -file(READ "${GLIBCONFIG_INCLUDE_DIR}/glibconfig.h" GLIBCONFIG_H_CONTENTS)
       -string(REGEX MATCH "#define GLIB_MAJOR_VERSION ([0-9]+)" _dummy "${GLIBCONFIG_H_CONTENTS}")
       -set(GLIB_VERSION_MAJOR "${CMAKE_MATCH_1}")
       -string(REGEX MATCH "#define GLIB_MINOR_VERSION ([0-9]+)" _dummy "${GLIBCONFIG_H_CONTENTS}")
       -set(GLIB_VERSION_MINOR "${CMAKE_MATCH_1}")
       -string(REGEX MATCH "#define GLIB_MICRO_VERSION ([0-9]+)" _dummy "${GLIBCONFIG_H_CONTENTS}")
       -set(GLIB_VERSION_MICRO "${CMAKE_MATCH_1}")
       -set(GLIB_VERSION "${GLIB_VERSION_MAJOR}.${GLIB_VERSION_MINOR}.${GLIB_VERSION_MICRO}")
       -
       -# Additional Glib components.  We only look for libraries, as not all of them
       -# have corresponding headers and all headers are installed alongside the main
       -# glib ones.
       -foreach (_component ${GLIB_FIND_COMPONENTS})
       -    if (${_component} STREQUAL "gio")
       -        find_library(GLIB_GIO_LIBRARIES NAMES gio-2.0 HINTS ${_GLIB_LIBRARY_DIR})
       -        set(ADDITIONAL_REQUIRED_VARS ${ADDITIONAL_REQUIRED_VARS} GLIB_GIO_LIBRARIES)
       -    elseif (${_component} STREQUAL "gobject")
       -        find_library(GLIB_GOBJECT_LIBRARIES NAMES gobject-2.0 HINTS ${_GLIB_LIBRARY_DIR})
       -        set(ADDITIONAL_REQUIRED_VARS ${ADDITIONAL_REQUIRED_VARS} GLIB_GOBJECT_LIBRARIES)
       -    elseif (${_component} STREQUAL "gmodule")
       -        find_library(GLIB_GMODULE_LIBRARIES NAMES gmodule-2.0 HINTS ${_GLIB_LIBRARY_DIR})
       -        set(ADDITIONAL_REQUIRED_VARS ${ADDITIONAL_REQUIRED_VARS} GLIB_GMODULE_LIBRARIES)
       -    elseif (${_component} STREQUAL "gthread")
       -        find_library(GLIB_GTHREAD_LIBRARIES NAMES gthread-2.0 HINTS ${_GLIB_LIBRARY_DIR})
       -        set(ADDITIONAL_REQUIRED_VARS ${ADDITIONAL_REQUIRED_VARS} GLIB_GTHREAD_LIBRARIES)
       -    elseif (${_component} STREQUAL "gio-unix")
       -        # gio-unix is compiled as part of the gio library, but the include paths
       -        # are separate from the shared glib ones. Since this is currently only used
       -        # by WebKitGTK+ we don't go to extraordinary measures beyond pkg-config.
       -        pkg_check_modules(GIO_UNIX QUIET gio-unix-2.0)
       -    endif ()
       -endforeach ()
       -
       -include(FindPackageHandleStandardArgs)
       -FIND_PACKAGE_HANDLE_STANDARD_ARGS(GLIB REQUIRED_VARS GLIB_INCLUDE_DIRS GLIB_LIBRARIES ${ADDITIONAL_REQUIRED_VARS}
       -                                       VERSION_VAR   GLIB_VERSION)
       -
       -mark_as_advanced(
       -    GLIBCONFIG_INCLUDE_DIR
       -    GLIB_GIO_LIBRARIES
       -    GLIB_GIO_UNIX_LIBRARIES
       -    GLIB_GMODULE_LIBRARIES
       -    GLIB_GOBJECT_LIBRARIES
       -    GLIB_GTHREAD_LIBRARIES
       -    GLIB_INCLUDE_DIR
       -    GLIB_INCLUDE_DIRS
       -    GLIB_LIBRARIES
       -)
 (DIR) diff --git a/cmake_modules/FindLibIntl.cmake b/cmake_modules/FindLibIntl.cmake
       t@@ -1,60 +0,0 @@
       -# - Try to find libintl
       -# Once done, this will define
       -#
       -#  LibIntl_FOUND        - system has libintl
       -#  LibIntl_INCLUDE_DIRS - the libintl include directories
       -#  LibIntl_LIBRARIES    - link these to use libintl
       -
       -include(CheckCSourceCompiles)
       -include(CheckVariableExists)
       -include(LibFindMacros)
       -
       -# Append custom gettext path to CMAKE_PREFIX_PATH
       -# if installed via Mac Hombrew
       -if (CMAKE_HOST_APPLE)
       -    find_program(HOMEBREW_PROG brew)
       -    if (EXISTS ${HOMEBREW_PROG})
       -        execute_process(COMMAND ${HOMEBREW_PROG} --prefix gettext
       -            OUTPUT_STRIP_TRAILING_WHITESPACE
       -            OUTPUT_VARIABLE HOMEBREW_GETTEXT_PREFIX)
       -        list(APPEND CMAKE_PREFIX_PATH "${HOMEBREW_GETTEXT_PREFIX}")
       -    endif()
       -endif()
       -
       -find_path(LibIntl_INCLUDE_DIR
       -    NAMES libintl.h
       -    PATH_SUFFIXES gettext
       -)
       -
       -find_library(LibIntl_LIBRARY
       -    NAMES intl libintl.a
       -)
       -
       -if (LibIntl_INCLUDE_DIR)
       -  set(CMAKE_REQUIRED_INCLUDES "${LibIntl_INCLUDE_DIR}")
       -endif()
       -
       -# This is required because some operating systems don't have a separate
       -# libintl--it is built into glibc.  So we only need to specify the library
       -# if one was actually found.
       -if (LibIntl_LIBRARY)
       -  set(CMAKE_REQUIRED_LIBRARIES "${LibIntl_LIBRARY}")
       -endif()
       -
       -check_c_source_compiles("
       -#include <libintl.h>
       -
       -int main(int argc, char** argv) {
       -  gettext(\"foo\");
       -  bindtextdomain(\"foo\", \"bar\");
       -  bind_textdomain_codeset(\"foo\", \"bar\");
       -  textdomain(\"foo\");
       -}" HAVE_WORKING_LIBINTL)
       -
       -if (HAVE_WORKING_LIBINTL)
       -  check_variable_exists(_nl_msg_cat_cntr HAVE_NL_MSG_CAT_CNTR)
       -endif()
       -
       -set(LibIntl_PROCESS_INCLUDES LibIntl_INCLUDE_DIR)
       -set(LibIntl_PROCESS_LIBS LibIntl_LIBRARY)
       -libfind_process(LibIntl)
 (DIR) diff --git a/cmake_modules/LibFindMacros.cmake b/cmake_modules/LibFindMacros.cmake
       t@@ -1,111 +0,0 @@
       -# Version 1.0 (2013-04-12)
       -# Public Domain, originally written by Lasse Kärkkäinen <tronic@zi.fi>
       -# Published at http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries
       -
       -# If you improve the script, please modify the forementioned wiki page because
       -# I no longer maintain my scripts (hosted as static files at zi.fi). Feel free
       -# to remove this entire header if you use real version control instead.
       -
       -# Changelog:
       -# 2013-04-12  Added version number (1.0) and this header, no other changes
       -# 2009-10-08  Originally published
       -
       -
       -# Works the same as find_package, but forwards the "REQUIRED" and "QUIET" arguments
       -# used for the current package. For this to work, the first parameter must be the
       -# prefix of the current package, then the prefix of the new package etc, which are
       -# passed to find_package.
       -macro (libfind_package PREFIX)
       -  set (LIBFIND_PACKAGE_ARGS ${ARGN})
       -  if (${PREFIX}_FIND_QUIETLY)
       -    set (LIBFIND_PACKAGE_ARGS ${LIBFIND_PACKAGE_ARGS} QUIET)
       -  endif (${PREFIX}_FIND_QUIETLY)
       -  if (${PREFIX}_FIND_REQUIRED)
       -    set (LIBFIND_PACKAGE_ARGS ${LIBFIND_PACKAGE_ARGS} REQUIRED)
       -  endif (${PREFIX}_FIND_REQUIRED)
       -  find_package(${LIBFIND_PACKAGE_ARGS})
       -endmacro (libfind_package)
       -
       -# CMake developers made the UsePkgConfig system deprecated in the same release (2.6)
       -# where they added pkg_check_modules. Consequently I need to support both in my scripts
       -# to avoid those deprecated warnings. Here's a helper that does just that.
       -# Works identically to pkg_check_modules, except that no checks are needed prior to use.
       -macro (libfind_pkg_check_modules PREFIX PKGNAME)
       -  if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
       -    include(UsePkgConfig)
       -    pkgconfig(${PKGNAME} ${PREFIX}_INCLUDE_DIRS ${PREFIX}_LIBRARY_DIRS ${PREFIX}_LDFLAGS ${PREFIX}_CFLAGS)
       -  else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
       -    find_package(PkgConfig)
       -    if (PKG_CONFIG_FOUND)
       -      pkg_check_modules(${PREFIX} ${PKGNAME})
       -    endif (PKG_CONFIG_FOUND)
       -  endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
       -endmacro (libfind_pkg_check_modules)
       -
       -# Do the final processing once the paths have been detected.
       -# If include dirs are needed, ${PREFIX}_PROCESS_INCLUDES should be set to contain
       -# all the variables, each of which contain one include directory.
       -# Ditto for ${PREFIX}_PROCESS_LIBS and library files.
       -# Will set ${PREFIX}_FOUND, ${PREFIX}_INCLUDE_DIRS and ${PREFIX}_LIBRARIES.
       -# Also handles errors in case library detection was required, etc.
       -macro (libfind_process PREFIX)
       -  # Skip processing if already processed during this run
       -  if (NOT ${PREFIX}_FOUND)
       -    # Start with the assumption that the library was found
       -    set (${PREFIX}_FOUND TRUE)
       -
       -    # Process all includes and set _FOUND to false if any are missing
       -    foreach (i ${${PREFIX}_PROCESS_INCLUDES})
       -      if (${i})
       -        set (${PREFIX}_INCLUDE_DIRS ${${PREFIX}_INCLUDE_DIRS} ${${i}})
       -        mark_as_advanced(${i})
       -      else (${i})
       -        set (${PREFIX}_FOUND FALSE)
       -      endif (${i})
       -    endforeach (i)
       -
       -    # Process all libraries and set _FOUND to false if any are missing
       -    foreach (i ${${PREFIX}_PROCESS_LIBS})
       -      if (${i})
       -        set (${PREFIX}_LIBRARIES ${${PREFIX}_LIBRARIES} ${${i}})
       -        mark_as_advanced(${i})
       -      else (${i})
       -        set (${PREFIX}_FOUND FALSE)
       -      endif (${i})
       -    endforeach (i)
       -
       -    # Print message and/or exit on fatal error
       -    if (${PREFIX}_FOUND)
       -      if (NOT ${PREFIX}_FIND_QUIETLY)
       -        message (STATUS "Found ${PREFIX} ${${PREFIX}_VERSION}")
       -      endif (NOT ${PREFIX}_FIND_QUIETLY)
       -    else (${PREFIX}_FOUND)
       -      if (${PREFIX}_FIND_REQUIRED)
       -        foreach (i ${${PREFIX}_PROCESS_INCLUDES} ${${PREFIX}_PROCESS_LIBS})
       -          message("${i}=${${i}}")
       -        endforeach (i)
       -        message (FATAL_ERROR "Required library ${PREFIX} NOT FOUND.\nInstall the library (dev version) and try again. If the library is already installed, use ccmake to set the missing variables manually.")
       -      endif (${PREFIX}_FIND_REQUIRED)
       -    endif (${PREFIX}_FOUND)
       -  endif (NOT ${PREFIX}_FOUND)
       -endmacro (libfind_process)
       -
       -macro(libfind_library PREFIX basename)
       -  set(TMP "")
       -  if(MSVC80)
       -    set(TMP -vc80)
       -  endif(MSVC80)
       -  if(MSVC90)
       -    set(TMP -vc90)
       -  endif(MSVC90)
       -  set(${PREFIX}_LIBNAMES ${basename}${TMP})
       -  if(${ARGC} GREATER 2)
       -    set(${PREFIX}_LIBNAMES ${basename}${TMP}-${ARGV2})
       -    string(REGEX REPLACE "\\." "_" TMP ${${PREFIX}_LIBNAMES})
       -    set(${PREFIX}_LIBNAMES ${${PREFIX}_LIBNAMES} ${TMP})
       -  endif(${ARGC} GREATER 2)
       -  find_library(${PREFIX}_LIBRARY
       -    NAMES ${${PREFIX}_LIBNAMES}
       -    PATHS ${${PREFIX}_PKGCONF_LIBRARY_DIRS}
       -  )
       -endmacro(libfind_library)
 (DIR) diff --git a/config-cmake.h.in b/config-cmake.h.in
       t@@ -1,214 +0,0 @@
       -/* Version number of package */
       -#define VERSION "@VERSION@"
       -
       -/* Use the (n)curses client? */
       -#cmakedefine CURSES_CLIENT
       -
       -/* true if curses.h is available */
       -#cmakedefine CURSES_HAVE_CURSES_H
       -
       -/* true if ncurses.h is available */
       -#cmakedefine CURSES_HAVE_NCURSES_H
       -
       -/* true if ncurses/ncurses.h is available */
       -#cmakedefine CURSES_HAVE_NCURSES_NCURSES_H
       -
       -/* true if ncurses/curses.h is available */
       -#cmakedefine CURSES_HAVE_NCURSES_CURSES_H
       -
       -/* Define if building under the Cygwin environment */
       -#undef CYGWIN
       -
       -/* The directory containing the docs and sounds */
       -#define DPDATADIR "@CMAKE_INSTALL_FULL_DATADIR@"
       -
       -/* The directory containing the high score file */
       -#define DPSCOREDIR "@CMAKE_INSTALL_FULL_LOCALSTATEDIR@"
       -
       -/* 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. */
       -#cmakedefine 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? */
       -#cmakedefine HAVE_SDL_MIXER
       -
       -/* Define to 1 if you have the `select' function. */
       -#cmakedefine HAVE_SELECT
       -
       -/* Define to 1 if you have the `socket' function. */
       -#cmakedefine 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. */
       -#cmakedefine 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 */
       -#cmakedefine NETWORKING
       -
       -/* Name of package */
       -#define PACKAGE "@PROJECT_NAME@"
       -
       -/* 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 */
       -#define PLUGINDIR "@CMAKE_INSTALL_FULL_LIBDIR@/dopewars"
       -
       -/* Define if using dynamically-loaded sound modules */
       -#cmakedefine 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
       -
       -
       -/* 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
 (DIR) diff --git a/src/curses_client/CMakeLists.txt b/src/curses_client/CMakeLists.txt
       t@@ -1 +0,0 @@
       -add_library(cursesclient curses_client.c)
 (DIR) diff --git a/src/cursesport/CMakeLists.txt b/src/cursesport/CMakeLists.txt
       t@@ -1 +0,0 @@
       -add_library(cursesport cursesport.c)
 (DIR) diff --git a/src/gtkport/CMakeLists.txt b/src/gtkport/CMakeLists.txt
       t@@ -1 +0,0 @@
       -add_library(gtkport clist.c gtkport.c unicodewrap.c)
 (DIR) diff --git a/src/gui_client/CMakeLists.txt b/src/gui_client/CMakeLists.txt
       t@@ -1,2 +0,0 @@
       -add_library(guiclient gtk_client.c gtk_client.h optdialog.c optdialog.h
       -            newgamedia.c newgamedia.h dopewars-pill.xpm)
 (DIR) diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt
       t@@ -1,7 +0,0 @@
       -if (HAVE_ESD)
       -  add_library(libsound_esd MODULE sound_esd.c)
       -endif()
       -
       -if (HAVE_SDL_MIXER)
       -  add_library(libsound_sdl MODULE sound_sdl.c)
       -endif()