1 IF(NOT GDCM_WRAP_PYTHON)
2 MESSAGE(ERROR "INNOSETUP_EXECUTABLE require GDCM_WRAP_PYTHON set to YES")
3 ENDIF(NOT GDCM_WRAP_PYTHON)
5 MESSAGE(ERROR "INNOSETUP_EXECUTABLE require GDCM_VTK set to YES")
8 MESSAGE(ERROR "INNOSETUP_EXECUTABLE require BUILD_EXAMPLES set to YES")
9 ENDIF(NOT BUILD_EXAMPLES)
13 FIND_FILE(INNOSETUP_EXECUTABLE ISCC.exe
14 "C:/Program Files/Inno Setup 5"
15 DOC "InnoSetup executable"
18 IF(EXISTS INNOSETUP_EXECUTABLE)
19 MESSAGE(ERROR "INNOSETUP_EXECUTABLE isn't set properly")
20 ENDIF(EXISTS INNOSETUP_EXECUTABLE)
22 #-----------------------------------------------------------------------------
23 # Set new variables to have Windows Paths
24 STRING(REGEX REPLACE "/" "\\\\" INNO_SOURCE_DIR ${GDCM_SOURCE_DIR})
25 STRING(REGEX REPLACE "/" "\\\\" INNO_BINARY_DIR ${GDCM_BINARY_DIR})
26 STRING(REGEX REPLACE "/" "\\\\" INNO_DATA_DIR ${GDCM_DATA_ROOT})
28 #-----------------------------------------------------------------------------
31 ${GDCM_SOURCE_DIR}/Builder/gdcm.iss.in
32 ${GDCM_BINARY_DIR}/Builder/gdcm.iss
35 ADD_CUSTOM_TARGET(InstallerWin32
37 ${INNOSETUP_EXECUTABLE} ${GDCM_BINARY_DIR}/Builder/gdcm.iss
39 #-----------------------------------------------------------------------------
43 #-----------------------------------------------------------------------------
46 ${GDCM_SOURCE_DIR}/Builder/gdcm.spec.in
47 ${GDCM_BINARY_DIR}/Builder/gdcm.spec
50 STRING(REGEX REPLACE ".*/" "" SPEC_SOURCE_DIR ${GDCM_SOURCE_DIR})
51 EXEC_PROGRAM("date +%Y%m%d" OUTPUT_VARIABLE GDCM_DATE)
53 EXEC_PROGRAM("tar -zcvf ${GDCM_BINARY_DIR}/Builder/gdcm.tar.gz ${SPEC_SOURCE_DIR}" ${GDCM_SOURCE_DIR}/..)
54 #-----------------------------------------------------------------------------