-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
101 lines (69 loc) · 3.16 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
CMAKE_MINIMUM_REQUIRED( VERSION 2.6 )
PROJECT( Collage )
OPTION( CMAKE_VERBOSE_MAKEFILE "Enable/Disable verbose compiler output" ON )
OPTION( CMAKE_COLOR_MAKEFILE "Enable/Disable color cues when building" ON )
MARK_AS_ADVANCED( CLEAR CMAKE_VERBOSE_MAKEFILE CMAKE_COLOR_MAKEFILE )
#######################################
# Include wxWidgets
#######################################
INCLUDE( LocalUsewxWidgets.cmake )
INCLUDE( ${CMAKE_ROOT}/Modules/UsewxWidgets.cmake )
INCLUDE_DIRECTORIES( ${wxWidgets_INCLUDES} )
LINK_DIRECTORIES( ${wxWidgets_LIBRARY_DIRS} )
#######################################
# Include glew
#######################################
FIND_PATH( GLEW_ROOT_DIR include/GL/glew.h )
INCLUDE_DIRECTORIES( ${GLEW_ROOT_DIR}/include )
LINK_DIRECTORIES( ${GLEW_ROOT_DIR}/lib )
SET( GLEW_LIB glew32.lib)
#######################################
# Include Haggis
#######################################
FIND_PATH( HAGGIS_SRC_DIR SCR/SCRFrame.h )
FIND_PATH( HAGGIS_BIN_DIR Haggis.sln )
INCLUDE_DIRECTORIES( ${HAGGIS_SRC_DIR}/Media
${HAGGIS_SRC_DIR}/Quat
${HAGGIS_SRC_DIR}/RenciWxWidgets )
LINK_DIRECTORIES( ${HAGGIS_BIN_DIR}/Media
${HAGGIS_BIN_DIR}/Quat
${HAGGIS_BIN_DIR}/RenciWxWidgets )
SET( HAGGIS_LIBS Media.lib Quat.lib RenciWxWidgets.lib)
#######################################
# Include Windows SDK
#######################################
FIND_PATH( WINDOWS_SDK_DIR Include/DShow.h )
INCLUDE_DIRECTORIES( ${WINDOWS_SDK_DIR}/Include )
LINK_DIRECTORIES( ${WINDOWS_SDK_DIR}/Lib )
SET( WINDOWS_SDK_LIBS strmiids.lib )
#######################################
# Include DirectX
#######################################
FIND_PATH( DIRECTX_DIR Include/ddraw.h )
INCLUDE_DIRECTORIES( ${DIRECTX_DIR}/Include )
#######################################
# Include FTGL and FreeType font libraries
#######################################
#INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/include )
#LINK_DIRECTORIES( ${PROJECT_SOURCE_DIR}/lib )
#SET( FTGL_LIBS freetype2110MT_D.lib ftgl.lib)
#######################################
# Include Collage code
#######################################
SET( SRC Collage.h Collage.cpp
CollageFrame.h CollageFrame.cpp
CollageGraphics.h CollageGraphics.cpp
CollageImage.h CollageImage.cpp
CollageItemMetadata.h
CollageLayoutManager.h CollageLayoutManager.cpp
CollageLayoutManagerFactory.h CollageLayoutManagerFactory.cpp
FillRoomLayoutManager.h FillRoomLayoutManager.cpp
RandomLayoutManager.h RandomLayoutManager.cpp
SimpleDoubleLayoutManager.h SimpleDoubleLayoutManager.cpp
SimpleSingleLayoutManager.h SimpleSingleLayoutManager.cpp
SmartSingleLayoutManager.h SmartSingleLayoutManager.cpp
SCRSceneManager.h SCRSceneManager.cpp
SceneManager.h SceneManager.cpp
TeleImmersionSceneManager.h TeleImmersionSceneManager.cpp )
ADD_EXECUTABLE( Collage WIN32 MACOSX_BUNDLE ${SRC} )
TARGET_LINK_LIBRARIES( Collage ${VTK_LIBS} ${GLEW_LIB} ${HAGGIS_LIBS} ${WINDOWS_SDK_LIBS} )