CMakeLists.txt 2.19 KB
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cmake_minimum_required(VERSION 2.8)

SET(CMAKE_BUILD_TYPE Release)

IF(WIN32)
	link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ELSE (WIN32)
	link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
ENDIF (WIN32)

INCLUDE_DIRECTORIES(
	${CGoGN_ROOT_DIR}/include
	${COMMON_INCLUDES}
	${CMAKE_CURRENT_SOURCE_DIR}
	${CMAKE_CURRENT_BINARY_DIR}
	${QGLVIEWER_INCLUDE_DIR}
17
	${SCHNApps_ROOT_DIR}/include
Pierre Kraemer's avatar
Pierre Kraemer committed
18
19
)

20
21
22
file(
	GLOB
	SCHNApps_SRC_FILES
23
24
	${SCHNApps_ROOT_DIR}/src/camera.cpp
	${SCHNApps_ROOT_DIR}/src/context.cpp
25
	${SCHNApps_ROOT_DIR}/src/main.cpp
26
27
28
29
30
	${SCHNApps_ROOT_DIR}/src/mapHandler.cpp
	${SCHNApps_ROOT_DIR}/src/plugin.cpp
	${SCHNApps_ROOT_DIR}/src/system.cpp
	${SCHNApps_ROOT_DIR}/src/view.cpp
	${SCHNApps_ROOT_DIR}/src/window.cpp
Pierre Kraemer's avatar
Pierre Kraemer committed
31
	${SCHNApps_ROOT_DIR}/src/viewButtonArea.cpp
Pierre Kraemer's avatar
Pierre Kraemer committed
32
33
34
	${SCHNApps_ROOT_DIR}/src/camerasDialog.cpp
	${SCHNApps_ROOT_DIR}/src/pluginsDialog.cpp
	${SCHNApps_ROOT_DIR}/src/mapsDialog.cpp
Pierre Kraemer's avatar
Pierre Kraemer committed
35
	${SCHNApps_ROOT_DIR}/src/cameraViewDialog.cpp
36
37
	${SCHNApps_ROOT_DIR}/src/pluginsViewDialog.cpp
	${SCHNApps_ROOT_DIR}/src/mapsViewDialog.cpp
Pierre Kraemer's avatar
Pierre Kraemer committed
38
39
)

40
SET(SCHNApps_H_OBJECT_FILES
41
42
	${SCHNApps_ROOT_DIR}/include/view.h
	${SCHNApps_ROOT_DIR}/include/window.h
Pierre Kraemer's avatar
Pierre Kraemer committed
43
	${SCHNApps_ROOT_DIR}/include/viewButtonArea.h
Pierre Kraemer's avatar
Pierre Kraemer committed
44
45
46
	${SCHNApps_ROOT_DIR}/include/camerasDialog.h
	${SCHNApps_ROOT_DIR}/include/pluginsDialog.h
	${SCHNApps_ROOT_DIR}/include/mapsDialog.h
Pierre Kraemer's avatar
Pierre Kraemer committed
47
	${SCHNApps_ROOT_DIR}/include/cameraViewDialog.h
48
49
	${SCHNApps_ROOT_DIR}/include/pluginsViewDialog.h
	${SCHNApps_ROOT_DIR}/include/mapsViewDialog.h
Pierre Kraemer's avatar
Pierre Kraemer committed
50
51
)

52
53
54
file(
	GLOB
	SCHNApps_FORM_FILES
55
	${SCHNApps_ROOT_DIR}/forms/window.ui
Pierre Kraemer's avatar
Pierre Kraemer committed
56
57
58
	${SCHNApps_ROOT_DIR}/forms/camerasDialog.ui
	${SCHNApps_ROOT_DIR}/forms/pluginsDialog.ui
	${SCHNApps_ROOT_DIR}/forms/mapsDialog.ui
Pierre Kraemer's avatar
Pierre Kraemer committed
59
	${SCHNApps_ROOT_DIR}/forms/cameraViewDialog.ui
60
61
	${SCHNApps_ROOT_DIR}/forms/pluginsViewDialog.ui
	${SCHNApps_ROOT_DIR}/forms/mapsViewDialog.ui
Pierre Kraemer's avatar
Pierre Kraemer committed
62
63
)

64
65
QT4_WRAP_UI( UI_H_FILES
	${SCHNApps_FORM_FILES}
Pierre Kraemer's avatar
Pierre Kraemer committed
66
)
67
68
QT4_WRAP_CPP( MOC_FILES
	${SCHNApps_H_OBJECT_FILES}
Pierre Kraemer's avatar
Pierre Kraemer committed
69
)
70
71
QT4_ADD_RESOURCES( RCC_FILES
	${SCHNApps_ROOT_DIR}/resources/resources.qrc
Pierre Kraemer's avatar
Pierre Kraemer committed
72
73
)

74
ADD_EXECUTABLE( SCHNApps
75
	${SCHNApps_SRC_FILES}
Pierre Kraemer's avatar
Pierre Kraemer committed
76
77
78
79
80
	${UI_H_FILES}
	${MOC_FILES}
	${RCC_FILES}
)

81
TARGET_LINK_LIBRARIES( SCHNApps
Pierre Kraemer's avatar
Pierre Kraemer committed
82
83
84
85
	${CGoGN_LIBS_R}
	${COMMON_LIBS}
	${QGLVIEWER_LIBRARIES}
)
86
87


Pierre Kraemer's avatar
Pierre Kraemer committed
88
ADD_SUBDIRECTORY(${SCHNApps_ROOT_DIR}/Plugins Plugins)