-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists.txt
43 lines (35 loc) · 1.33 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
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
project(HL_MRF)
find_package (PCL 1.11
REQUIRED COMPONENTS)
include_directories (${PCL_INCLUDE_DIRS})
link_directories (${PCL_LIBRARY_DIRS})
add_definitions (${PCL_DEFINITIONS})
find_package(Boost COMPONENTS graph filesystem)
FIND_PACKAGE( OpenMP REQUIRED)
if(OPENMP_FOUND)
message("OPENMP FOUND")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
endif()
include_directories(./include)
include_directories(./include/Graph)
include_directories(./include/GROR)
set(Graph ./include/Graph/scan_graph_inference.h
./include/Graph/transformation_graph.h
./include/Graph/transformation_graph.hpp
./src/scan_graph_inference.cpp
)
set(GROR ./include/GROR/include/ia_gror.h
./include/GROR/include/ia_gror.hpp
./include/GROR/include/gror_pre.h
./include/GROR/include/gror_common.h
./include/GROR/src/gror_pre.cpp
)
set(HL_MRF ./include/HL_MRF.h
./src/HL_MRF.cpp
)
set(SourceFile ./src/example_HL_MRF.cpp)
add_executable(HL_MRF ${Graph} ${GROR} ${HL_MRF} ${SourceFile} )
target_link_libraries(HL_MRF ${PCL_LIBRARIES} ${Boost_LIBRARIES})