Skip to content

Commit 8dadb71

Browse files
berndhahnebachaothms
authored andcommitted
Add OpenCollada to travis and fix cmake (IfcOpenShell#119)
* travis: collada support * travis: opencollada, specify pcre library
1 parent 9d757e1 commit 8dadb71

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.travis.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,26 @@ install:
3030
- sudo apt-get install -y liboce-visualization-dev
3131
- sudo apt-get install -y liboce-ocaf-lite-dev
3232

33+
- sudo apt-get install -y libpcre3-dev
3334

3435
script:
36+
- pwd
37+
- cd ..
38+
- git clone https://github.com/KhronosGroup/OpenCOLLADA.git
39+
- cd OpenCOLLADA
40+
- git checkout 064a60b65c2c31b94f013820856bc84fb1937cc6
41+
- mkdir build
42+
- cd build
43+
- cmake ..
44+
- make
45+
- sudo make install
46+
- cd ..
47+
- cd ..
48+
- pwd
49+
- cd IfcOpenShell
50+
- pwd
3551
- cd cmake
3652
- mkdir build
3753
- cd build
38-
- cmake -DCOLLADA_SUPPORT=False -DUSE_IFC4=False -DBUILD_IFCPYTHON=True -DUNICODE_SUPPORT=True -DOCC_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu ..
54+
- cmake -DCOLLADA_SUPPORT=True -DOPENCOLLADA_INCLUDE_DIR=/usr/local/include/opencollada -DOPENCOLLADA_LIBRARY_DIR=/usr/local/lib/opencollada -DPCRE_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu -DUSE_IFC4=False -DBUILD_IFCPYTHON=True -DUNICODE_SUPPORT=True -DOCC_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu ..
3955
- make -j2

cmake/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ IF(COLLADA_SUPPORT)
260260
find_library(pcre_library NAMES pcre PATHS ${PCRE_LIBRARY_DIR} NO_DEFAULT_PATH)
261261
endif()
262262

263-
if (${pcre_library})
263+
if (pcre_library)
264264
SET(OPENCOLLADA_LIBRARY_DIR ${OPENCOLLADA_LIBRARY_DIR} ${PCRE_LIBRARY_DIR})
265265
list(APPEND OPENCOLLADA_LIBRARIES "${pcre_library}")
266266
endif()

0 commit comments

Comments
 (0)