-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
31 lines (19 loc) · 819 Bytes
/
CMakeLists.txt
File metadata and controls
31 lines (19 loc) · 819 Bytes
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
cmake_minimum_required (VERSION 3.21)
project (samplePCL)
set (royale_DIR CACHE PATH "Path to the share folder inside the Royale package")
find_package (PCL 1.3 QUIET)
if (NOT PCL_FOUND)
message ("PCL example will not be build as no PCL was found!")
return ()
endif ()
find_package (royale REQUIRED)
link_directories (${royale_LIB_DIR} ${PCL_LIBRARY_DIRS})
include_directories (${royale_INCLUDE_DIRS} .)
add_definitions (${PCL_DEFINITIONS} -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS)
add_executable (samplePCL samplePCL.cpp)
copy_royale_libs (samplePCL)
target_link_libraries (samplePCL ${royale_LIBS} ${PCL_LIBRARIES})
add_custom_command(TARGET samplePCL POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_RUNTIME_DLLS:samplePCL> $<TARGET_FILE_DIR:samplePCL>
COMMAND_EXPAND_LISTS
)