File: CMakeLists.txt

package info (click to toggle)
pcl 1.13.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 143,524 kB
  • sloc: cpp: 518,578; xml: 28,792; ansic: 13,676; python: 334; lisp: 93; sh: 49; makefile: 30
file content (59 lines) | stat: -rw-r--r-- 2,312 bytes parent folder | download
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
48
49
50
51
52
53
54
55
56
57
58
59
set(SUBSYS_NAME octree)
set(SUBSYS_DESC "Point cloud octree library")
set(SUBSYS_DEPS common)

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

PCL_ADD_DOC("${SUBSYS_NAME}")

if(NOT build)
  return()
endif()

set(srcs
  src/octree_inst.cpp
)

set(incs
  "include/pcl/${SUBSYS_NAME}/boost.h"
  "include/pcl/${SUBSYS_NAME}/octree_base.h"
  "include/pcl/${SUBSYS_NAME}/octree_container.h"
  "include/pcl/${SUBSYS_NAME}/octree_impl.h"
  "include/pcl/${SUBSYS_NAME}/octree_nodes.h"
  "include/pcl/${SUBSYS_NAME}/octree_key.h"
  "include/pcl/${SUBSYS_NAME}/octree_pointcloud_density.h"
  "include/pcl/${SUBSYS_NAME}/octree_pointcloud_occupancy.h"
  "include/pcl/${SUBSYS_NAME}/octree_pointcloud_singlepoint.h"
  "include/pcl/${SUBSYS_NAME}/octree_pointcloud_pointvector.h"
  "include/pcl/${SUBSYS_NAME}/octree_pointcloud_changedetector.h"
  "include/pcl/${SUBSYS_NAME}/octree_pointcloud_voxelcentroid.h"
  "include/pcl/${SUBSYS_NAME}/octree_pointcloud.h"
  "include/pcl/${SUBSYS_NAME}/octree_iterator.h"
  "include/pcl/${SUBSYS_NAME}/octree_search.h"
  "include/pcl/${SUBSYS_NAME}/octree.h"
  "include/pcl/${SUBSYS_NAME}/octree2buf_base.h"
  "include/pcl/${SUBSYS_NAME}/octree_pointcloud_adjacency.h"
  "include/pcl/${SUBSYS_NAME}/octree_pointcloud_adjacency_container.h"
)

set(impl_incs
  "include/pcl/${SUBSYS_NAME}/impl/octree_base.hpp"
  "include/pcl/${SUBSYS_NAME}/impl/octree_pointcloud.hpp"
  "include/pcl/${SUBSYS_NAME}/impl/octree2buf_base.hpp"
  "include/pcl/${SUBSYS_NAME}/impl/octree_iterator.hpp"
  "include/pcl/${SUBSYS_NAME}/impl/octree_search.hpp"
  "include/pcl/${SUBSYS_NAME}/impl/octree_pointcloud_voxelcentroid.hpp"
  "include/pcl/${SUBSYS_NAME}/impl/octree_pointcloud_adjacency.hpp"
)

set(LIB_NAME "pcl_${SUBSYS_NAME}")
PCL_ADD_LIBRARY(${LIB_NAME} COMPONENT ${SUBSYS_NAME} SOURCES ${srcs} ${incs} ${impl_incs})
target_link_libraries("${LIB_NAME}" pcl_common)
target_include_directories(${LIB_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
PCL_MAKE_PKGCONFIG(${LIB_NAME} COMPONENT ${SUBSYS_NAME} DESC ${SUBSYS_DESC} PCL_DEPS ${SUBSYS_DEPS})

# Install include files
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_NAME}" ${incs})
PCL_ADD_INCLUDES("${SUBSYS_NAME}" "${SUBSYS_NAME}/impl" ${impl_incs})