Ticket #191 (new enhancement)

Opened 6 months ago

cmake configuration files

Reported by: gunnar Assigned to: gnugo
Priority: normal Milestone: 3.7.12
Component: source Version:
Severity: normal Keywords:
Cc: patch: 1

Description

The MSVC project files are a maintenance problem. A possible solution is to generate those (on the build machine) through cmake (http://www.cmake.org). Since cmake also can generate makefiles on Unix-type platforms this allows easy testing of configuration changes. Please note that on those platforms this is only a complement to, not a replacement for, the autotools build files.

Attached is a patch adding a number of CMakeList.txt files and config.h.cmake, which define the cmake configuration. These are not complete, and written by a cmake beginner, so there's more to be done. Still they suffice for building GNU Go on GNU/Linux and can hopefully be used for a Windows build.

To build with cmake on GNU/Linux, do this:

  1. Download GNU Go 3.7.11.
  2. Download and apply the attached patch.
  3. Install cmake (on Debian, "apt-get install cmake")
  4. Go to the top GNU Go directory.
  5. Do "cmake ."
  6. Do "make".

On Windows, the procedure should be something like

  1. Download GNU Go 3.7.11.
  2. Download and apply the attached patch.
  3. Download and install cmake, see http://www.cmake.org/HTML/Download.html for instruction.
  4. Run cmake to generate project files. See http://www.cmake.org/HTML/RunningCMake.html for instructions.
  5. Build GNU Go with the generated project files.

Please report success/failure on Windows as comments to this ticket or send them to the gnugo-devel mailing list.

Attachments

cmake_7_12.1.diff (15.4 kB) - added by gunnar on 11/04/07 22:19:59.
cmake configuration files
cmake_7_12.1b.diff (17.6 kB) - added by gunnar on 11/05/07 20:33:58.
Second revision of cmake configuration files and minor code modifications.
cmake_7_12.1c.diff (17.7 kB) - added by gunnar on 03/25/08 22:36:19.
Updated for montecarlo files.
cmake_7_12.1d.diff (21.6 kB) - added by gunnar on 04/05/08 19:49:46.
Further improvements.
cmake_7_12.2.diff (1.7 kB) - added by gunnar on 04/05/08 20:49:30.
Documentation on using cmake.

Change History

11/04/07 22:19:59 changed by gunnar

  • attachment cmake_7_12.1.diff added.

cmake configuration files

11/05/07 20:33:58 changed by gunnar

  • attachment cmake_7_12.1b.diff added.

Second revision of cmake configuration files and minor code modifications.

03/25/08 22:36:19 changed by gunnar

  • attachment cmake_7_12.1c.diff added.

Updated for montecarlo files.

04/05/08 19:49:46 changed by gunnar

  • attachment cmake_7_12.1d.diff added.

Further improvements.

04/05/08 20:49:30 changed by gunnar

  • attachment cmake_7_12.2.diff added.

Documentation on using cmake.