-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCMakeLists_old.txt
More file actions
32 lines (24 loc) · 802 Bytes
/
Copy pathCMakeLists_old.txt
File metadata and controls
32 lines (24 loc) · 802 Bytes
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
cmake_minimum_required(VERSION 3.16)
project(yolov5-tfLite)
# Try to find OpenCV
# set(OpenCV_DIR ....)
find_package(OpenCV 4 REQUIRED)
if (OpenCV_FOUND)
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()
set(TENSORFLOW_SOURCE_DIR "/home/muhammed/Documents/work/repositories/tensorflow/")
add_subdirectory(
"${TENSORFLOW_SOURCE_DIR}/tensorflow/lite"
"${CMAKE_CURRENT_BINARY_DIR}/tensorflow-lite" EXCLUDE_FROM_ALL)
file(GLOB SOURCE_FILES src/*.cpp)
add_executable(${CMAKE_PROJECT_NAME} ${SOURCE_FILES})
target_link_libraries(
${CMAKE_PROJECT_NAME}
${OpenCV_LIBS}
tensorflow-lite
pthread
)