0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

Added ZMQ_BUILD_TESTS to CMakeLists.txt to allow turning off tests. Useful when building ZMQ as a git submodule.

This commit is contained in:
Gyula Laszlo 2014-02-07 17:50:45 +01:00
parent 5a47fc4f08
commit 7a86b39d63

View File

@ -580,6 +580,12 @@ if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug") # Why?
endforeach()
endif()
#-----------------------------------------------------------------------------
# tests
set(ZMQ_BUILD_TESTS ON CACHE BOOL "Build the tests for ZeroMQ")
if(ZMQ_BUILD_TESTS)
enable_testing()
set(tests
test_system
@ -656,6 +662,8 @@ if(NOT WIN32)
endif()
endif()
endif() # ZMQ_BUILD_TESTS
#-----------------------------------------------------------------------------
# installer