Made unit tests optional
[pulseview.git] / CMakeLists.txt
index afbe0df89afcb2aa311bf823b6bc302fdeb23cec..4ba2577a25353a87202bb05ba595fd6c484f9e83 100644 (file)
@@ -122,6 +122,8 @@ target_link_libraries(pulseview
 )
 endif(WIN32)
 
+if(ENABLE_TESTS)
+
 add_definitions(-DBOOST_TEST_DYN_LINK)
 
 add_executable(pulseview-test
@@ -145,3 +147,7 @@ endif(WIN32)
 
 enable_testing()
 add_test(test ${CMAKE_CURRENT_BINARY_DIR}/pulseview-test)
+
+install(PROGRAMS pulseview DESTINATION bin/)
+
+endif(ENABLE_TESTS)