I got the ZIP part to work by putting the 7zip.exe on my "path" in windows xp.

The last problem is still that CPack is NOT copying my 3rd party libraries into the installer staging area. If I do a "make install" in msys I _will_ get all the proper libraries copied into the installation area.

Not sure what the difference is at this point.

This is what I have so far for my CPack code which is called from my normal cmake scripts.

INCLUDE(InstallRequiredSystemLibraries)

SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Tools to work with HDF5 files and MXA Files")
SET(CPACK_PACKAGE_VENDOR "IMTS- CTMD Group")
# SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/ ReadMe.txt") # SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/ Copyright.txt")
SET(CPACK_PACKAGE_VERSION_MAJOR "${MXATOOLS_VERSION_MAJOR}")
SET(CPACK_PACKAGE_VERSION_MINOR "${MXATOOLS_VERSION_MINOR}")
SET(CPACK_PACKAGE_VERSION_PATCH "${MXATOOLS_VERSION_PATCH}")
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "MXA Tools $ {CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.$ {CPACK_PACKAGE_VERSION_PATCH}")
SET(CPACK_SOURCE_PACKAGE_FILE_NAME
"mxatools-${CPACK_PACKAGE_VERSION_MAJOR}.$ {CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
IF(WIN32 AND NOT UNIX)
# There is a bug in NSI that does not handle full unix paths properly. Make
  # sure there is at least one set of four (4) backlasshes.
SET(CPACK_PACKAGE_ICON "${PROJECT_RESOURCES_DIR}\\\ \CPackInstallIcon.jpg")
#  SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\MyExecutable.exe")
SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY} MXA Tools")
  SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\www.my-project-home-page.org")
SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\www.my-personal-home- page.com")
  SET(CPACK_NSIS_CONTACT "[EMAIL PROTECTED]")
  SET(CPACK_NSIS_MODIFY_PATH ON)
ELSE(WIN32 AND NOT UNIX)
  SET(CPACK_STRIP_FILES "bin/QHDFViewer")
  SET(CPACK_SOURCE_STRIP_FILES "")
ENDIF(WIN32 AND NOT UNIX)
SET(CPACK_INSTALL_CMAKE_PROJECTS "$ {MXATools_BINARY_DIR};MXATools;ALL;/")

INCLUDE(CPack)

Any one have any ideas?
--
Mike Jackson   Senior Research Engineer
Innovative Management & Technology Services


On Jul 1, 2008, at 5:23 PM, Alan W. Irwin wrote:

On 2008-07-01 16:25-0400 Mike Jackson wrote:

Do I have to do a "make install" first? [to get cpack to work]?

No. In my experience "make package" uses the "make install" infrastructure,
but doesn't need make install to be done first.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake



_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to