windows.cmake 4.57 KB
Newer Older
1
# this section should go in its own "prepare windows type cmake file"
2
3
IF (MSVC_VERSION)
  SET(ERRMSG "You have chosen a compiler version not currently supported.  You will need to build all dependent 3rd party libraries with this compiler, and provide the correct locations for them.")
4
  IF (NOT MSVC_VERSION LESS 1600)
5
      MESSAGE(WARNING "${ERRMSG}")
6
7
  ELSEIF (NOT MSVC_VERSION LESS 1500)
      SET(VISIT_MSVC_VERSION "MSVC90")
8
9
  ELSEIF (NOT MSVC_VERSION LESS 1400)
      SET(VISIT_MSVC_VERSION "MSVC80")
10
  ELSE (NOT MSVC_VERSION LESS 1600)
11
      MESSAGE(SEND_ERROR "${ERRMSG}")
12
13
  ENDIF (NOT MSVC_VERSION LESS 1600)

14
ELSE (MSVC_VERSION)
15
  MESSAGE(SEND_ERROR "${ERRMSG}")
16
17
ENDIF(MSVC_VERSION)

18
19
20
21
22
23
# this can be left in generic_windows.cmake, but allow user to
# have their own config-site file

IF (CMAKE_CL_64)
    SET(VISIT_MSVC_VERSION "${VISIT_MSVC_VERSION}-x64")
ENDIF (CMAKE_CL_64)
24
25
26
27

SET(VISIT_WINDOWS_DIR ${VISIT_SOURCE_DIR}/../windowsbuild)
SET(VISITHOME ${VISIT_WINDOWS_DIR}/ThirdParty)

28
29
30
31
32

# Create the NSIS installer package (override default from root CMakeLists.txt
OPTION(VISIT_MAKE_NSIS_INSTALLER "Create an installer package using NSIS." ON)


33
34
35
36
37
##############################################################
##
## Required libraries
##
##############################################################
38
39

VISIT_OPTION_DEFAULT(VISIT_MESA_DIR   ${VISITHOME}/Mesa)
40

41
42
43
44
##
## VTK
##
VISIT_OPTION_DEFAULT(VISIT_VTK_DIR    
bonnell's avatar
   
bonnell committed
45
    ${VISITHOME}/vtk-5.0.0i/${VISIT_MSVC_VERSION}/lib/vtk-5.0)
46

47
48
49
##
## QT
##
50
51
VISIT_OPTION_DEFAULT(VISIT_QT_BIN     ${VISITHOME}/Qt/lib/${VISIT_MSVC_VERSION})
VISIT_OPTION_DEFAULT(QT_DIR     ${VISITHOME}/Qt)
52
VISIT_OPTION_DEFAULT(QT_QMAKE_EXECUTABLE ${VISIT_QT_BIN}/qmake.exe TYPE FILEPATH)
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
##
## PYTHON
##
VISIT_OPTION_DEFAULT(VISIT_PYTHON_DIR 
    ${VISITHOME}/Python26/${VISIT_MSVC_VERSION})

##############################################################
##
## Some misc libraries Database readers may depend upon
##
##############################################################

##
## JPEG
##
VISIT_OPTION_DEFAULT(VISIT_JPEG_DIR     ${VISITHOME}/jpeg)

##
## SZIP
##
VISIT_OPTION_DEFAULT(VISIT_SZIP_DIR     ${VISITHOME}/szip)

##
## ZLIB
##
VISIT_OPTION_DEFAULT(VISIT_ZLIB_DIR     ${VISITHOME}/zlib)
80

81
82
83
84
85
86
87
88
##############################################################
##
## Database reader plugin support libraries
##
## For libraries with LIBDEP settings, order matters.
## Libraries with LIBDEP settings that depend on other
## Library's LIBDEP settings must come after them.
##############################################################
89

90
91
92
93
94
95
96
97
98

##
## HDF4
##
VISIT_OPTION_DEFAULT(VISIT_HDF4_DIR     ${VISITHOME}/hdf4)
VISIT_OPTION_DEFAULT(VISIT_HDF4_LIBDEP  
    JPEG_LIBRARY_DIR libjpeg 
    SZIP_LIBRARY_DIR szlibdll 
    ZLIB_LIBRARY_DIR zlib1
99
    TYPE STRING
100
101
102
103
104
105
106
107
108
)

##
## HDF5
##
VISIT_OPTION_DEFAULT(VISIT_HDF5_DIR     ${VISITHOME}/hdf5)
VISIT_OPTION_DEFAULT(VISIT_HDF5_LIBDEP  
    SZIP_LIBRARY_DIR szlibdll 
    ZLIB_LIBRARY_DIR zlib1
109
    TYPE STRING
110
111
112
113
114
)

##
## NETCDF
##
bonnell's avatar
bonnell committed
115
VISIT_OPTION_DEFAULT(VISIT_NETCDF_DIR   ${VISITHOME}/netcdf-4.1.1)
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
VISIT_OPTION_DEFAULT(VISIT_NETCDF_LIBDEP 
    HDF5_LIBRARY_DIR hdf5dll ${VISIT_HDF5_LIBDEP}
    TYPE STRING
)

##
## BOXLIB
##
VISIT_OPTION_DEFAULT(VISIT_BOXLIB_DIR ${VISITHOME}/BoxLib-2010.10.01)

##
## CCMIO
##
VISIT_OPTION_DEFAULT(VISIT_CCMIO_DIR    ${VISITHOME}/ccmio)

##
## CFITSIO
##
VISIT_OPTION_DEFAULT(VISIT_CFITSIO_DIR  ${VISITHOME}/cfitsio)
135
136
137
138

##
## CGNS
##
bonnell's avatar
bonnell committed
139
VISIT_OPTION_DEFAULT(VISIT_CGNS_DIR     ${VISITHOME}/cgns-3.0.8)
140
VISIT_OPTION_DEFAULT(VISIT_CGNS_LIBDEP 
141
142
143
    HDF5_LIBRARY_DIR hdf5dll ${VISIT_HDF5_LIBDEP}
    TYPE STRING
)
144
145
146
147

##
## EXODUS
##
bonnell's avatar
bonnell committed
148
VISIT_OPTION_DEFAULT(VISIT_EXODUSII_DIR ${VISITHOME}/exodus-4.98)
149
150
151
152
VISIT_OPTION_DEFAULT(VISIT_EXODUSII_LIBDEP 
    NETCDF_LIBRARY_DIR netcdf ${VISIT_NETCDF_LIBDEP}
    TYPE STRING
)
153
154
155
156

##
## GDAL
##
bonnell's avatar
bonnell committed
157
VISIT_OPTION_DEFAULT(VISIT_GDAL_DIR     ${VISITHOME}/gdal-1.7.1)
158
159
160
161

##
## H5PART
##
bonnell's avatar
bonnell committed
162
VISIT_OPTION_DEFAULT(VISIT_H5PART_DIR   ${VISITHOME}/h5part-1.6.2)
163
VISIT_OPTION_DEFAULT(VISIT_H5PART_LIBDEP 
164
165
166
    HDF5_LIBRARY_DIR hdf5dll ${VISIT_HDF5_LIBDEP}
    TYPE STRING
)
167

168
169
170
##
## MILI
##
171
VISIT_OPTION_DEFAULT(VISIT_MILI_DIR     ${VISITHOME}/Mili)
172

173
174
175
##
## SILO
##
176
177
178
179
180
181
IF (NOT CMAKE_CL_64)
    VISIT_OPTION_DEFAULT(VISIT_SILO_DIR     ${VISITHOME}/silo)
ELSE (NOT CMAKE_CL_64)
    VISIT_OPTION_DEFAULT(VISIT_SILO_DIR     ${VISITHOME}/silo_x64)
ENDIF (NOT CMAKE_CL_64)

182
VISIT_OPTION_DEFAULT(VISIT_SILO_LIBDEP  
183
184
185
    HDF5_LIBRARY_DIR hdf5dll ${VISIT_HDF5_LIBDEP}
    TYPE STRING
)
186

bonnell's avatar
bonnell committed
187
##
188
## XDMF
bonnell's avatar
bonnell committed
189
##
bonnell's avatar
   
bonnell committed
190
VISIT_OPTION_DEFAULT(VISIT_XDMF_DIR ${VISITHOME}/Xdmf-2.1.1/${VISIT_MSVC_VERSION})
191
VISIT_OPTION_DEFAULT(VISIT_XDMF_LIBDEP 
192
193
194
    HDF5_LIBRARY_DIR hdf5dll ${VISIT_HDF5_LIBDEP}
    TYPE STRING
)