-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
30 lines (19 loc) · 861 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
cmake_minimum_required(VERSION 3.25.2)
project(Food-recognition VERSION 0.1.0)
include(CTest)
enable_testing()
find_package(OpenCV REQUIRED)
include_directories( ${OpenCV_INCLUDE_DIRS})
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
include_directories( ${OpenCV_INCLUDE_DIRS})
add_library(Detector_lib STATIC Utilities/Detector_lib.cpp) # Aggiunta della libreria statica
target_link_libraries(Detector_lib ${OpenCV_LIBS})
add_library(Plate_rec STATIC Utilities/Plate_rec.cpp) # Aggiunta della libreria statica
target_link_libraries(Plate_rec ${OpenCV_LIBS})
add_executable(main main.cpp Utilities/Utilities.cpp Utilities/mAP.cpp)
target_link_libraries( main ${OpenCV_LIBS} Detector_lib Plate_rec)