-
Notifications
You must be signed in to change notification settings - Fork 0
/
building cpp0x version for CodeLite.sh
executable file
·47 lines (42 loc) · 1.97 KB
/
building cpp0x version for CodeLite.sh
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
#!/bin/bash
# Command line for building the CodeLite project files for the Release and Debug cpp0x versions of Gaalet
# for evaluating the library on Linux x64 architectures (a different build script will be needed on other platforms)
if [ -z "$CMAKE" ]; then
CMAKE='cmake'
fi
mkdir -p ./cmake/cpp0x/build-Release
pushd ./cmake/cpp0x/build-Release
BUILD_ROOT=`pwd`
${CMAKE} -G "CodeLite - Ninja" \
-DOPENTHREADS_LIBRARY_DEBUG:FILEPATH="/usr/local/lib64/libOpenThreads.so" \
-DOSGVIEWER_LIBRARY_DEBUG:FILEPATH="/usr/local/lib64/libosgViewer.so" \
-DOSGVIEWER_LIBRARY:FILEPATH="/usr/local/lib64/libosgViewer.so" \
-DCMAKE_INSTALL_PREFIX:PATH="/usr/local" \
-DOSG_LIBRARY:FILEPATH="/usr/local/lib64/libosg.so;/usr/local/lib64/libosgGA.so" \
-DOSG_LIBRARY_DEBUG:FILEPATH="/usr/local/lib64/libosg.so;/usr/local/lib64/libosgGA.so" \
-DOPENTHREADS_LIBRARY:FILEPATH="/usr/local/lib64/libOpenThreads.so" \
-DOSGVIEWER_INCLUDE_DIR:PATH="/usr/local/include" \
-DCMAKE_MODULE_PATH:PATH="$BUILD_ROOT/../../modules" \
-DTBB_INCLUDE_DIR="/usr/include/tbb" \
-DTBB_LIBRARY="/usr/lib/x86_64-linux-gnu" \
-DCMAKE_BUILD_TYPE:STRING="Release" \
../../../cpp0x
popd
mkdir -p ./cmake/cpp0x/build-Debug
pushd ./cmake/cpp0x/build-Debug
BUILD_ROOT=`pwd`
${CMAKE} -G "CodeLite - Ninja" \
-DOPENTHREADS_LIBRARY_DEBUG:FILEPATH="/usr/local/lib64/libOpenThreads.so" \
-DOSGVIEWER_LIBRARY_DEBUG:FILEPATH="/usr/local/lib64/libosgViewer.so" \
-DOSGVIEWER_LIBRARY:FILEPATH="/usr/local/lib64/libosgViewer.so" \
-DCMAKE_INSTALL_PREFIX:PATH="/usr/local" \
-DOSG_LIBRARY:FILEPATH="/usr/local/lib64/libosg.so;/usr/local/lib64/libosgGA.so" \
-DOSG_LIBRARY_DEBUG:FILEPATH="/usr/local/lib64/libosg.so;/usr/local/lib64/libosgGA.so" \
-DOPENTHREADS_LIBRARY:FILEPATH="/usr/local/lib64/libOpenThreads.so" \
-DOSGVIEWER_INCLUDE_DIR:PATH="/usr/local/include" \
-DCMAKE_MODULE_PATH:PATH="$BUILD_ROOT/../../modules" \
-DTBB_INCLUDE_DIR="/usr/include/tbb" \
-DTBB_LIBRARY="/usr/lib/x86_64-linux-gnu" \
-DCMAKE_BUILD_TYPE:STRING="Debug" \
../../../cpp0x
popd