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

8 years ago
8 years ago
8 years ago
8 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 3.3.0 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. #set(SOURCE_FILES main.cpp)
  16. #add_executable(HyperLPR_cpp ${SOURCE_FILES})
  17. #TEST_DETECTION
  18. add_executable(TEST_Detection ${SRC_DETECTION} tests/test_detection.cpp)
  19. target_link_libraries(TEST_Detection ${OpenCV_LIBS})
  20. #TEST_FINEMAPPING
  21. add_executable(TEST_FINEMAPPING ${SRC_FINEMAPPING} tests/test_finemapping.cpp)
  22. target_link_libraries(TEST_FINEMAPPING ${OpenCV_LIBS})
  23. #TEST_DESKEW
  24. add_executable(TEST_FASTDESKEW ${SRC_FASTDESKEW} tests/test_fastdeskew.cpp)
  25. target_link_libraries(TEST_FASTDESKEW ${OpenCV_LIBS})
  26. #TEST_SEGMENTATION
  27. add_executable(TEST_SEGMENTATION ${SRC_SEGMENTATION} ${SRC_RECOGNIZE} tests/test_segmentation.cpp)
  28. target_link_libraries(TEST_SEGMENTATION ${OpenCV_LIBS})
  29. #TEST_RECOGNIZATION
  30. add_executable(TEST_RECOGNIZATION ${SRC_RECOGNIZE} tests/test_recognization.cpp)
  31. target_link_libraries(TEST_RECOGNIZATION ${OpenCV_LIBS})
  32. #TEST_SEGMENTATIONFREE
  33. add_executable(TEST_SEGMENTATIONFREE ${SRC_SEGMENTATIONFREE} tests/test_segmentationFree.cpp)
  34. target_link_libraries(TEST_SEGMENTATIONFREE ${OpenCV_LIBS})
  35. #TEST_PIPELINE
  36. add_executable(TRST_PIPLINE ${SRC_DETECTION} ${SRC_FINEMAPPING} ${SRC_FASTDESKEW} ${SRC_SEGMENTATION} ${SRC_RECOGNIZE} ${SRC_PIPLINE} ${SRC_SEGMENTATIONFREE} tests/test_pipeline.cpp)
  37. target_link_libraries(TRST_PIPLINE ${OpenCV_LIBS})