superbuild_add_project(freetype
  DEPENDS ftjam zlib
  BUILD_IN_SOURCE 1
  CONFIGURE_COMMAND
    ""
  BUILD_COMMAND
    "${CMAKE_COMMAND}"
      -Djam_executable:FILEPATH=<INSTALL_DIR>/bin/jam.exe
      -Dsource_location:PATH=<SOURCE_DIR>
      -P "${CMAKE_CURRENT_LIST_DIR}/scripts/freetype.build.cmake"
  INSTALL_COMMAND
    "${CMAKE_COMMAND}"
      -Dsource_location:PATH=<SOURCE_DIR>
      -Dinstall_location:PATH=<INSTALL_DIR>
      -P "${CMAKE_CURRENT_LIST_DIR}/scripts/freetype.install.cmake"
  PROCESS_ENVIRONMENT
    JAM_TOOLSET VISUALC)
