CMakeLists.txt 2.02 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 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
	${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 31
	${SCHNApps_ROOT_DIR}/src/mapHandler.cpp
	${SCHNApps_ROOT_DIR}/src/plugin.cpp
	${SCHNApps_ROOT_DIR}/src/splitArea.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
32
	${SCHNApps_ROOT_DIR}/src/viewButtonArea.cpp
33
	${SCHNApps_ROOT_DIR}/src/viewSelector.cpp
Pierre Kraemer's avatar
Pierre Kraemer committed
34
	${SCHNApps_ROOT_DIR}/src/cameraDialog.cpp
35
	${SCHNApps_ROOT_DIR}/src/pluginDialog.cpp
Pierre Kraemer's avatar
Pierre Kraemer committed
36
	${SCHNApps_ROOT_DIR}/src/cameraViewDialog.cpp
Pierre Kraemer's avatar
Pierre Kraemer committed
37 38
)

39
SET(SCHNApps_H_OBJECT_FILES
40 41
	${SCHNApps_ROOT_DIR}/include/window.h
	${SCHNApps_ROOT_DIR}/include/view.h
Pierre Kraemer's avatar
Pierre Kraemer committed
42
	${SCHNApps_ROOT_DIR}/include/plugin.h
43
	${SCHNApps_ROOT_DIR}/include/splitArea.h
Pierre Kraemer's avatar
Pierre Kraemer committed
44
	${SCHNApps_ROOT_DIR}/include/viewButtonArea.h
45
	${SCHNApps_ROOT_DIR}/include/viewSelector.h
Pierre Kraemer's avatar
Pierre Kraemer committed
46
	${SCHNApps_ROOT_DIR}/include/cameraDialog.h
47
	${SCHNApps_ROOT_DIR}/include/pluginDialog.h
Pierre Kraemer's avatar
Pierre Kraemer committed
48
	${SCHNApps_ROOT_DIR}/include/cameraViewDialog.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
	${SCHNApps_ROOT_DIR}/forms/cameraDialog.ui
56
	${SCHNApps_ROOT_DIR}/forms/pluginDialog.ui
Pierre Kraemer's avatar
Pierre Kraemer committed
57
	${SCHNApps_ROOT_DIR}/forms/cameraViewDialog.ui
Pierre Kraemer's avatar
Pierre Kraemer committed
58 59
)

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

70
ADD_EXECUTABLE( SCHNAppsD
71
	${SCHNApps_SRC_FILES}
Pierre Kraemer's avatar
Pierre Kraemer committed
72 73 74 75 76
	${UI_H_FILES}
	${MOC_FILES}
	${RCC_FILES}
)

77
TARGET_LINK_LIBRARIES( SCHNAppsD
Pierre Kraemer's avatar
Pierre Kraemer committed
78 79 80 81
	${CGoGN_LIBS_D}
	${COMMON_LIBS}
	${QGLVIEWER_LIBRARIES}
)
82 83


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