5 IF(NOT GDCM_WRAP_PYTHON)
6 MESSAGE(ERROR " INNOSETUP_EXECUTABLE require GDCM_WRAP_PYTHON set to YES")
7 ENDIF(NOT GDCM_WRAP_PYTHON)
9 MESSAGE(ERROR " INNOSETUP_EXECUTABLE require GDCM_VTK set to YES")
11 IF(NOT BUILD_EXAMPLES)
12 MESSAGE(ERROR " INNOSETUP_EXECUTABLE require BUILD_EXAMPLES set to YES")
13 ENDIF(NOT BUILD_EXAMPLES)
16 FIND_FILE(INNOSETUP_EXECUTABLE ISCC.exe
17 "C:/Program Files/Inno Setup 5"
18 DOC "InnoSetup executable"
21 IF(EXISTS INNOSETUP_EXECUTABLE)
22 MESSAGE(ERROR "INNOSETUP_EXECUTABLE isn't set properly")
23 ENDIF(EXISTS INNOSETUP_EXECUTABLE)
25 #-----------------------------------------------------------------------------
26 # Set new variables to have Windows Paths
27 STRING(REGEX REPLACE "/" "\\\\" INNO_SOURCE_DIR ${GDCM_SOURCE_DIR})
28 STRING(REGEX REPLACE "/" "\\\\" INNO_BINARY_DIR ${GDCM_BINARY_DIR})
29 STRING(REGEX REPLACE "/" "\\\\" INNO_DATA_DIR ${GDCM_DATA_ROOT})
31 #-----------------------------------------------------------------------------
34 ${GDCM_SOURCE_DIR}/Builder/gdcm.iss.in
35 ${GDCM_BINARY_DIR}/Builder/gdcm.iss
38 ADD_CUSTOM_TARGET(InstallerWin32
40 ${INNOSETUP_EXECUTABLE} ${GDCM_BINARY_DIR}/Builder/gdcm.iss
42 #-----------------------------------------------------------------------------
46 #-----------------------------------------------------------------------------
49 ${GDCM_SOURCE_DIR}/Builder/gdcm.spec.in
50 ${GDCM_BINARY_DIR}/Builder/gdcm.spec
53 STRING(REGEX REPLACE ".*/" "" SPEC_SOURCE_DIR ${GDCM_SOURCE_DIR})
54 EXEC_PROGRAM("date +%Y%m%d" OUTPUT_VARIABLE GDCM_DATE)
56 EXEC_PROGRAM("tar -zcvf ${GDCM_BINARY_DIR}/Builder/gdcm.tar.gz ${SPEC_SOURCE_DIR}" ${GDCM_SOURCE_DIR}/..)
57 #-----------------------------------------------------------------------------