[Insight-users] correct numarray version for ITK 2.4.1
Zachary Pincus
zpincus at stanford.edu
Tue Feb 14 11:13:29 EST 2006
Charl,
Thanks for your feedback!
> The Linux build is coming along nicely, I really like the setup: out
> of source ITK, separate out of source CableSwig and separate out of
> source WrapITK. When the build is done I can give feedback, but I
> have to admit that I'm already very positive.
Great. Do let us know if you have any questions about usage, etc.
> [...] Note the path... it has the "c:/build/WrapITK-VS71" twice.
> Perhaps it
> has something to do with the absolute path trick that you do in the
> CMakeLists.txt ("Hackish macro to install a file at an absolute
> location, working around a CMake limitation."). Any ideas on how I
> can fix this?
You are absolutely correct, the "hackish macro" doesn't work for non-
Makefile targets. I have fixed that (I hope!) and pushed the fix to
Gaetan's darcs repository. The fix is also pasted below, in case that
would be easier. (But that might confuse darcs, so maybe just better
to pull the patches from the repository.)
I'm developing on OS X, and Gaetan seems to be primarily using Linux,
so I thank you for your patience with the inevitable errors that will
crop up as we try to get this tested on a broader range of platforms.
Thanks,
Zach
####################################
# Hackish macros to install a file at an absolute location, working
around a
# CMake limitation.
ADD_CUSTOM_TARGET(CustomInstall ALL)
# add a global target so that if this macro is called from one
subdirectory or
# another, they each "see" this single top-level target.
MACRO(INSTALL_AT_ABSOLUTE_PATH PATH)
# USAGE:
# INSTALL_AT_ABSOLUTE_PATH("/path/to/install" "/path/to/file1" ...
"path/to/fileN")
IF(NOT CUSTOM_INSTALL_FILE_WRITTEN)
WRITE_CUSTOM_INSTALL_FILES()
SET(CUSTOM_INSTALL_FILE_WRITTEN ON)
ENDIF(NOT CUSTOM_INSTALL_FILE_WRITTEN)
FOREACH(file ${ARGN})
GET_FILENAME_COMPONENT(filename "${file}" NAME)
STRING(REGEX REPLACE "/$" "" stripped_path "${PATH}")
FILE(APPEND "${PROJECT_BINARY_DIR}/CustomInstall.cmake"
"MESSAGE(STATUS \"Installing ${stripped_path}/${filename}\")\n")
FILE(APPEND "${PROJECT_BINARY_DIR}/CustomInstall.cmake"
"FILE(INSTALL DESTINATION \"${PATH}\" TYPE FILE FILES \"${file}
\")\n")
ENDFOREACH(file)
ENDMACRO(INSTALL_AT_ABSOLUTE_PATH)
MACRO(WRITE_CUSTOM_INSTALL_FILES)
FILE(WRITE "${PROJECT_BINARY_DIR}/CustomInstall.cmake" "")
SET_TARGET_PROPERTIES(CustomInstall PROPERTIES
POST_INSTALL_SCRIPT "${PROJECT_BINARY_DIR}/CustomInstall.cmake")
ENDMACRO(WRITE_CUSTOM_INSTALL_FILES)
####################################
More information about the Insight-users
mailing list