From: Joel Holdsworth Date: Fri, 12 Oct 2012 19:53:47 +0000 (+0100) Subject: Made unit tests optional X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=commitdiff_plain;h=77e8ac522c85ca2a54e9d400fe3ea1d304f4347a Made unit tests optional --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 21e4927..4ba2577 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)