forked from zsyccc/fast-spatial-hashing-with-pcl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
55 lines (44 loc) · 1.16 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
cmake_minimum_required(VERSION 3.0)
project(fsh)
find_package(PCL 1.9 REQUIRED)
if( CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR )
message( FATAL_ERROR "Please select another Build Directory ! (and give it a clever name, like build/)" )
endif()
if( CMAKE_SOURCE_DIR MATCHES " " )
message( "Your Source Directory contains spaces. If you experience problems when compiling, this can be the cause." )
endif()
if( CMAKE_BINARY_DIR MATCHES " " )
message( "Your Build Directory contains spaces. If you experience problems when compiling, this can be the cause." )
endif()
include_directories(
${PCL_INCLUDE_DIRS}
.
)
set(CMAKE_CXX_STANDARD 17)
set(filelists
models/bunny.obj
models/cube.obj
models/dragon.obj
models/fish_512.obj
models/suzanne.obj
models/teapot.obj
)
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(
${PCL_DEFINITIONS}
-g
)
add_executable(fsh
main.cpp
mesh_sampling.h
mesh_sampling.cpp
# voxelize.hpp
# voxelize.cpp
# point.hpp
)
target_link_libraries (fsh
${PCL_LIBRARIES}
)
foreach(file ${filelists})
configure_file(${PROJECT_SOURCE_DIR}/${file} ${PROJECT_BINARY_DIR}/${file} COPYONLY)
endforeach()