Am Sonntag 14 Februar 2010 schrieb Alexandre Duret-Lutz: > Basically in the GNU Build System I would just have to run > "./configure CPPFLAGS=-I$HOME/usr/include LDLFAGS=-L$HOME/usr/lib". > Unfortunately hugin moved away from the only build system I > understand. > > Can someone teach me how to do that with cmake? I'm afraid if already > spent 2h trying to figure this out :-( > I would love to see INSTALL_cmake updated with the answer, since I > think it is needed by anybody who build and install packages in his > account. >
You may want to try to change CMakeModules/FindPANO13.cmake
1.) Add $HOME/usr/include (Full path please) to FIND_PATH(), e.g.:
FIND_PATH(PANO13_INCLUDE_DIR pano13/panorama.h
$HOME/usr/include
/usr/local/include
/usr/include
${SOURCE_BASE_DIR}/libpano13/include
${SOURCE_BASE_DIR}/libpano
${SOURCE_BASE_DIR}
)
2.) add $HOME/usr/lib to FIND_LIBRARY, e.g.
FIND_LIBRARY(PANO13_LIBRARIES
NAMES pano13
PATHS
$HOME/usr/lib
/usr/lib /usr/local/lib
"${PANO13_INCLUDE_DIR}/pano13/Release LIB CMD"
"${PANO13_INCLUDE_DIR}/pano13/Release CMD/Win32"
${PANO13_INCLUDE_DIR}/pano13/Release
${SOURCE_BASE_DIR}/libpano13/lib
${SOURCE_BASE_DIR}/pano13
)
Substitute $HOME with your actual real path.
Kornel
--
Kornel Benko
[email protected]
signature.asc
Description: This is a digitally signed message part.
