Commit 34448fca authored by Feng Xiao's avatar Feng Xiao

Add an cmake option to exclude tests.

parent 4333edb3
...@@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 2.8) ...@@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 2.8)
project(protobuf C CXX) project(protobuf C CXX)
option(BUILD_TESTING "Build tests" ON)
option(BUILD_SHARED_LIBS "Build Shared Libraries" OFF) option(BUILD_SHARED_LIBS "Build Shared Libraries" OFF)
if (MSVC) if (MSVC)
option(ZLIB "Build with zlib support" OFF) option(ZLIB "Build with zlib support" OFF)
...@@ -66,5 +67,6 @@ endif (MSVC) ...@@ -66,5 +67,6 @@ endif (MSVC)
include(libprotobuf-lite.cmake) include(libprotobuf-lite.cmake)
include(libprotobuf.cmake) include(libprotobuf.cmake)
include(libprotoc.cmake) include(libprotoc.cmake)
include(protoc.cmake) if (BUILD_TESTING)
include(tests.cmake) include(protoc.cmake)
endif (BUILD_TESTING)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment