-
-
Notifications
You must be signed in to change notification settings - Fork 91
/
CMakeLists.txt
30 lines (23 loc) · 1.08 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
cmake_minimum_required (VERSION 2.6 FATAL_ERROR)
project (cloud_annotation_tool)
find_package (Qt4 REQUIRED)
find_package (VTK REQUIRED)
find_package (PCL 1.2 REQUIRED)
include_directories (${PCL_INCLUDE_DIRS})
link_directories (${PCL_LIBRARY_DIRS})
add_definitions (${PCL_DEFINITIONS})
set (project_SOURCES main.cpp viewer.cpp)
set (project_HEADERS viewer.h)
set (project_FORMS viewer.ui)
set (project_RESOURCES resources.qrc)
set (VTK_LIBRARIES vtkRendering vtkGraphics vtkHybrid QVTK)
QT4_WRAP_CPP (project_HEADERS_MOC ${project_HEADERS})
QT4_WRAP_UI (project_FORMS_HEADERS ${project_FORMS})
QT4_ADD_RESOURCES (project_RESOURCES_RCC ${project_RESOURCES})
INCLUDE (${QT_USE_FILE})
ADD_DEFINITIONS (${QT_DEFINITIONS})
ADD_EXECUTABLE (cloud_annotation_tool ${project_SOURCES}
${project_FORMS_HEADERS}
${project_HEADERS_MOC}
${project_RESOURCES_RCC})
TARGET_LINK_LIBRARIES (cloud_annotation_tool ${QT_LIBRARIES} ${PCL_LIBRARIES} ${VTK_LIBRARIES})