CMakeLists.txt 2.28 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 17 18
cmake_minimum_required(VERSION 2.8)

SET(CMAKE_BUILD_TYPE Release)

ADD_DEFINITIONS(-fPIC)

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}
19
	${SCHNApps_ROOT_DIR}/include
Pierre Kraemer's avatar
Pierre Kraemer committed
20 21
)

22 23 24
file(
	GLOB
	SCHNApps_SRC_FILES
25 26
	${SCHNApps_ROOT_DIR}/src/camera.cpp
	${SCHNApps_ROOT_DIR}/src/context.cpp
27
	${SCHNApps_ROOT_DIR}/src/main.cpp
28 29 30 31 32 33 34
	${SCHNApps_ROOT_DIR}/src/mapHandler.cpp
	${SCHNApps_ROOT_DIR}/src/plugin.cpp
	${SCHNApps_ROOT_DIR}/src/scene.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
35 36 37
	${SCHNApps_ROOT_DIR}/src/viewSelector.cpp
	${SCHNApps_ROOT_DIR}/src/cameraViewDialog.cpp
	${SCHNApps_ROOT_DIR}/src/pluginDialog.cpp
Pierre Kraemer's avatar
Pierre Kraemer committed
38 39
)

40
SET(SCHNApps_H_OBJECT_FILES
41 42 43 44
	${SCHNApps_ROOT_DIR}/include/window.h
	${SCHNApps_ROOT_DIR}/include/scene.h
	${SCHNApps_ROOT_DIR}/include/view.h
	${SCHNApps_ROOT_DIR}/include/splitArea.h
45 46 47 48
	${SCHNApps_ROOT_DIR}/include/viewSelector.h
	${SCHNApps_ROOT_DIR}/include/cameraViewDialog.h
	${SCHNApps_ROOT_DIR}/include/pluginDialog.h
	
49 50 51 52 53 54 55 56
#	${SCHNApps_ROOT_DIR}/include/dialogs/newSceneDialog.h
#	${SCHNApps_ROOT_DIR}/include/dialogs/sceneSelector.h
#	${SCHNApps_ROOT_DIR}/include/dialogs/cameraOptionDialog.h
#	${SCHNApps_ROOT_DIR}/include/dialogs/cameraSceneDialog.h
#	${SCHNApps_ROOT_DIR}/include/dialogs/globalCameraDialog.h
#	${SCHNApps_ROOT_DIR}/include/dialogs/pluginDialog.h
#	${SCHNApps_ROOT_DIR}/include/dialogs/linkViewDialog.h
#	${SCHNApps_ROOT_DIR}/include/dialogs/mapPluginDialog.h
Pierre Kraemer's avatar
Pierre Kraemer committed
57 58
)

59 60 61
file(
	GLOB
	SCHNApps_FORM_FILES
62 63 64
	${SCHNApps_ROOT_DIR}/forms/window.ui
	${SCHNApps_ROOT_DIR}/forms/cameraViewDialog.ui
	${SCHNApps_ROOT_DIR}/forms/pluginDialog.ui
Pierre Kraemer's avatar
Pierre Kraemer committed
65 66
)

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

77
ADD_EXECUTABLE( SCHNApps
78
	${SCHNApps_SRC_FILES}
Pierre Kraemer's avatar
Pierre Kraemer committed
79 80 81 82 83
	${UI_H_FILES}
	${MOC_FILES}
	${RCC_FILES}
)

84
TARGET_LINK_LIBRARIES( SCHNApps
Pierre Kraemer's avatar
Pierre Kraemer committed
85 86 87 88
	${CGoGN_LIBS_R}
	${COMMON_LIBS}
	${QGLVIEWER_LIBRARIES}
)
89 90


91
#ADD_SUBDIRECTORY(${SCHNApps_ROOT_DIR}/Plugins Plugins)