mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 13:25:04 +08:00
35 lines
1.9 KiB
Diff
35 lines
1.9 KiB
Diff
diff --git a/projects/CMake/CMakeLists.txt b/projects/CMake/CMakeLists.txt
|
|
index 8856aa42e..2b3d57e97 100755
|
|
--- a/projects/CMake/CMakeLists.txt
|
|
+++ b/projects/CMake/CMakeLists.txt
|
|
@@ -11,18 +11,20 @@ get_filename_component(RXCPP_DIR "${RXCPP_DIR}" PATH)
|
|
|
|
MESSAGE( STATUS "RXCPP_DIR: " ${RXCPP_DIR} )
|
|
|
|
-add_subdirectory(${RXCPP_DIR}/Rx/v2/test ${CMAKE_CURRENT_BINARY_DIR}/test)
|
|
+if (NOT ${RXCPP_DISABLE_TESTS_AND_EXAMPLES})
|
|
+ add_subdirectory(${RXCPP_DIR}/Rx/v2/test ${CMAKE_CURRENT_BINARY_DIR}/test)
|
|
|
|
-add_subdirectory(${RXCPP_DIR}/projects/doxygen ${CMAKE_CURRENT_BINARY_DIR}/projects/doxygen)
|
|
+ add_subdirectory(${RXCPP_DIR}/projects/doxygen ${CMAKE_CURRENT_BINARY_DIR}/projects/doxygen)
|
|
|
|
-set(EXAMPLES_DIR ${RXCPP_DIR}/Rx/v2/examples)
|
|
+ set(EXAMPLES_DIR ${RXCPP_DIR}/Rx/v2/examples)
|
|
|
|
-add_subdirectory(${EXAMPLES_DIR}/cep ${CMAKE_CURRENT_BINARY_DIR}/examples/cep)
|
|
-add_subdirectory(${EXAMPLES_DIR}/stop ${CMAKE_CURRENT_BINARY_DIR}/examples/stop)
|
|
-add_subdirectory(${EXAMPLES_DIR}/linesfrombytes ${CMAKE_CURRENT_BINARY_DIR}/examples/linesfrombytes)
|
|
-add_subdirectory(${EXAMPLES_DIR}/println ${CMAKE_CURRENT_BINARY_DIR}/examples/println)
|
|
-add_subdirectory(${EXAMPLES_DIR}/pythagorian ${CMAKE_CURRENT_BINARY_DIR}/examples/pythagorian)
|
|
-add_subdirectory(${EXAMPLES_DIR}/tests ${CMAKE_CURRENT_BINARY_DIR}/examples/tests)
|
|
+ add_subdirectory(${EXAMPLES_DIR}/cep ${CMAKE_CURRENT_BINARY_DIR}/examples/cep)
|
|
+ add_subdirectory(${EXAMPLES_DIR}/stop ${CMAKE_CURRENT_BINARY_DIR}/examples/stop)
|
|
+ add_subdirectory(${EXAMPLES_DIR}/linesfrombytes ${CMAKE_CURRENT_BINARY_DIR}/examples/linesfrombytes)
|
|
+ add_subdirectory(${EXAMPLES_DIR}/println ${CMAKE_CURRENT_BINARY_DIR}/examples/println)
|
|
+ add_subdirectory(${EXAMPLES_DIR}/pythagorian ${CMAKE_CURRENT_BINARY_DIR}/examples/pythagorian)
|
|
+ add_subdirectory(${EXAMPLES_DIR}/tests ${CMAKE_CURRENT_BINARY_DIR}/examples/tests)
|
|
+endif ()
|
|
|
|
# The list of RxCpp source files. Please add every new file to this list
|
|
set(RX_SOURCES
|