From: Joel Holdsworth Date: Fri, 12 Oct 2012 19:53:47 +0000 (+0100) Subject: Made unit tests optional X-Git-Tag: pulseview-0.1.0~276 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=77e8ac522c85ca2a54e9d400fe3ea1d304f4347a;p=pulseview.git Made unit tests optional --- 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)