Skip to content

Commit

Permalink
Move io_ply to actual submodule.
Browse files Browse the repository at this point in the history
  • Loading branch information
larshg committed Feb 11, 2024
1 parent 6b51ec0 commit 614f196
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 41 deletions.
34 changes: 1 addition & 33 deletions io/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,38 +1,6 @@
#Helper library
set(SUBSYS_NAME io_ply)
set(SUBSYS_DESC "Point cloud IO ply library")
set(SUBSYS_DEPS common)
set(SUBSYS_EXT_DEPS boost eigen3)

set(PLY_SOURCES src/ply/ply_parser.cpp)
set(PLY_INCLUDES
"include/pcl/io/ply/byte_order.h"
"include/pcl/io/ply/io_operators.h"
"include/pcl/io/ply/ply.h"
"include/pcl/io/ply/ply_parser.h"
)

PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON)
PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} EXT_DEPS ${EXT_DEPS})

if(build)
set(LIB_NAME "pcl_${SUBSYS_NAME}")
PCL_ADD_LIBRARY(${LIB_NAME} COMPONENT ${SUBSYS_NAME} SOURCES ${PLY_SOURCES} ${PLY_INCLUDES})
if(MINGW)
# libws2_32 isn't added by default for MinGW
target_link_libraries(${LIB_NAME} ws2_32)
endif()
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_NAME}/ply" ${PLY_INCLUDES})

target_link_libraries(${LIB_NAME} pcl_common Boost::boost)
endif()
unset(build)

# Main IO Library

set(SUBSYS_NAME io)
set(SUBSYS_DESC "Point cloud IO library")
set(SUBSYS_DEPS common octree)
set(SUBSYS_DEPS common io_ply octree)
set(SUBSYS_EXT_DEPS boost eigen3)

PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON)
Expand Down
2 changes: 1 addition & 1 deletion io/include/pcl/io/ply_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#include <pcl/pcl_macros.h>
#include <pcl/common/io.h> // for copyPointCloud
#include <pcl/io/file_io.h>
#include <pcl/io/ply/ply_parser.h>
#include <pcl/io_ply/ply_parser.h>
#include <pcl/PolygonMesh.h>

#include <sstream>
Expand Down
30 changes: 30 additions & 0 deletions io_ply/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#Helper library
set(SUBSYS_NAME io_ply)
set(SUBSYS_DESC "Point cloud IO ply library")
set(SUBSYS_DEPS common)
set(SUBSYS_EXT_DEPS boost eigen3)

set(PLY_SOURCES src/ply_parser.cpp)
set(PLY_INCLUDES
"include/pcl/io_ply/byte_order.h"
"include/pcl/io_ply/io_operators.h"
"include/pcl/io_ply/ply.h"
"include/pcl/io_ply/ply_parser.h"
)

PCL_SUBSYS_OPTION(build "${SUBSYS_NAME}" "${SUBSYS_DESC}" ON)
PCL_SUBSYS_DEPEND(build NAME ${SUBSYS_NAME} DEPS ${SUBSYS_DEPS} EXT_DEPS ${EXT_DEPS})

if(NOT build)
return()
endif()

set(LIB_NAME "pcl_${SUBSYS_NAME}")
PCL_ADD_LIBRARY(${LIB_NAME} COMPONENT ${SUBSYS_NAME} SOURCES ${PLY_SOURCES} ${PLY_INCLUDES})
if(MINGW)
# libws2_32 isn't added by default for MinGW
target_link_libraries(${LIB_NAME} ws2_32)
endif()
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_NAME}/ply" ${PLY_INCLUDES})

target_link_libraries(${LIB_NAME} pcl_common Boost::boost)
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

#pragma once

#include <pcl/io/ply/byte_order.h>
#include <pcl/io_ply/byte_order.h>
#include <cstdint> // for int8_t, int16_t, ...

/** \file ply.h contains standard typedefs and generic type traits
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@

#pragma once

#include <pcl/io/ply/ply.h>
#include <pcl/io/ply/io_operators.h>
#include <pcl/io_ply/ply.h>
#include <pcl/io_ply/io_operators.h>
#include <pcl/pcl_macros.h>

#include <istream>
Expand Down
2 changes: 1 addition & 1 deletion io/src/ply/ply_parser.cpp → io_ply/src/ply_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
*
*/

#include <pcl/io/ply/ply_parser.h>
#include <pcl/io_ply/ply_parser.h>

#include <algorithm> // for find_if
#include <fstream> // for ifstream
Expand Down
2 changes: 1 addition & 1 deletion tools/ply2obj.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
*
*/

#include <pcl/io/ply/ply_parser.h>
#include <pcl/io_ply/ply_parser.h>

#include <cstdlib>
#include <cstring>
Expand Down
2 changes: 1 addition & 1 deletion tools/ply2ply.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*
*/

#include <pcl/io/ply/ply_parser.h>
#include <pcl/io_ply/ply_parser.h>

#include <cstdlib>
#include <cstring>
Expand Down
2 changes: 1 addition & 1 deletion tools/ply2raw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*
*/

#include <pcl/io/ply/ply_parser.h>
#include <pcl/io_ply/ply_parser.h>

#include <cstdlib>
#include <cstring>
Expand Down

0 comments on commit 614f196

Please sign in to comment.