CMakeLists.txt 783 Bytes
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
QT4_WRAP_UI( UIC_FILES
	${SCHNApps_UI_FILES}
Pierre Kraemer's avatar
Pierre Kraemer committed
21
22
)

23
QT4_WRAP_CPP( MOC_FILES
24
	${SCHNApps_QOBJECT_FILES}
Pierre Kraemer's avatar
Pierre Kraemer committed
25
)
26

27
28
QT4_ADD_RESOURCES( RCC_FILES
	${SCHNApps_ROOT_DIR}/resources/resources.qrc
Pierre Kraemer's avatar
Pierre Kraemer committed
29
30
)

Pierre Kraemer's avatar
Pierre Kraemer committed
31
ADD_EXECUTABLE( SCHNAppsD
32
33
	${SCHNApps_FILES}
	${UIC_FILES}
Pierre Kraemer's avatar
Pierre Kraemer committed
34
35
36
37
	${MOC_FILES}
	${RCC_FILES}
)

38
TARGET_LINK_LIBRARIES( SCHNAppsD
Pierre Kraemer's avatar
Pierre Kraemer committed
39
	${CGoGN_LIBS_D}
40
	${EXT_LIBS}
Pierre Kraemer's avatar
Pierre Kraemer committed
41
)
42
43


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