cmake_minimum_required(VERSION 2.8.2) project(protobuf-build NONE) include(ExternalProject) ExternalProject_Add(protobuf URL "${PROTOBUF_DIR}" SOURCE_DIR "${PROTOBUF_SRC}" BINARY_DIR "${PROTOBUF_BINARY}" SOURCE_SUBDIR "cmake" CMAKE_GENERATOR "${CMAKE_GENERATOR}" CMAKE_ARGS -Dprotobuf_BUILD_TESTS:BOOL=OFF INSTALL_COMMAND "" TEST_COMMAND "" USES_TERMINAL_CONFIGURE ON USES_TERMINAL_BUILD ON )