OOF2: The Manual
-
Create
CMakeLists.txtand the source files, as described in the previous sections. -
Create a
builddirectory. It can be inside the source directory, but it does not have to be. It also does not have to be calledbuild. -
In a terminal window, cd to the build directory and type
ccmake <path>to start ccmake, replacing
<path>with the path to the top source directory containingCMakeLists.txt.[54] -
Inside ccmake,
- Type 'c' to generate the initial configuration.
-
Change[55]
CMAKE_INSTALL_PREFIXto the location where the extension is to be installed. This should be the directory markedINSTALLin Figure 7.2 and Figure 7.3. - Type 'c' to update the configuration.
-
Type 'g' to generate the
Makefileand exit ccmake.
-
Type
maketo run swig and compile the C++ files. -
Type
make installto install the Python module and compiled libraries. If you're installing into a system directory, typesudo make installinstead.
[54] For
example, if build is a subdirectory of
the source directory, type “cmake
..”.
[55] The OOF2 README file has some basic instructions on how to use ccmake. For more detail, see the CMake User Interaction Guide.



