message: Added function to create includable abi files for testing.
diff: @@ -139,8 +139,38 @@ macro(add_wast_target target INCLUDE_FOLDERS DESTINATION_FOLDER)
  VERBATIM
  )
  - add_custom_target(${target} ALL DEPENDS ${DESTINATION_FOLDER}/${target}.wast.hpp)
  + if (EXISTS ${DESTINATION_FOLDER}/${target}.abi )
  + add_custom_command(OUTPUT ${DESTINATION_FOLDER}/${target}.abi.hpp
  + DEPENDS ${DESTINATION_FOLDER}/${target}.abi
  + COMMAND echo "const char* ${target}_abi = R\"=====(" > ${DESTINATION_FOLDER}/${target}.abi.hpp
  + COMMAND cat ${DESTINATION_FOLDER}/${target}.abi >> ${DESTINATION_FOLDER}/${target}.abi.hpp
  + COMMAND echo ")=====\";" >> ${DESTINATION_FOLDER}/${target}.abi.hpp
  + COMMENT "Generating ${target}.abi.hpp"
  + VERBATIM
  + )
  + set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${target}.abi.hpp)
  + else()
  + endif()
  +
  +
  + add_custom_target(${target} ALL DEPENDS ${DESTINATION_FOLDER}/${target}.wast.hpp ${extra_target_dependency})
  +
  set_property(TARGET ${target} PROPERTY INCLUDE_DIRECTORIES ${INCLUDE_FOLDERS})
  + set(extra_target_dependency)
  endmacro(add_wast_target)
  +
  +function(add_wast_abi_target target SOURCE_FILES INCLUDE_FOLDERS DESTINATION_FOLDER)
  + add_custom_command(OUTPUT ${DESTINATION_FOLDER}/${target}.abi.hpp
  + DEPENDS ${DESTINATION_FOLDER}/${target}.abi
  + COMMAND echo "const char* ${target}_abi = R\"=====(" > ${DESTINATION_FOLDER}/${target}.abi.hpp
  + COMMAND cat ${DESTINATION_FOLDER}/${target}.abi >> ${DESTINATION_FOLDER}/${target}.abi.hpp
  + COMMAND echo ")=====\";" >> ${DESTINATION_FOLDER}/${target}.abi.hpp
  + COMMENT "Generating ${target}.abi.hpp"
  + VERBATIM
  + )
  + set_property(DIRECTORY APPEND PROPERTY ADDITIONAL_MAKE_CLEAN_FILES ${target}.abi.hpp)
  + set(extra_target_dependency ${DESTINATION_FOLDER}/${target}.abi.hpp)
  + add_wast_target(${target} "${SOURCE_FILES}" "${INCLUDE_FOLDERS}" ${CMAKE_CURRENT_BINARY_DIR})
  +endfunction(add_abi_dependency)
  