Ticket #191 (closed enhancement: fixed)

Opened 4 years ago

Last modified 3 years ago

cmake configuration files

Reported by: gunnar Owned by: gnugo
Priority: normal Milestone: 3.8
Component: source Version:
Severity: normal Keywords:
Cc: patch: yes

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 Download (15.4 KB) - added by gunnar 4 years ago.
cmake configuration files
cmake_7_12.1b.diff Download (17.6 KB) - added by gunnar 4 years ago.
Second revision of cmake configuration files and minor code modifications.
cmake_7_12.1c.diff Download (17.7 KB) - added by gunnar 4 years ago.
Updated for montecarlo files.
cmake_7_12.1d.diff Download (21.6 KB) - added by gunnar 4 years ago.
Further improvements.
cmake_7_12.2.diff Download (1.7 KB) - added by gunnar 4 years ago.
Documentation on using cmake.

Regression Results

Attachment Rev. PASS FAIL Nodes Status
cmake_7_12.1.diff Download never tested
cmake_7_12.1b.diff Download never tested
cmake_7_12.1c.diff Download never tested
cmake_7_12.1d.diff Download never tested
cmake_7_12.2.diff Download never tested

Change History

Changed 4 years ago by gunnar

cmake configuration files

Changed 4 years ago by gunnar

Second revision of cmake configuration files and minor code modifications.

Changed 4 years ago by gunnar

Updated for montecarlo files.

Changed 4 years ago by gunnar

Further improvements.

Changed 4 years ago by gunnar

Documentation on using cmake.

comment:1 Changed 3 years ago by gunnar

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from 3.7.12 to 3.8

This is included in 3.8.

Note: See TracTickets for help on using tickets.