-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
38 lines (32 loc) · 955 Bytes
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.5.0)
# Project name and settings
project(BoxSegmentation)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
# Find packages
find_package(OpenCV REQUIRED)
find_package(PCL 1.13 REQUIRED)
find_package(Eigen3 REQUIRED)
# Add the executable with multiple source files
add_executable(box_segmentation
src/cpp/main.cpp
src/cpp/core/BoxSegmenter.cpp
src/cpp/core/preprocessor/Preprocessor.cpp
src/cpp/core/detector/BoxDetector.cpp
src/cpp/core/box/Box.cpp
src/cpp/core/cluster/Cluster.cpp
src/cpp/core/cluster/ClustersProcessor.cpp
src/cpp/utils/utils.cpp
)
# Include directories for headers
target_include_directories(box_segmentation PRIVATE
src/cpp
${PCL_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS}
)
# Link OpenCV libraries
target_link_libraries(box_segmentation
${OpenCV_LIBS}
${PCL_LIBRARIES})
# Add definitions for PCL
add_definitions(${PCL_DEFINITIONS})