Skip to content

Commit 614f196

Browse files
committed
Move io_ply to actual submodule.
1 parent 6b51ec0 commit 614f196

File tree

11 files changed

+39
-41
lines changed

11 files changed

+39
-41
lines changed

io/CMakeLists.txt

+1-33
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,6 @@
1-
#Helper library
2-
set(SUBSYS_NAME io_ply)
3-
set(SUBSYS_DESC "Point cloud IO ply library")
4-
set(SUBSYS_DEPS common)
5-
set(SUBSYS_EXT_DEPS boost eigen3)
6-
7-
set(PLY_SOURCES src/ply/ply_parser.cpp)
8-
set(PLY_INCLUDES
9-
"include/pcl/io/ply/byte_order.h"
10-
"include/pcl/io/ply/io_operators.h"
11-
"include/pcl/io/ply/ply.h"
12-
"include/pcl/io/ply/ply_parser.h"
13-
)
14-
15-
PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON)
16-
PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} EXT_DEPS ${EXT_DEPS})
17-
18-
if(build)
19-
set(LIB_NAME "pcl_${SUBSYS_NAME}")
20-
PCL_ADD_LIBRARY(${LIB_NAME} COMPONENT ${SUBSYS_NAME} SOURCES ${PLY_SOURCES} ${PLY_INCLUDES})
21-
if(MINGW)
22-
# libws2_32 isn't added by default for MinGW
23-
target_link_libraries(${LIB_NAME} ws2_32)
24-
endif()
25-
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_NAME}/ply" ${PLY_INCLUDES})
26-
27-
target_link_libraries(${LIB_NAME} pcl_common Boost::boost)
28-
endif()
29-
unset(build)
30-
31-
# Main IO Library
32-
331
set(SUBSYS_NAME io)
342
set(SUBSYS_DESC "Point cloud IO library")
35-
set(SUBSYS_DEPS common octree)
3+
set(SUBSYS_DEPS common io_ply octree)
364
set(SUBSYS_EXT_DEPS boost eigen3)
375

386
PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON)

io/include/pcl/io/ply_io.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#include <pcl/pcl_macros.h>
4444
#include <pcl/common/io.h> // for copyPointCloud
4545
#include <pcl/io/file_io.h>
46-
#include <pcl/io/ply/ply_parser.h>
46+
#include <pcl/io_ply/ply_parser.h>
4747
#include <pcl/PolygonMesh.h>
4848

4949
#include <sstream>

io_ply/CMakeLists.txt

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#Helper library
2+
set(SUBSYS_NAME io_ply)
3+
set(SUBSYS_DESC "Point cloud IO ply library")
4+
set(SUBSYS_DEPS common)
5+
set(SUBSYS_EXT_DEPS boost eigen3)
6+
7+
set(PLY_SOURCES src/ply_parser.cpp)
8+
set(PLY_INCLUDES
9+
"include/pcl/io_ply/byte_order.h"
10+
"include/pcl/io_ply/io_operators.h"
11+
"include/pcl/io_ply/ply.h"
12+
"include/pcl/io_ply/ply_parser.h"
13+
)
14+
15+
PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON)
16+
PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} EXT_DEPS ${EXT_DEPS})
17+
18+
if(NOT build)
19+
return()
20+
endif()
21+
22+
set(LIB_NAME "pcl_${SUBSYS_NAME}")
23+
PCL_ADD_LIBRARY(${LIB_NAME} COMPONENT ${SUBSYS_NAME} SOURCES ${PLY_SOURCES} ${PLY_INCLUDES})
24+
if(MINGW)
25+
# libws2_32 isn't added by default for MinGW
26+
target_link_libraries(${LIB_NAME} ws2_32)
27+
endif()
28+
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_NAME}/ply" ${PLY_INCLUDES})
29+
30+
target_link_libraries(${LIB_NAME} pcl_common Boost::boost)

io/include/pcl/io/ply/ply.h renamed to io_ply/include/pcl/io_ply/ply.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
#pragma once
4242

43-
#include <pcl/io/ply/byte_order.h>
43+
#include <pcl/io_ply/byte_order.h>
4444
#include <cstdint> // for int8_t, int16_t, ...
4545

4646
/** \file ply.h contains standard typedefs and generic type traits

io/include/pcl/io/ply/ply_parser.h renamed to io_ply/include/pcl/io_ply/ply_parser.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040

4141
#pragma once
4242

43-
#include <pcl/io/ply/ply.h>
44-
#include <pcl/io/ply/io_operators.h>
43+
#include <pcl/io_ply/ply.h>
44+
#include <pcl/io_ply/io_operators.h>
4545
#include <pcl/pcl_macros.h>
4646

4747
#include <istream>

io/src/ply/ply_parser.cpp renamed to io_ply/src/ply_parser.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
*/
4040

41-
#include <pcl/io/ply/ply_parser.h>
41+
#include <pcl/io_ply/ply_parser.h>
4242

4343
#include <algorithm> // for find_if
4444
#include <fstream> // for ifstream

tools/ply2obj.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
*/
4040

41-
#include <pcl/io/ply/ply_parser.h>
41+
#include <pcl/io_ply/ply_parser.h>
4242

4343
#include <cstdlib>
4444
#include <cstring>

tools/ply2ply.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*/
3939

40-
#include <pcl/io/ply/ply_parser.h>
40+
#include <pcl/io_ply/ply_parser.h>
4141

4242
#include <cstdlib>
4343
#include <cstring>

tools/ply2raw.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*
3838
*/
3939

40-
#include <pcl/io/ply/ply_parser.h>
40+
#include <pcl/io_ply/ply_parser.h>
4141

4242
#include <cstdlib>
4343
#include <cstring>

0 commit comments

Comments
 (0)