6 /usr/local/share/swig1.3)
11 /usr/local/share/swig1.3)
12 IF(EXISTS ${SWIG_DIR})
13 IF("x${SWIG_DIR}x" STREQUAL "x${CMAKE_ROOT}/Modulesx")
14 MESSAGE("SWIG_DIR should not be modules subdirectory of CMake")
15 ENDIF("x${SWIG_DIR}x" STREQUAL "x${CMAKE_ROOT}/Modulesx")
17 IF(EXISTS ${SWIG_DIR}/SWIGConfig.cmake)
18 INCLUDE(${SWIG_DIR}/SWIGConfig.cmake)
20 ELSE(EXISTS ${SWIG_DIR}/SWIGConfig.cmake)
21 FIND_PROGRAM(SWIG_EXECUTABLE
23 PATHS ${SWIG_DIR} ${SWIG_DIR}/.. ${SWIG_DIR}/../../bin /usr/bin /usr/local/bin )
24 SET(SWIG_USE_FILE ${CMAKE_ROOT}/Modules/UseSWIG.cmake)
25 ENDIF(EXISTS ${SWIG_DIR}/SWIGConfig.cmake)
26 ENDIF(EXISTS ${SWIG_DIR})
28 IF("x${SWIG_FOUND}x" STREQUAL "xFOOBARx")
30 IF(EXISTS ${SWIG_DIR})
31 IF(EXISTS ${SWIG_USE_FILE})
32 IF(EXISTS ${SWIG_EXECUTABLE})
34 ENDIF(EXISTS ${SWIG_EXECUTABLE})
35 ENDIF(EXISTS ${SWIG_USE_FILE})
36 ENDIF(EXISTS ${SWIG_DIR})
38 IF(${SWIG_FIND_REQUIRED})
39 MESSAGE(FATAL_ERROR "Swig was not found on the system. Please specify the location of Swig.")
40 ENDIF(${SWIG_FIND_REQUIRED})
41 ENDIF(NOT ${SWIG_FOUND})
42 ENDIF("x${SWIG_FOUND}x" STREQUAL "xFOOBARx")