You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 1.9 kB

4 years ago
7 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
7 years ago
4 years ago
7 years ago
4 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. cmake_minimum_required(VERSION 3.6)
  2. project(SwiftPR)
  3. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
  4. set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
  5. find_package(OpenCV REQUIRED)
  6. include_directories( ${OpenCV_INCLUDE_DIRS})
  7. include_directories(include)
  8. set(SRC_DETECTION src/PlateDetection.cpp src/util.h include/PlateDetection.h)
  9. set(SRC_FINEMAPPING src/FineMapping.cpp )
  10. set(SRC_FASTDESKEW src/FastDeskew.cpp )
  11. set(SRC_SEGMENTATION src/PlateSegmentation.cpp )
  12. set(SRC_RECOGNIZE src/Recognizer.cpp src/CNNRecognizer.cpp)
  13. set(SRC_PIPLINE src/Pipeline.cpp)
  14. set(SRC_SEGMENTATIONFREE src/SegmentationFreeRecognizer.cpp )
  15. #TEST_DETECTION
  16. add_executable(TEST_Detection ${SRC_DETECTION} demos/test_detection.cpp)
  17. target_link_libraries(TEST_Detection ${OpenCV_LIBS})
  18. #TEST_FINEMAPPING
  19. add_executable(TEST_FINEMAPPING ${SRC_FINEMAPPING} demos/test_finemapping.cpp)
  20. target_link_libraries(TEST_FINEMAPPING ${OpenCV_LIBS})
  21. #TEST_DESKEW
  22. add_executable(TEST_FASTDESKEW ${SRC_FASTDESKEW} demos/test_fastdeskew.cpp)
  23. target_link_libraries(TEST_FASTDESKEW ${OpenCV_LIBS})
  24. #TEST_SEGMENTATION
  25. add_executable(TEST_SEGMENTATION ${SRC_SEGMENTATION} ${SRC_RECOGNIZE} demos/test_segmentation.cpp)
  26. target_link_libraries(TEST_SEGMENTATION ${OpenCV_LIBS})
  27. #TEST_RECOGNIZATION
  28. add_executable(TEST_RECOGNIZATION ${SRC_RECOGNIZE} demos/test_recognization.cpp)
  29. target_link_libraries(TEST_RECOGNIZATION ${OpenCV_LIBS})
  30. #TEST_SEGMENTATIONFREE
  31. add_executable(TEST_SEGMENTATIONFREE ${SRC_SEGMENTATIONFREE} demos/test_segmentationFree.cpp)
  32. target_link_libraries(TEST_SEGMENTATIONFREE ${OpenCV_LIBS})
  33. #TEST_PIPELINE
  34. add_executable(TEST_PIPLINE ${SRC_DETECTION} ${SRC_FINEMAPPING} ${SRC_FASTDESKEW} ${SRC_SEGMENTATION} ${SRC_RECOGNIZE} ${SRC_PIPLINE} ${SRC_SEGMENTATIONFREE} demos/test_pipeline.cpp)
  35. target_link_libraries(TEST_PIPLINE ${OpenCV_LIBS})