-
Notifications
You must be signed in to change notification settings - Fork 14
/
CMakeLists.txt
72 lines (56 loc) · 1.35 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
cmake_minimum_required(VERSION 2.8)
project(PointCloud)
FIND_PACKAGE(Qt4 REQUIRED)
find_package( Qt4 REQUIRED )
set(QT_USE_QTOPENGL TRUE)
include( ${QT_USE_FILE} )
add_definitions( ${QT_DEFINITIONS} )
find_package(OpenGL)
find_package(GLUT)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
include_directories( ./3rdparty/vcglib )
QT4_ADD_RESOURCES (RES_SRC mainwindow.qrc )
QT4_WRAP_UI ( UI_SRC
mainwindow.ui
UI/normal_para.ui
UI/para_skeletonization.ui
UI/para_wlop.ui
UI/upsampling_para.ui
)
SET( APP_SRC
calculationthread.cpp
# Console.cpp
DataMgr.cpp
GLArea.cpp
GLDrawer.cpp
GlobalFunction.cpp
grid.cpp
main.cpp
mainwindow.cpp
Parameter.cpp
ParameterMgr.cpp
plylib.cpp
trackball.cpp
trackmode.cpp
UI/dlg_normal_para.cpp
UI/dlg_skeleton_para.cpp
UI/dlg_upsampling_para.cpp
UI/dlg_wlop_para.cpp
UI/std_para_dlg.cpp
Algorithm/NormalSmoother.cpp
Algorithm/Skeleton.cpp
Algorithm/Upsampler.cpp
Algorithm/Skeletonization.cpp
Algorithm/WLOP.cpp
)
add_executable(${PROJECT_NAME} ${APP_SRC} ${RES_SRC} ${UI_SRC})
target_link_libraries(${PROJECT_NAME}
${QT_LIBRARIES}
${OPENGL_gl_LIBRARY}
${GLUT_LIBRARIES}
glut GL GLU ann
)