-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
40 lines (31 loc) · 949 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
cmake_minimum_required(VERSION 3.22)
project(Lpr)
set(CMAKE_CXX_STANDARD 14)
# OpenCV
find_package(OpenCV REQUIRED)
if (OpenCV_FOUND)
# If the package has been found, several variables will
# be set, you can find the full list with descriptions
# in the OpenCVConfig.cmake file.
# Print some message showing some of them
message(STATUS "OpenCV library status:")
message(STATUS " version: ${OpenCV_VERSION}")
message(STATUS " include path: ${OpenCV_INCLUDE_DIRS}" \n)
else ()
message(FATAL_ERROR "Could not locate OpenCV" \n)
endif()
# OpenVINO
find_package(OpenVINO REQUIRED)
if(CMAKE_COMPILER_IS_GNUCXX)
ov_add_compiler_flags(-Wall)
endif()
if(APPLE)
set(CMAKE_MACOSX_RPATH ON)
endif()
file(GLOB LPR_SOURCE_FILES src/LPR/*.cpp src/LPR/*.h src/LPR/*.hpp)
add_executable(Lpr src/main.cpp ${LPR_SOURCE_FILES})
target_link_libraries (
Lpr
${OpenCV_LIBS}
openvino::runtime
)