Coupure prévue mardi 3 Août au matin pour maintenance du serveur. Nous faisons au mieux pour que celle-ci soit la plus brève possible.

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

SET(CMAKE_BUILD_TYPE Debug)

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

INCLUDE_DIRECTORIES(
	${CGoGN_ROOT_DIR}/include
13
14
	${SCHNApps_ROOT_DIR}/include
	${EXT_INCLUDES}
Pierre Kraemer's avatar
Pierre Kraemer committed
15
16
17
18
	${CMAKE_CURRENT_SOURCE_DIR}
	${CMAKE_CURRENT_BINARY_DIR}
)

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

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

51
52
53
file(
	GLOB
	SCHNApps_FORM_FILES
54
	${SCHNApps_ROOT_DIR}/forms/window.ui
Pierre Kraemer's avatar
Pierre Kraemer committed
55
56
57
	${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
58
	${SCHNApps_ROOT_DIR}/forms/cameraViewDialog.ui
59
60
	${SCHNApps_ROOT_DIR}/forms/pluginsViewDialog.ui
	${SCHNApps_ROOT_DIR}/forms/mapsViewDialog.ui
Pierre Kraemer's avatar
Pierre Kraemer committed
61
62
)

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

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

80
TARGET_LINK_LIBRARIES( SCHNAppsD
Pierre Kraemer's avatar
Pierre Kraemer committed
81
	${CGoGN_LIBS_D}
82
	${EXT_LIBS}
Pierre Kraemer's avatar
Pierre Kraemer committed
83
)
84
85


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