2 # This module finds if Python is installed and determines where the
3 # include files and libraries are. It also determines what the name of
4 # the library is. This code sets the following variables:
6 # LIBIDO_SOURCE_DIR = the full path containing the sources
7 # LIBIDO_BINARY_DIR = the full path containing the binaries
8 # LIBIDO_INCLUDE_PATHS = the paths to where .h files can be found
9 # LIBIDO_LIBRARIES = the full path to the library found
10 # LIBIDO_DEBUG_LIBRARIES = the full path to the debug library found
13 #-----------------------------------------------------------------------------
14 INCLUDE(${CMAKE_ROOT}/Modules/CMakeFindFrameworks.cmake)
16 #-----------------------------------------------------------------------------
18 SET(LIBIDO_SOURCE_DIR ${libIdo_DIR} CACHE PATH "libIdo source directory")
19 SET(LIBIDO_BINARY_DIR ${libIdo_DIR} CACHE PATH "libIdo binary directory")
22 IF(NOT LIBIDO_SOURCE_DIR)
23 FIND_PATH( LIBIDO_SOURCE_DIR libido.spec.in $ENV{LIBIDO_SRC} )
24 SET(LIBIDO_SOURCE_DIR ${LIBIDO_SOURCE_DIR} CACHE PATH "libIdo source directory")
25 ELSE(NOT LIBIDO_SOURCE_DIR)
26 INCLUDE_DIRECTORIES(${LIBIDO_SOURCE_DIR})
27 ENDIF(NOT LIBIDO_SOURCE_DIR)
31 IF(NOT LIBIDO_BINARY_DIR)
32 FIND_PATH( LIBIDO_BINARY_DIR libIdoConfig.cmake paths $ENV{LIBIDO_PATH} )
33 SET(LIBIDO_BINARY_DIR ${LIBIDO_BINARY_DIR} CACHE PATH "libIdo binary directory")
34 ENDIF(NOT LIBIDO_BINARY_DIR)
37 #-----------------------------------------------------------------------------
38 # Set libIdo compilation variables
39 FIND_PATH(LIBIDO_INCLUDE_PATH NAME idima.h
40 PATHS ${LIBIDO_SOURCE_DIR}/src
41 DOC "libIdo include path"
43 FIND_LIBRARY(LIBIDO_LIBRARY name Ido libIdo
44 PATHS ${LIBIDO_BINARY_DIR}/lib/release
45 ${LIBIDO_BINARY_DIR}/lib
48 FIND_LIBRARY(LIBIDO_DEBUG_LIBRARY name Ido libIdo
49 PATHS ${LIBIDO_BINARY_DIR}/lib/debug
50 ${LIBIDO_BINARY_DIR}/lib
51 DOC "libIdo debug library"
55 MARK_AS_ADVANCED(FORCE
60 MARK_AS_ADVANCED(FORCE
68 SET(LIBIDO_INCLUDE_PATHS "${LIBIDO_INCLUDE_PATH}")
69 SET(LIBIDO_LIBRARIES "${LIBIDO_LIBRARY}")
70 SET(LIBIDO_DEBUG_LIBRARIES "${LIBIDO_DEBUG_LIBRARY}")