-
Notifications
You must be signed in to change notification settings - Fork 6
/
BUILD.ME
77 lines (54 loc) · 1.9 KB
/
BUILD.ME
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Compiling instructions using Cmake:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cd <FASTFLOW_ROOT>
mkdir ./build
cd ./build
cmake ../
make
make test
sudo make install DESTDIR=<YOUR_INSTALL_DIR>
It is possible to configure the build by setting the following
build variables:
- BUILD_TESTS (on by default)
- BUILD_EXAMPLES (on by default)
Example:
cmake ../ -DBUILD_TESTS=ON -DBUILD_EXAMPLES=OFF
Compiling instructions standard make:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cd <FASTFLOW_ROOT>/tests
make all
make test # minimal regression test
====================================
Mac OS X platform specific notes
====================================
Follows general instructions to generate command-line Makefile-based build, or
Unix Makefile build
-------------------
cmake ../
make
make test
Xcode project generation
------------------------
cmake -GXcode ../
to generate the Xcode project.
It is possibile to generate more than one build (e.g. both Xcode and
command-line) in different directories (e.g. build and xcode_build).
Some features requires gcc > 4.0.1. Apple 4.2.1 is default on MacOS 10.6. Apple gcc/g++4.2 are available for MacOS 10.5. gcc/g++ > 4.2 are available via Macports for 10.4, 10.5, 10.6.
To use a non default version of the compiler set the env variables, e.g.
export GCC=/usr/bin/gcc-4.2
export CXX=/usr/bin/g++-4.2
====================================
Windows platform specific notes
====================================
Install cmake and follows general instructions from windows "cmd" or other
terminal shell.
32bit Visual Studio project generation
--------------------------------------
cmake ..
64bit Visual Studio project generations
---------------------------------------
cmake -G"Visual Studio 9 2008 Win64" ..
cmake -G"Visual Studio 10 2010 Win64" ..
Cmake installer is available at
http://www.cmake.org/cmake/resources/software.html
Currently tested with Visual Studio 2008 and 2010.