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.
18 lines
463 B
18 lines
463 B
6 years ago
|
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
|
||
|
)
|