-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
46 lines (37 loc) · 883 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
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 3.8)
project(QtVtkViewer)
set(CMAKE_CONFIGURATION_TYPES "Debug;Release")
# Find package Qt
find_package(Qt5Core REQUIRED)
find_package(Qt5Gui REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5OpenGL REQUIRED)
# Use Qt
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)
# Find package VTK
find_package(VTK
9.0
REQUIRED
COMPONENTS
GUISupportQt
IOLegacy
CommonColor
CommonComputationalGeometry
CommonCore
CommonDataModel
FiltersCore
FiltersSources
InteractionStyle
RenderingContextOpenGL2
RenderingCore
RenderingFreeType
RenderingGL2PSOpenGL2
RenderingOpenGL2
)
# Find package EIGEN
find_package(Eigen3 REQUIRED)
# Find package Ceres Solver
find_package( Ceres REQUIRED )
add_subdirectory(app)