You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FindModuleGeometry.cmake 866B

3 years ago
12345678910111213141516171819202122
  1. # ---------------------------------
  2. # Finds module Geometry
  3. # Adds library to target
  4. # Adds include path
  5. # ---------------------------------
  6. GET_PROPERTY(OV_PRINTED GLOBAL PROPERTY OV_TRIED_OpenViBEModuleGeometry)
  7. set(SRC_DIR ${OV_BASE_DIR}/modules/geometry/include)
  8. FIND_PATH(PATH_OPENVIBE_MODULES_GEOMETRY geometry PATHS ${SRC_DIR} NO_DEFAULT_PATH)
  9. IF(PATH_OPENVIBE_MODULES_GEOMETRY)
  10. OV_PRINT(OV_PRINTED " Found OpenViBE module Geometry... ${PATH_OPENVIBE_MODULES_GEOMETRY}")
  11. INCLUDE_DIRECTORIES(${PATH_OPENVIBE_MODULES_GEOMETRY}/)
  12. TARGET_LINK_LIBRARIES(${PROJECT_NAME} openvibe-module-geometry)
  13. ADD_DEFINITIONS(-DTARGET_HAS_Geometry)
  14. ELSE(PATH_OPENVIBE_MODULES_GEOMETRY)
  15. OV_PRINT(OV_PRINTED " FAILED to find OpenViBE module Geometry...")
  16. ENDIF(PATH_OPENVIBE_MODULES_GEOMETRY)
  17. SET_PROPERTY(GLOBAL PROPERTY OV_TRIED_OpenViBEModuleGeometry "Yes")