Ticket #191 (closed enhancement: fixed)
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:
- Download GNU Go 3.7.11.
- Download and apply the attached patch.
- Install cmake (on Debian, "apt-get install cmake")
- Go to the top GNU Go directory.
- Do "cmake ."
- Do "make".
On Windows, the procedure should be something like
- Download GNU Go 3.7.11.
- Download and apply the attached patch.
- Download and install cmake, see http://www.cmake.org/HTML/Download.html for instruction.
- Run cmake to generate project files. See http://www.cmake.org/HTML/RunningCMake.html for instructions.
- 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
Regression Results
| Attachment | Rev. | PASS | FAIL | Nodes | Status | |
| cmake_7_12.1.diff | never tested | |||||
| cmake_7_12.1b.diff | never tested | |||||
| cmake_7_12.1c.diff | never tested | |||||
| cmake_7_12.1d.diff | never tested | |||||
| cmake_7_12.2.diff | never tested |
Change History
Changed 4 years ago by gunnar
-
attachment
cmake_7_12.1.diff
added
Changed 4 years ago by gunnar
-
attachment
cmake_7_12.1b.diff
added
Second revision of cmake configuration files and minor code modifications.

cmake configuration files