From bcbd3b51eb80e7766dcbe0309dfa336f9726b72c Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Mon, 15 Dec 2014 20:05:29 -0500 Subject: [PATCH] Enabled utilities by default --- src/misc_utilities/CMakeLists.txt | 32 ++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/src/misc_utilities/CMakeLists.txt b/src/misc_utilities/CMakeLists.txt index d7a81ba..3f4db8e 100644 --- a/src/misc_utilities/CMakeLists.txt +++ b/src/misc_utilities/CMakeLists.txt @@ -1,28 +1,28 @@ -ADD_EXECUTABLE( sortstate EXCLUDE_FROM_ALL sortstate.cpp ) -TARGET_LINK_LIBRARIES(sortstate - openalpr-static +ADD_EXECUTABLE( sortstate-openalpr-utils sortstate.cpp ) +TARGET_LINK_LIBRARIES(sortstate-openalpr-utils + openalpr support ${OpenCV_LIBS} ${Tesseract_LIBRARIES} ) -ADD_EXECUTABLE( classifychars EXCLUDE_FROM_ALL classifychars.cpp ) -TARGET_LINK_LIBRARIES(classifychars - openalpr-static +ADD_EXECUTABLE( classifychars-openalpr-utils classifychars.cpp ) +TARGET_LINK_LIBRARIES(classifychars-openalpr-utils + openalpr support ${OpenCV_LIBS} ${Tesseract_LIBRARIES} ) -ADD_EXECUTABLE(benchmark EXCLUDE_FROM_ALL +ADD_EXECUTABLE(benchmark-openalpr-utils benchmarks/benchmark.cpp benchmarks/benchmark_utils.cpp benchmarks/endtoendtest.cpp ) -TARGET_LINK_LIBRARIES(benchmark - openalpr-static +TARGET_LINK_LIBRARIES(benchmark-openalpr-utils + openalpr support pthread ${OpenCV_LIBS} @@ -30,16 +30,22 @@ TARGET_LINK_LIBRARIES(benchmark ) -ADD_EXECUTABLE( prepcharsfortraining EXCLUDE_FROM_ALL prepcharsfortraining.cpp ) -TARGET_LINK_LIBRARIES(prepcharsfortraining +ADD_EXECUTABLE( prepcharsfortraining-openalpr-utils prepcharsfortraining.cpp ) +TARGET_LINK_LIBRARIES(prepcharsfortraining-openalpr-utils support ${OpenCV_LIBS} ) -ADD_EXECUTABLE( tagplates EXCLUDE_FROM_ALL tagplates.cpp ) -TARGET_LINK_LIBRARIES(tagplates +ADD_EXECUTABLE( tagplates-openalpr-utils tagplates.cpp ) +TARGET_LINK_LIBRARIES(tagplates-openalpr-utils support ${OpenCV_LIBS} ) +install (TARGETS sortstate-openalpr-utils DESTINATION bin) +install (TARGETS classifychars-openalpr-utils DESTINATION bin) +install (TARGETS benchmark-openalpr-utils DESTINATION bin) +install (TARGETS prepcharsfortraining-openalpr-utils DESTINATION bin) +install (TARGETS tagplates-openalpr-utils DESTINATION bin) +