FindBASESHAPE2D.cmake 914 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 BASESHAPE2D
# Once done this will define
#  
#  BASESHAPE2D_FOUND        - system has BaseShape2D
#  BASESHAPE2D_INCLUDE_DIR  - the BaseShape2D include directory
#  BASESHAPE2D_LIBRARY_DIR  - where the libraries are
#  BASESHAPE2D_LIBRARY      - Link these to use BaseShape2D
#   

IF (BASESHAPE2D_INCLUDE_DIR)
  # Already in cache, be silent
  SET(BASESHAPE2D_FIND_QUIETLY TRUE)
ENDIF (BASESHAPE2D_INCLUDE_DIR)

FIND_PATH( BASESHAPE2D_INCLUDE_DIR BaseShape2D/BaseShape2DDefines.hh
           PATHS "${CMAKE_SOURCE_DIR}/libs/" )

add_definitions (-DBASESHAPE2DDLL -DUSEBASESHAPE2D )

IF (BASESHAPE2D_INCLUDE_DIR)
  SET(BASESHAPE2D_FOUND TRUE)
  SET( BASESHAPE2D_LIBRARY_DIR "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_LIBDIR}" )
  SET( BASESHAPE2D_LIBRARY "BaseShape2D")
ELSE (BASESHAPE2D_INCLUDE_DIR)
  SET( BASESHAPE2D_FOUND FALSE )
  SET( BASESHAPE2D_LIBRARY_DIR )
ENDIF (BASESHAPE2D_INCLUDE_DIR)