File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ add_executable(teaser_cpp_fpfh teaser_cpp_fpfh.cc)
13
13
# Link to teaserpp & Eigen3
14
14
target_link_libraries (teaser_cpp_fpfh Eigen3::Eigen teaserpp::teaser_registration teaserpp::teaser_features
15
15
teaserpp::teaser_io ${PCL_LIBRARIES} )
16
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp" )
16
17
17
18
# Copy the data files to build directory
18
19
file (COPY ../example_data/
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ add_executable(teaser_cpp_ply teaser_cpp_ply.cc)
11
11
12
12
# Link to teaserpp & Eigen3
13
13
target_link_libraries (teaser_cpp_ply Eigen3::Eigen teaserpp::teaser_registration teaserpp::teaser_io)
14
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp" )
14
15
15
16
# Copy the data files to build directory
16
17
file (COPY ../example_data/
Original file line number Diff line number Diff line change @@ -35,7 +35,8 @@ target_include_directories(teaser_registration PUBLIC
35
35
36
36
find_package (OpenMP)
37
37
if (OpenMP_CXX_FOUND)
38
- target_link_libraries (teaser_registration PRIVATE OpenMP::OpenMP_CXX)
38
+ target_link_libraries (teaser_registration PUBLIC OpenMP::OpenMP_CXX)
39
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp" )
39
40
endif ()
40
41
41
42
install (TARGETS teaser_registration
You can’t perform that action at this time.
0 commit comments