From e61c1264d7ad5a6eaca57dc6a8db0e86fff24d73 Mon Sep 17 00:00:00 2001 From: Christophe Alexandre Date: Thu, 22 May 2008 11:36:13 +0000 Subject: [PATCH] return to previous version to search for graphical libraries --- hurricane/cmake_modules/FindHURRICANE.cmake | 25 +++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/hurricane/cmake_modules/FindHURRICANE.cmake b/hurricane/cmake_modules/FindHURRICANE.cmake index 92ecfd15..b1100b42 100644 --- a/hurricane/cmake_modules/FindHURRICANE.cmake +++ b/hurricane/cmake_modules/FindHURRICANE.cmake @@ -6,7 +6,7 @@ # HURRICANE_LIBRARIES - The path to where the Hurricane library files are. -SET(HURRICANE_INCLUDE_PATH_DESCRIPTION "directory containing the Hurricane include files. E.g /usr/local/include or /asim/coriolis/include") +SET(HURRICANE_INCLUDE_PATH_DESCRIPTION "directory containing the Hurricane include files. E.g /usr/local/include/hurricane or /asim/coriolis/include/hurricane") SET(HURRICANE_DIR_MESSAGE "Set the HURRICANE_INCLUDE_DIR cmake cache entry to the ${HURRICANE_INCLUDE_PATH_DESCRIPTION}") @@ -24,7 +24,7 @@ IF(UNIX) FIND_PATH(HURRICANE_INCLUDE_PATH NAMES Cell.h PATHS # Look in other places. ${HURRICANE_DIR_SEARCH} - PATH_SUFFIXES include + PATH_SUFFIXES include/hurricane # Help the user find it if we cannot. DOC "The ${HURRICANE_INCLUDE_PATH_DESCRIPTION}" ) @@ -37,6 +37,22 @@ IF(UNIX) DOC "The ${HURRICANE_INCLUDE_PATH_DESCRIPTION}" ) + FIND_PATH(HURRICANE_VIEWER_INCLUDE_PATH + NAMES CellViewer.h HInspectorWidget.h + PATHS ${HURRICANE_DIR_SEARCH} + PATH_SUFFIXES include/hurricane + # Help the user find it if we cannot. + DOC "The ${HURRICANE_INCLUDE_PATH_DESCRIPTION}" + ) + + FIND_LIBRARY(HURRICANE_VIEWER_LIBRARY_PATH + NAMES hviewer + PATHS ${HURRICANE_DIR_SEARCH} + PATH_SUFFIXES lib + # Help the user find it if we cannot. + DOC "The ${HURRICANE_INCLUDE_PATH_DESCRIPTION}" + ) + FIND_LIBRARY(HURRICANE_INSPECTOR_LIBRARY_PATH NAMES hinspector PATHS ${HURRICANE_DIR_SEARCH} @@ -61,12 +77,17 @@ IF(UNIX) ENDIF(HURRICANE_LIBRARY_PATH) ENDIF(HURRICANE_INCLUDE_PATH) + IF(HURRICANE_VIEWER_INCLUDE_PATH) IF(HURRICANE_VIEWER_LIBRARY_PATH) SET(HURRICANE_GRAPHICAL_FOUND "YES") + SET(HURRICANE_GRAPHICAL_INCLUDE_DIR + ${HURRICANE_VIEWER_INCLUDE_PATH} + ) SET(HURRICANE_GRAPHICAL_LIBRARIES ${HURRICANE_VIEWER_LIBRARY_PATH} ) ENDIF(HURRICANE_VIEWER_LIBRARY_PATH) + ENDIF(HURRICANE_VIEWER_INCLUDE_PATH) IF (HURRICANE_INSPECTOR_LIBRARY_PATH) SET(HURRICANE_GRAPHICAL_LIBRARIES ${HURRICANE_GRAPHICAL_LIBRARIES} ${HURRICANE_INSPECTOR_LIBRARY_PATH})