From 254462089faac8da8347b22f9bcec08437146245 Mon Sep 17 00:00:00 2001 From: Peter Rekdal Sunde Date: Mon, 6 Jul 2015 22:13:07 +0200 Subject: [PATCH] Don't compile benchmark on Windows, it's not portable (yet). --- src/misc_utilities/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/misc_utilities/CMakeLists.txt b/src/misc_utilities/CMakeLists.txt index 0251c40..969cb9d 100644 --- a/src/misc_utilities/CMakeLists.txt +++ b/src/misc_utilities/CMakeLists.txt @@ -15,7 +15,7 @@ TARGET_LINK_LIBRARIES(openalpr-utils-classifychars ${Tesseract_LIBRARIES} ) - +if (NOT DEFINED WIN32) ADD_EXECUTABLE(openalpr-utils-benchmark benchmarks/benchmark.cpp benchmarks/benchmark_utils.cpp @@ -28,7 +28,7 @@ TARGET_LINK_LIBRARIES(openalpr-utils-benchmark ${OpenCV_LIBS} ${Tesseract_LIBRARIES} ) - +ENDIF() ADD_EXECUTABLE( openalpr-utils-prepcharsfortraining prepcharsfortraining.cpp ) TARGET_LINK_LIBRARIES(openalpr-utils-prepcharsfortraining @@ -64,7 +64,11 @@ install (TARGETS openalpr-utils-calibrate DESTINATION bin) install (TARGETS openalpr-utils-sortstate DESTINATION bin) install (TARGETS openalpr-utils-classifychars DESTINATION bin) + +if (NOT DEFINED WIN32) install (TARGETS openalpr-utils-benchmark DESTINATION bin) +ENDIF() + install (TARGETS openalpr-utils-prepcharsfortraining DESTINATION bin) install (TARGETS openalpr-utils-tagplates DESTINATION bin) install (TARGETS openalpr-utils-calibrate DESTINATION bin)