From 7e2221f38fa7a28d268d3cccb9dbd95ab8715604 Mon Sep 17 00:00:00 2001 From: Ethan Rublee Date: Wed, 1 Jun 2011 18:28:20 +0000 Subject: [PATCH] Fix misspelling of a logical block endif. --- modules/highgui/CMakeLists.txt | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/modules/highgui/CMakeLists.txt b/modules/highgui/CMakeLists.txt index 6ce048f..b87ba26 100644 --- a/modules/highgui/CMakeLists.txt +++ b/modules/highgui/CMakeLists.txt @@ -357,28 +357,30 @@ install(FILES ${highgui_ext_hdrs} ############################# highgui tests ################################ if(BUILD_TESTS) -include_directories("${CMAKE_CURRENT_SOURCE_DIR}/test" - "${CMAKE_CURRENT_BINARY_DIR}") -set(test_deps opencv_ts opencv_highgui opencv_imgproc) + include_directories("${CMAKE_CURRENT_SOURCE_DIR}/test" + "${CMAKE_CURRENT_BINARY_DIR}") -foreach(d ${test_deps}) - if(${d} MATCHES "opencv_") - string(REPLACE "opencv_" "${CMAKE_CURRENT_SOURCE_DIR}/../" d_dir ${d}) - include_directories("${d_dir}/include") - endif() -endforeach() + set(test_deps opencv_ts opencv_highgui opencv_imgproc) + + foreach(d ${test_deps}) + if(${d} MATCHES "opencv_") + string(REPLACE "opencv_" "${CMAKE_CURRENT_SOURCE_DIR}/../" d_dir ${d}) + include_directories("${d_dir}/include") + endif() + endforeach() + + file(GLOB test_srcs "test/*.cpp") + file(GLOB test_hdrs "test/*.h*") -file(GLOB test_srcs "test/*.cpp") -file(GLOB test_hdrs "test/*.h*") + source_group("Src" FILES ${test_srcs}) + source_group("Include" FILES ${test_hdrs}) -source_group("Src" FILES ${test_srcs}) -source_group("Include" FILES ${test_hdrs}) + set(the_target "opencv_test_highgui") -set(the_target "opencv_test_highgui") + add_executable(${the_target} ${test_srcs} ${test_hdrs}) -add_executable(${the_target} ${test_srcs} ${test_hdrs}) -endif(BUILD_TETSTS) +endif(BUILD_TESTS) if(PCHSupport_FOUND AND USE_PRECOMPILED_HEADERS) set(pch_header ${CMAKE_CURRENT_SOURCE_DIR}/test/test_precomp.hpp) -- 2.7.4