Commit 6273c1f7 authored by Dominik Charousset's avatar Dominik Charousset

Disable Qt and Protobuf example by default

parent 279c4840
......@@ -56,14 +56,16 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
--warnings-as-errors build with '-Werror'
--with-ccache use ccache to improve build performance
Additional Examples:
--with-qt-examples include Qt example(s)
--with-protobuf-examples include Google Protobuf example(s)
Installation Directories:
--prefix=PREFIX installation directory [/usr/local]
Remove Standard Features (even if all dependencies are available):
--no-memory-management build without memory management
--no-examples build without examples
--no-qt-examples build without Qt examples
--no-protobuf-examples build without Google Protobuf examples
--no-curl-examples build without libcurl examples
--no-unit-tests build without unit tests
--no-opencl build without OpenCL module
......@@ -338,11 +340,11 @@ while [ $# -ne 0 ]; do
--no-examples)
append_cache_entry CAF_NO_EXAMPLES BOOL yes
;;
--no-qt-examples)
append_cache_entry CAF_NO_QT_EXAMPLES BOOL yes
--with-qt-examples)
append_cache_entry CAF_BUILD_QT_EXAMPLES BOOL yes
;;
--no-protobuf-examples)
append_cache_entry CAF_NO_PROTOBUF_EXAMPLES BOOL yes
--with-protobuf-examples)
append_cache_entry CAF_BUILD_PROTOBUF_EXAMPLES BOOL yes
;;
--no-curl-examples)
append_cache_entry CAF_NO_CURL_EXAMPLES BOOL yes
......
......@@ -53,7 +53,7 @@ add(remoting distributed_calculator)
add(broker simple_broker)
add(broker simple_http_broker)
if(NOT CAF_NO_PROTOBUF_EXAMPLES)
if(CAF_BUILD_PROTOBUF_EXAMPLES)
find_package(Protobuf)
if(PROTOBUF_FOUND AND PROTOBUF_PROTOC_EXECUTABLE)
PROTOBUF_GENERATE_CPP(ProtoSources ProtoHeaders "${CMAKE_CURRENT_SOURCE_DIR}/remoting/pingpong.proto")
......@@ -66,7 +66,7 @@ if(NOT CAF_NO_PROTOBUF_EXAMPLES)
endif(PROTOBUF_FOUND AND PROTOBUF_PROTOC_EXECUTABLE)
endif()
if(NOT CAF_NO_QT_EXAMPLES)
if(CAF_BUILD_QT_EXAMPLES)
find_package(Qt5 COMPONENTS Core Gui Widgets QUIET)
if(Qt5_FOUND)
message(STATUS "Found Qt5")
......
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