Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[d1adc1]: CMakeModules / win_bundle.cmake Maximize Restore History

Download this file

win_bundle.cmake    68 lines (57 with data), 2.8 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
IF(WIN32)
# copy installer files
CONFIGURE_FILE(platforms/windows/msi/WixFragmentRegistry.wxs ${CMAKE_CURRENT_BINARY_DIR}/INSTALL/WixFragmentRegistry.wxs COPYONLY)
CONFIGURE_FILE(platforms/windows/msi/hugin.warsetup ${CMAKE_CURRENT_BINARY_DIR}/INSTALL/hugin.warsetup )
CONFIGURE_FILE(platforms/windows/msi/top_banner.bmp ${CMAKE_CURRENT_BINARY_DIR}/INSTALL/top_banner.bmp COPYONLY)
CONFIGURE_FILE(platforms/windows/msi/big_banner.bmp ${CMAKE_CURRENT_BINARY_DIR}/INSTALL/big_banner.bmp COPYONLY)
# install hugin readme, license etc.
INSTALL(FILES AUTHORS COPYING LICENCE LICENCE_JHEAD LICENCE_VIGRA
DESTINATION doc/hugin)
# find the path to enblend and panotools build directories
# and copy required binaries into hugin installation folder
FIND_PATH(PANO13_EXE_DIR PTmender.exe
${SOURCE_BASE_DIR}/libpano/pano13/tools
${SOURCE_BASE_DIR}/libpano/pano13/tools/Release
DOC "Location of pano13 executables"
NO_DEFAULT_PATH)
FILE(GLOB PANO13_EXECUTABLES ${PANO13_EXE_DIR}/*.exe)
INSTALL(FILES ${PANO13_EXECUTABLES} DESTINATION ${BINDIR})
# TODO: install documentation for panotools?
FIND_PATH(PANO13_SRC_DIR filter.h
${SOURCE_BASE_DIR}/libpano/pano13
DOC "Location of pano13 source"
NO_DEFAULT_PATH)
INSTALL(FILES ${PANO13_SRC_DIR}/AUTHORS
${PANO13_SRC_DIR}/gpl.txt
${PANO13_SRC_DIR}/README
${PANO13_SRC_DIR}/TODO
${PANO13_SRC_DIR}/doc/Optimize.txt
${PANO13_SRC_DIR}/doc/PTblender.readme
${PANO13_SRC_DIR}/doc/PTmender.readme
${PANO13_SRC_DIR}/doc/stitch.txt
DESTINATION doc/panotools)
FIND_PATH(ENBLEND_EXE_DIR enblend.exe
${SOURCE_BASE_DIR}/enblend-3.1
DOC "Location of enblend executables"
NO_DEFAULT_PATH
)
FILE(GLOB ENBLEND_EXECUTABLES ${ENBLEND_EXE_DIR}/*.exe)
SET(ENBLEND_DOC_FILES ${ENBLEND_EXE_DIR}/AUTHORS
${ENBLEND_EXE_DIR}/ChangeLog
${ENBLEND_EXE_DIR}/COPYING
${ENBLEND_EXE_DIR}/INSTALL
${ENBLEND_EXE_DIR}/NEWS
${ENBLEND_EXE_DIR}/README
${ENBLEND_EXE_DIR}/READMEWIN
${ENBLEND_EXE_DIR}/TODO
${ENBLEND_EXE_DIR}/VIGRA_LICENSE)
INSTALL(FILES ${ENBLEND_EXECUTABLES} DESTINATION ${BINDIR})
INSTALL(FILES ${ENBLEND_DOC_FILES} DESTINATION doc/enblend)
# install make
FIND_PATH(MAKE_EXE_DIR make.exe
${SOURCE_BASE_DIR}/tools/
${SOURCE_BASE_DIR}/make/
DOC "Location of GNU make executable"
NO_DEFAULT_PATH)
INSTALL(FILES ${MAKE_EXE_DIR}/make.exe DESTINATION ${BINDIR})
ENDIF(WIN32)