FindCoMISo.cmake 770 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# - Try to find COMISO
# Once done this will define
#  
#  COMISO_FOUND        - system has COMISO
#  COMISO_INCLUDE_DIR  - the COMISO include directory
#  COMISO_LIBRARY_DIR  - where the libraries are
#  COMISO_LIBRARY      - Link these to use COMISO
#   

IF (COMISO_INCLUDE_DIR)
  # Already in cache, be silent
  SET(COMISO_FIND_QUIETLY TRUE)
ENDIF (COMISO_INCLUDE_DIR)

FIND_PATH( COMISO_INCLUDE_DIR CoMISo/Config/CoMISoDefines.hh
           PATHS "${CMAKE_SOURCE_DIR}/libs/" )

add_definitions (-DCOMISODLL -DUSECOMISO )

IF (COMISO_INCLUDE_DIR)
  SET(COMISO_FOUND TRUE)
  SET( COMISO_LIBRARY_DIR "${ACG_PROJECT_LIBDIR}" )
  SET( COMISO_LIBRARY "CoMISo")
ELSE (COMISO_INCLUDE_DIR)
  SET( COMISO_FOUND FALSE )
  SET( COMISO_LIBRARY_DIR )
ENDIF (COMISO_INCLUDE_DIR)