Join GitHub today
[DO NOT MERGE] New CMake build system. #17
I like the directory hierarchy; that helps organize the files.
I'm not very familiar with either the Microsoft world or with CMake, so forgive me for asking some dumb questions:
added a commit
this pull request
May 27, 2015
I tested it by building and running unitTest and neural2d on the digits demo on Linux with GNU and Clang, and on Cygwin (GNU), and in Windows using the Visual Studio 2013 Community Edition.
If I did anything silly, let me know. I'm still a CMake noob.
The README.md file has been revised with new build instructions as shown below. If there are any errors or if I can explain anything more clearly, let me know.
We use CMake to configure the build system. First get the source code from the Gitub repository. If using the command line, the command is:
That will put the source code tree into a directory named neural2d.
If you are using the CMake graphical interface, run it and set the "source" directory to the neural2d top directory, and set the binary output directory to a build directory under that, then click Configure and Generate. For example:
If you are using CMake from the command line, cd to the neural2d top level directory, make a build directory, then run cmake from there:
There is no "install" step. After the neural2d program is compiled, you can execute it or open the project file from the build directory.
On Windows, by default CMake generates a Microsoft Visual Studio project file in the build directory. On Linux and Cygwin, CMake generates a Makefile that you can use to compile neural2d. You can specify a different CMake generator with the -G option, for example:
To get a list of available CMake generators:
If you get errors when compiling the integrated webserver, you can build neural2d without webserver support by running CMake with the -DWEBSERVER=OFF option, like this:
Wow! you re good to be new to CMake;, the work you did with CMake is good and runs good, i tested it on Cygwin, MSYS, MSYS2, Visual Studio and everything works well!
About the README.md: