projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b5e53b
)
Wrapping the tests in an if guard. Fails to build if the BUILD_TESTS flag is
author
Ethan Rublee
<no@email>
Wed, 1 Jun 2011 18:04:46 +0000
(18:04 +0000)
committer
Ethan Rublee
<no@email>
Wed, 1 Jun 2011 18:04:46 +0000
(18:04 +0000)
not enabled.
modules/highgui/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/modules/highgui/CMakeLists.txt
b/modules/highgui/CMakeLists.txt
index
c79f211
..
6ce048f
100644
(file)
--- a/
modules/highgui/CMakeLists.txt
+++ b/
modules/highgui/CMakeLists.txt
@@
-356,7
+356,7
@@
install(FILES ${highgui_ext_hdrs}
############################# highgui tests ################################
-
+if(BUILD_TESTS)
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/test"
"${CMAKE_CURRENT_BINARY_DIR}")
@@
-378,6
+378,7
@@
source_group("Include" FILES ${test_hdrs})
set(the_target "opencv_test_highgui")
add_executable(${the_target} ${test_srcs} ${test_hdrs})
+endif(BUILD_TETSTS)
if(PCHSupport_FOUND AND USE_PRECOMPILED_HEADERS)
set(pch_header ${CMAKE_CURRENT_SOURCE_DIR}/test/test_precomp.hpp)