-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.cmake
More file actions
17 lines (14 loc) · 754 Bytes
/
README.cmake
File metadata and controls
17 lines (14 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
For using the cmake build system do the following steps:
1. Install cmake (under Ubuntu with "sudo apt-get install cmake", on Mac OS X with "sudo port install cmake")
2. Create an build dir (for example json_spirit_v3.00/build) an switch to this new directory.
3. Create files for your build system
"cmake .." generates makefiles for GNU automake
"cmake -G Xcode" generates an Xcode project
4. Start the build
BOOST_ROOT Please set BOOST_ROOT to the root
directory containing Boost or BOOST_INCLUDEDIR to the directory containing
Boost's headers.
Example:
BOOST_ROOT=/opt/boost-1.42.0-openmpi CXXFLAGS=-O3 \
LDFLAGS="-L/opt/boost-1.42.0-openmpi/lib64 -lboost_thread"\
cmake -DCMAKE_INSTALL_PREFIX:PATH=/$HOME/local ..