# Is this tool is compiled inside or outside CAMITK (as a standalone)?
if (NOT CAMITK_SOURCE_DIR)
  # if this tool is compiled independantly from CamiTK
  set(MML_STANDALONE ON CACHE BOOL "ON only if MML compiled outside CAMITK")
  message(SEND_ERROR "Compilation of MML outside CamiTK not implemented yet. Please contact authors")
endif()

set(MML_INCLUDE_DIRECTORIES
  ${CAMITK_INCLUDE_DIRECTORIES}
  ${CAMITK_INCLUDE_DIR}/monitoring
  ${CAMITK_INCLUDE_DIR}/mml
  ${CAMITK_INCLUDE_DIR}/pml
  ${CAMITK_INCLUDE_DIR}/lml
  ${LIBXML2_INCLUDE_DIR}
  ${XERCESC_INCLUDE_DIR}
  ${XSD_INCLUDE_DIR}
)

set(MML_LIBRARIES
  ${LIBXML2_LIBRARIES}
  ${XERCESC_LIBRARIES}
)

# default list of subdirectory
add_subdirectory(schema)
add_subdirectory(monitoring)
add_subdirectory(applications)
