[CMake] Noob question, what is "cmake_install.cmake"?
Darren Weber
darren.weber.lists at gmail.com
Tue Mar 23 19:13:43 EDT 2010
I've got a build going for some ITK code and I want to install the binaries
into /usr/local/bin/.
This is what I try, without success.
[ ~/src/kitware/itkImageSeries2Volume-build ]$ gmake
[ 9%] Built target itkImageSeries2VTKvolume
[ 18%] Built target itkImageSeriesResize
[ 27%] Built target itkImageSeriesSize
[ 36%] Built target itkRGBCoregisterImageSeries2VTKvolume
[ 45%] Built target itkRGBImageSeries2VTKvolume
[ 54%] Built target itkRGBImageSeriesComposeAffineTransforms
[ 63%] Built target itkRGBImageSeriesComposeRigid2DTransforms
[ 72%] Built target itkRGBImageSeriesComposeScalableAffine
[ 81%] Built target itkRGBImageSeriesComposeTransforms
[ 90%] Built target itkRGBImageSeriesResize
[100%] Built target itkRGBImageSeriesSize
[ ~/src/kitware/itkImageSeries2Volume-build ]$ gmake install
gmake: *** No rule to make target `install'. Stop.
Here's the content of the cmake_install.cmake file (I replace my home path
with ${HOME} only for this email):
[ ~/src/kitware/itkImageSeries2Volume-build ]$ cat cmake_install.cmake
# Install script for directory: ${HOME}/src/kitware/itkImageSeries2Volume
# Set the install prefix
IF(NOT DEFINED CMAKE_INSTALL_PREFIX)
SET(CMAKE_INSTALL_PREFIX "/usr/local")
ENDIF(NOT DEFINED CMAKE_INSTALL_PREFIX)
STRING(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
# Set the install configuration name.
IF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
IF(BUILD_TYPE)
STRING(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
ELSE(BUILD_TYPE)
SET(CMAKE_INSTALL_CONFIG_NAME "")
ENDIF(BUILD_TYPE)
MESSAGE(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
ENDIF(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
# Set the component getting installed.
IF(NOT CMAKE_INSTALL_COMPONENT)
IF(COMPONENT)
MESSAGE(STATUS "Install component: \"${COMPONENT}\"")
SET(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
ELSE(COMPONENT)
SET(CMAKE_INSTALL_COMPONENT)
ENDIF(COMPONENT)
ENDIF(NOT CMAKE_INSTALL_COMPONENT)
IF(CMAKE_INSTALL_COMPONENT)
SET(CMAKE_INSTALL_MANIFEST
"install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
ELSE(CMAKE_INSTALL_COMPONENT)
SET(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
ENDIF(CMAKE_INSTALL_COMPONENT)
FILE(WRITE
"${HOME}/src/kitware/itkImageSeries2Volume-build/${CMAKE_INSTALL_MANIFEST}"
"")
FOREACH(file ${CMAKE_INSTALL_MANIFEST_FILES})
FILE(APPEND "${HOME}/src/kitware/itkImageSeries2Volume-build/${CMAKE_INSTALL_MANIFEST}"
"${file}\n")
ENDFOREACH(file)
TIA,
Darren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100323/ce24e7c4/attachment.htm>
More information about the CMake
mailing list