-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
38 lines (22 loc) · 979 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
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
project(3DHoPD)
SET(CMAKE_BUILD_TYPE RelWithDebInfo)
find_package(OpenMP)
if (OPENMP_FOUND)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()
#find_package(OpenMP REQUIRED)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
# Adding PCL library
set(PCL_DIR "/home/sai/workspace/pcl-pcl-1.7.2/build/")
find_package(PCL 1.7.2 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS} include)
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
########################################################
add_executable (3DHoPD src/3DHoPD.cpp)
target_link_libraries (3DHoPD ${PCL_LIBRARIES})
add_executable (3DHoPD_robustness_to_rotations src/3DHoPD_robustness_to_rotations.cpp)
target_link_libraries (3DHoPD_robustness_to_rotations ${PCL_LIBRARIES})
########################################################