windows.cmake 3.1 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
10
11
  ELSEIF (NOT MSVC_VERSION LESS 1400)
      SET(VISIT_MSVC_VERSION "MSVC80")
  ELSEIF (NOT MSVC_VERSION LESS 1310)
      SET(VISIT_MSVC_VERSION "MSVC71")
12
  ELSE (NOT MSVC_VERSION LESS 1600)
13
      MESSAGE(SEND_ERROR "${ERRMSG}")
14
15
  ENDIF (NOT MSVC_VERSION LESS 1600)

16
17
18
19
20
21
22
23
24
25
ELSE (MSVC_VERSION)
  # For some reason, cmake doesnt' set MSVC_VERSION when .Net2003 compiler
  # is chosen. Check a different flag.
  IF (MSVC71)
    SET(VISIT_MSVC_VERSION "MSVC71")
  ELSE (MSVC71)
    MESSAGE(SEND_ERROR "${ERRMSG}")
  ENDIF (MSVC71)
ENDIF(MSVC_VERSION)

26
27
28
29
30
31
# 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)
32
33
34
35
36
37

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


VISIT_OPTION_DEFAULT(VISIT_MESA_DIR   ${VISITHOME}/Mesa)
38

39
VISIT_OPTION_DEFAULT(VISIT_VTK_DIR    ${VISITHOME}/vtk-5.0.0h/${VISIT_MSVC_VERSION}/lib/vtk-5.0)
40

41
42
43
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)
44

45
VISIT_OPTION_DEFAULT(VISIT_PYTHON_DIR ${VISITHOME}/Python26/${VISIT_MSVC_VERSION})
46
47
48
49
50


VISIT_OPTION_DEFAULT(VISIT_BOXLIB2D_DIR ${VISITHOME}/boxlib)
VISIT_OPTION_DEFAULT(VISIT_BOXLIB3D_DIR ${VISITHOME}/boxlib)
VISIT_OPTION_DEFAULT(VISIT_CCMIO_DIR    ${VISITHOME}/ccmio)
51
52
53
IF (NOT CMAKE_CL_64)
    VISIT_OPTION_DEFAULT(VISIT_CFITSIO_DIR  ${VISITHOME}/cfitsio)
ENDIF (NOT CMAKE_CL_64)
54
55
VISIT_OPTION_DEFAULT(VISIT_CGNS_DIR     ${VISITHOME}/cgns)
VISIT_OPTION_DEFAULT(VISIT_EXODUSII_DIR ${VISITHOME}/exodus)
56
VISIT_OPTION_DEFAULT(VISIT_EXODUSII_LIBDEP NETCDF_LIBRARY_DIR netcdf)
57
VISIT_OPTION_DEFAULT(VISIT_GDAL_DIR     ${VISITHOME}/gdal)
58
VISIT_OPTION_DEFAULT(VISIT_HDF4_DIR     ${VISITHOME}/hdf4)
59
60
VISIT_OPTION_DEFAULT(VISIT_HDF5_DIR     ${VISITHOME}/hdf5)
VISIT_OPTION_DEFAULT(VISIT_HDF5_LIBDEP  ${VISITHOME}/szip/lib/${VISIT_MSVC_VERSION} szlibdll)
61
VISIT_OPTION_DEFAULT(VISIT_H5PART_DIR   ${VISITHOME}/h5part)
62

63
VISIT_OPTION_DEFAULT(VISIT_MILI_DIR     ${VISITHOME}/Mili)
64
65

VISIT_OPTION_DEFAULT(VISIT_NETCDF_DIR   ${VISITHOME}/netcdf)
66
67
68
69
70
71
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)

72
73
VISIT_OPTION_DEFAULT(VISIT_SILO_LIBDEP  HDF5_LIBRARY_DIR hdf5dll ${VISIT_HDF5_LIBDEP})

74

bonnell's avatar
bonnell committed
75
76
77
78
79
80
81
##
## Xdmf
##
IF (NOT MSVC_VERSION LESS 1400)
    VISIT_OPTION_DEFAULT(VISIT_XDMF_DIR ${VISITHOME}/Xdmf/${VISIT_MSVC_VERSION})
    VISIT_OPTION_DEFAULT(VISIT_XDMF_LIBDEP HDF5_LIBRARY_DIR hdf5dll ${VISIT_HDF5_LIBDEP})
ENDIF (NOT MSVC_VERSION LESS 1400)