From 77e8ac522c85ca2a54e9d400fe3ea1d304f4347a Mon Sep 17 00:00:00 2001 From: Joel Holdsworth Date: Fri, 12 Oct 2012 20:53:47 +0100 Subject: [PATCH] Made unit tests optional --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 21e49273..4ba2577a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,6 +122,8 @@ target_link_libraries(pulseview ) endif(WIN32) +if(ENABLE_TESTS) + add_definitions(-DBOOST_TEST_DYN_LINK) add_executable(pulseview-test @@ -147,3 +149,5 @@ enable_testing() add_test(test ${CMAKE_CURRENT_BINARY_DIR}/pulseview-test) install(PROGRAMS pulseview DESTINATION bin/) + +endif(ENABLE_TESTS) -- 2.30.2