forked from nexusformat/definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.cmake.txt
63 lines (44 loc) · 2.01 KB
/
README.cmake.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
cmake is used to generate the initial "Makefile"
(or whatever other build system you wish to use)
and to package files. It is advised to do the build
in an "out of source" directory such as a "build"
directory. For example, on unix you could type
from the top source directory:
mkdir build
cd build
cmake ..
make
make install # or make install DESTDIR=/some/where for testing
make package # build install kit
To see a list of makefile targets, type:
make help
If you get an error saying something like:
> CMake Error at CMakeLists.txt:29 (cmake_minimum_required):
> CMake 2.8.4 or higher is required. You are running version 2.8.3
Then you either need to install a later version of cmake or
could try changing the cmake_minimum_required() line in CMakeLists.txt
to a lower number; however it possible that necessary
features/behaviour is missing in the lower version
cmake can be used for "out of source" building, and
this is recommended as it keeps source and generated
files separate, so e.g.:
mkdir /some/where/else
cd /some/where/else
cmake /path/to/nexus/definitions/source
make
To see what options can be configured, or to use another builder, type:
cmake-gui
then choose the source and build directories,
press "configure" and then "generate"
To see options etc. from the command line, type:
cmake -L # or cmake -LH to see help too
These values can be set in the gui or from the command line.
For example, in the top of the build directory run:
cmake -DBUILD_SPHINX=ON . # set BUILD_SPHINX option for subsequent "make"
But this is just an example.
The sphinx version of the manual is not ready to use cmake.
If you are building a distribution kit on Windows using NSIS, see http://nsis.sourceforge.net/ZipDLL_plug-in if you get a ZipDLL error
Windows
-------
To build PDF documentation on windows cygwin is required - it is called from the windows build to run DBLATEX.
Check the definition of CYGPATH_EXECUTABLE in the CMake cache