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