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.

FindOpenViBEModuleEBML.cmake 1023B

1234567891011121314151617181920212223242526272829
  1. # ---------------------------------
  2. # Finds module EBML
  3. # Adds library to target
  4. # Adds include path
  5. # ---------------------------------
  6. OPTION(DYNAMIC_LINK_OPENVIBE_MODULE_EBML "Dynamically link OpenViBE module EBML" ON)
  7. IF(DYNAMIC_LINK_OPENVIBE_MODULE_EBML)
  8. SET(OPENVIBE_MODULE_EBML_LINKING "")
  9. ADD_DEFINITIONS(-DEBML_Shared)
  10. ELSE()
  11. SET(OPENVIBE_MODULE_EBML_LINKING "-static")
  12. ADD_DEFINITIONS(-DEBML_Static)
  13. ENDIF()
  14. set(PATH_OPENVIBE_MODULES_EBML "PATH_OPENVIBE_MODULES_EBML-NOTFOUND")
  15. set(SRC_DIR ${OV_BASE_DIR}/modules/ebml/include)
  16. FIND_PATH(PATH_OPENVIBE_MODULES_EBML ebml/defines.h PATHS ${SRC_DIR} NO_DEFAULT_PATH)
  17. IF(PATH_OPENVIBE_MODULES_EBML)
  18. debug_message( " Found OpenViBE module EBML...")
  19. INCLUDE_DIRECTORIES(${PATH_OPENVIBE_MODULES_EBML}/)
  20. TARGET_LINK_LIBRARIES(${PROJECT_NAME} openvibe-module-ebml${OPENVIBE_MODULE_EBML_LINKING})
  21. ADD_DEFINITIONS(-DTARGET_HAS_EBML)
  22. ELSE(PATH_OPENVIBE_MODULES_EBML)
  23. MESSAGE(WARNING " FAILED to find OpenViBE module EBML...")
  24. ENDIF(PATH_OPENVIBE_MODULES_EBML)