[CMake] CPACK_INSTALL_CMAKE_PROJECTS options
Dean Inglis
dean.inglis at sympatico.ca
Wed Oct 8 11:25:01 EDT 2008
I have a library that builds based on VTK, ITK, GDCM and KWWidgets called
Teneos. I am building an application, CartilagePRO, which uses all of the
above
libraries and would like to configure cpack to build an NSIS installer
such that ONLY the runtime dll's (no libs or source files) are packaged.
Here is part of my cpack.cmake for the application:
SET(CPACK_INSTALL_CMAKE_PROJECTS
"${CartilagePRO_BINARY_DIR};CartilagePRO;ALL;/")
IF(EXISTS "${Teneos_DIR}/CMakeCache.txt")
SET(CPACK_INSTALL_CMAKE_PROJECTS
"${CPACK_INSTALL_CMAKE_PROJECTS};${Teneos_DIR};TENEOS;ALL;/")
ENDIF(EXISTS "${Teneos_DIR}/CMakeCache.txt")
IF(EXISTS "${VTK_DIR}/CMakeCache.txt")
SET(CPACK_INSTALL_CMAKE_PROJECTS
"${CPACK_INSTALL_CMAKE_PROJECTS};${VTK_DIR};VTK;RuntimeLibraries;/")
ENDIF(EXISTS "${VTK_DIR}/CMakeCache.txt")
IF(EXISTS "${ITK_DIR}/CMakeCache.txt")
SET(CPACK_INSTALL_CMAKE_PROJECTS
"${CPACK_INSTALL_CMAKE_PROJECTS};${ITK_DIR};ITK;RuntimeLibraries;/")
ENDIF(EXISTS "${ITK_DIR}/CMakeCache.txt")
IF(EXISTS "${KWWidgets_DIR}/CMakeCache.txt")
SET(CPACK_INSTALL_CMAKE_PROJECTS
"${CPACK_INSTALL_CMAKE_PROJECTS};${KWWidgets_DIR};KWWidgets;ALL;/")
ENDIF(EXISTS "${KWWidgets_DIR}/CMakeCache.txt")
IF(EXISTS "${GDCM_DIR}/CMakeCache.txt")
SET(CPACK_INSTALL_CMAKE_PROJECTS
"${CPACK_INSTALL_CMAKE_PROJECTS};${GDCM_DIR};GDCM;ALL;/")
ENDIF(EXISTS "${GDCM_DIR}/CMakeCache.txt")
with some of the libraries, I have to provide the ALL option but what I
really want
is to use the RuntimeLibraries option as is done with VTK and ITK.
If I use RuntimeLibraries or Runtime with GDCM, KWWidgets, Teneos or
CartilagePRO
the dll's are not found or packaged. What options are available
to only package dll's ?
Also, I would like to have my application be able to install
without Tcl/Tk having to be installed apriori on a target machine
(as is done with VolView for example). How do I configure CPack to
do this?
Dean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081008/1a5ce46e/attachment-0001.htm>
More information about the CMake
mailing list