Commit 8d0ecb70 authored by thorsten's avatar thorsten
Browse files

*Make Tests optional

parent a80efa54
......@@ -78,6 +78,11 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build)
target_link_libraries (relaymqcpp ${ZMQ_LIBRARY} ${LIBS})
option(TESTS "Compile and execute Tests" OFF)
if(TESTS)
message("Compilining TESTS")
#Setup CMake to run tests
enable_testing()
......@@ -149,6 +154,9 @@ foreach(testSrc ${TEST_SRCS})
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testBin/${testName} )
endforeach(testSrc)
else(TESTS)
endif(TESTS)
#Install headers and the library
install(FILES
......
......@@ -208,8 +208,9 @@ private:
void *loop; //> Reactor written in C
long ticketDelay;//For Tickets
bool verbose;//for Logging;
long ticketDelay;//For Tckets
class TicketCancelHandle: public TicketHandle{
......
......@@ -3,7 +3,7 @@
//
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE RelayTests
#define BOOST_TEST_MODULE RelayStressTests
#include <boost/test/unit_test.hpp>
#include <relaymq.h>
#include <thread>
......
Supports Markdown
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