Skip to content

Commit 625c72c

Browse files
authored
Merge pull request #14 from tim-devereux/docker
Updating DockerFile and CMakeLists.txt
2 parents 09aadc2 + 70ff66b commit 625c72c

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ if(WITH_QHULL)
7575
endif(WITH_QHULL)
7676
if(WITH_TIFF)
7777
find_package(GeoTIFF REQUIRED)
78+
find_package(PROJ REQUIRED COMPONENTS proj)
7879
list(APPEND RAYTOOLS_INCLUDE ${GEOTIFF_INCLUDE_DIR})
7980
list(APPEND RAYTOOLS_LINK ${GEOTIFF_LIBRARIES})
8081
find_package(TIFF REQUIRED)

docker/Dockerfile

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,43 @@ RUN cd /home && \
1212
git checkout tags/1.0.7 && \
1313
mkdir build && cd build && \
1414
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo && \
15-
make && make install
15+
make -j$(nproc) && make install
1616

1717
RUN cd /home && \
1818
git clone https://github.com/LASzip/LASzip.git && \
1919
cd LASzip && \
2020
git checkout tags/2.0.1 && \
2121
mkdir build && cd build && \
2222
cmake .. && \
23-
make && make install
23+
make -j$(nproc) && make install
2424

2525
RUN cd /home && \
2626
git clone https://github.com/libLAS/libLAS.git && \
2727
cd libLAS && \
2828
mkdir build && cd build && \
29-
cmake .. -DWITH_LASZIP=ON -DWITH_GEOTIFF=OFF && \
30-
make && make install
29+
cmake .. -DWITH_LASZIP=ON -DWITH_GEOTIFF=OFF -DCMAKE_CXX_STANDARD=11 && \
30+
make -j$(nproc) && make install
3131

3232
RUN cd /home && \
3333
git clone http://github.com/qhull/qhull.git && \
3434
cd qhull && \
3535
git checkout tags/v7.3.2 && \
3636
mkdir -p build && cd build && \
3737
cmake .. -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true && \
38-
make && make install
38+
make -j$(nproc) && make install
3939

4040
RUN cd /home && \
4141
git clone https://github.com/csiro-robotics/raycloudtools.git && \
4242
cd raycloudtools && \
4343
mkdir build && cd build && \
44-
cmake .. -DGEOTIFF_INCLUDE_DIR=/usr/include/geotiff -DGEOTIFF_LIBRARIES=/usr/lib/libgeotiff.so -DWITH_QHULL=ON -DWITH_LAS=ON -DWITH_TIFF=ON -DRAYCLOUD_BUILD_TESTS=ON && \
45-
make && make install
44+
cmake .. -DGEOTIFF_LIBRARIES=/usr/lib/libgeotiff.so -DWITH_QHULL=ON -DWITH_LAS=ON -DWITH_TIFF=ON -DRAYCLOUD_BUILD_TESTS=ON && \
45+
make -j$(nproc) && make install
46+
47+
RUN cd /home && \
48+
git clone https://github.com/csiro-robotics/treetools.git && \
49+
cd treetools && \
50+
mkdir build && cd build && \
51+
cmake .. && \
52+
make -j$(nproc) && make install
4653

47-
WORKDIR /data
54+
WORKDIR /data

0 commit comments

Comments
 (0)