windows.cmake 4.35 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
##############################################################
##
## Required libraries
##
##############################################################
33
34

VISIT_OPTION_DEFAULT(VISIT_MESA_DIR   ${VISITHOME}/Mesa)
35

36
37
38
39
40
##
## VTK
##
VISIT_OPTION_DEFAULT(VISIT_VTK_DIR    
    ${VISITHOME}/vtk-5.0.0h/${VISIT_MSVC_VERSION}/lib/vtk-5.0)
41

42
43
44
##
## QT
##
45
46
47
VISIT_OPTION_DEFAULT(VISIT_QT_BIN     ${VISITHOME}/Qt/lib/${VISIT_MSVC_VERSION})
VISIT_OPTION_DEFAULT(QT_DIR     ${VISITHOME}/Qt)
SET(QT_QMAKE_EXECUTABLE     ${VISIT_QT_BIN}/qmake.exe)
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
##
## 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)
75

76
77
78
79
80
81
82
83
##############################################################
##
## 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.
##############################################################
84

85
86
87
##
## BOXLIB
##
88
89
VISIT_OPTION_DEFAULT(VISIT_BOXLIB2D_DIR ${VISITHOME}/BoxLib-2010.10.01)
VISIT_OPTION_DEFAULT(VISIT_BOXLIB3D_DIR ${VISITHOME}/BoxLib-2010.10.01)
90
91
92
93

##
## CCMIO
##
94
VISIT_OPTION_DEFAULT(VISIT_CCMIO_DIR    ${VISITHOME}/ccmio)
95
96
97
98

##
## CFITSIO
##
99
100
101
IF (NOT CMAKE_CL_64)
    VISIT_OPTION_DEFAULT(VISIT_CFITSIO_DIR  ${VISITHOME}/cfitsio)
ENDIF (NOT CMAKE_CL_64)
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124

##
## 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
)

##
## HDF5
##
VISIT_OPTION_DEFAULT(VISIT_HDF5_DIR     ${VISITHOME}/hdf5)
VISIT_OPTION_DEFAULT(VISIT_HDF5_LIBDEP  
    SZIP_LIBRARY_DIR szlibdll 
    ZLIB_LIBRARY_DIR zlib1
)

##
## NETCDF
##
bonnell's avatar
bonnell committed
125
126
VISIT_OPTION_DEFAULT(VISIT_NETCDF_DIR   ${VISITHOME}/netcdf-4.1.1)
VISIT_OPTION_DEFAULT(VISIT_NETCDF_LIBDEP HDF5_LIBRARY_DIR hdf5dll ${VISIT_HDF5_LIBDEP})
127
128
129
130

##
## CGNS
##
bonnell's avatar
bonnell committed
131
VISIT_OPTION_DEFAULT(VISIT_CGNS_DIR     ${VISITHOME}/cgns-3.0.8)
132
133
134
135
136
137
VISIT_OPTION_DEFAULT(VISIT_CGNS_LIBDEP 
    HDF5_LIBRARY_DIR hdf5dll ${VISIT_HDF5_LIBDEP})

##
## EXODUS
##
bonnell's avatar
bonnell committed
138
139
VISIT_OPTION_DEFAULT(VISIT_EXODUSII_DIR ${VISITHOME}/exodus-4.46)
VISIT_OPTION_DEFAULT(VISIT_EXODUSII_LIBDEP NETCDF_LIBRARY_DIR netcdf ${VISIT_NETCDF_LIBDEP})
140
141
142
143

##
## GDAL
##
bonnell's avatar
bonnell committed
144
VISIT_OPTION_DEFAULT(VISIT_GDAL_DIR     ${VISITHOME}/gdal-1.7.1)
145
146
147
148

##
## H5PART
##
149
VISIT_OPTION_DEFAULT(VISIT_H5PART_DIR   ${VISITHOME}/h5part)
150
151
VISIT_OPTION_DEFAULT(VISIT_H5PART_LIBDEP 
    HDF5_LIBRARY_DIR hdf5dll ${VISIT_HDF5_LIBDEP})
152

153
154
155
##
## MILI
##
156
VISIT_OPTION_DEFAULT(VISIT_MILI_DIR     ${VISITHOME}/Mili)
157

158
159
160
##
## SILO
##
161
162
163
164
165
166
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)

167
168
VISIT_OPTION_DEFAULT(VISIT_SILO_LIBDEP  
    HDF5_LIBRARY_DIR hdf5dll ${VISIT_HDF5_LIBDEP})
169

bonnell's avatar
bonnell committed
170
##
171
## XDMF
bonnell's avatar
bonnell committed
172
##
173
174
175
VISIT_OPTION_DEFAULT(VISIT_XDMF_DIR ${VISITHOME}/Xdmf/${VISIT_MSVC_VERSION})
VISIT_OPTION_DEFAULT(VISIT_XDMF_LIBDEP 
    HDF5_LIBRARY_DIR hdf5dll ${VISIT_HDF5_LIBDEP})