-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
50 lines (40 loc) · 1023 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
46
47
48
49
50
PROJECT( CameraCalibration )
CMAKE_MINIMUM_REQUIRED( VERSION 3.0 )
IF ( COMMAND CMAKE_POLICY )
CMAKE_POLICY( SET CMP0003 NEW )
ENDIF( COMMAND CMAKE_POLICY )
set(CMAKE_INCLUDE_CURRENT_DIR ON)
FIND_PACKAGE( Qt5 REQUIRED COMPONENTS Widgets OpenGL Core Gui )
SET(CMAKE_AUTOMOC ON)
SET(CMAKE_AUTOUIC ON)
SET(CMAKE_AUTORCC ON)
FIND_PACKAGE( vtk REQUIRED )
INCLUDE( ${VTK_USE_FILE} )
FIND_PACKAGE( PlusLib REQUIRED NO_MODULE)
FIND_PACKAGE( OpenCV REQUIRED NO_MODULE)
ADD_EXECUTABLE( ${PROJECT_NAME}
main.cpp
mainWidget.cpp
mainWidget.h
qlightwidget.cpp
qlightwidget.h
eccTrackerWidget.cpp
eccTrackerWidget.h
jacobi.h
lu.h
mathUtils.cpp
mathUtils.h
matrix.h
svd.h
)
target_include_directories( ${PROJECT_NAME} PRIVATE ${SDL_INCLUDE_DIR})
TARGET_LINK_LIBRARIES( ${PROJECT_NAME}
Qt5::Widgets #Qt
Qt5::OpenGL #Qt
Qt5::Core
Qt5::Gui
vtkRenderingOpenVR
vtkRenderingGL2PS${VTK_RENDERING_BACKEND}
${OpenCV_LIBS}
vtkPlusDataCollection
)