Skip to content

Commit bd9e739

Browse files
committed
init
0 parents  commit bd9e739

11 files changed

Lines changed: 938 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.cache/
2+
build/

CMakeLists.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
cmake_minimum_required(VERSION 3.16)
2+
project(YOLOClassifier LANGUAGES CXX)
3+
4+
set(CMAKE_CXX_STANDARD 17)
5+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
6+
7+
set(CMAKE_PREFIX_PATH $ENV{VCPKG_LIB} ${CMAKE_PREFIX_PATH})
8+
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/build/${CMAKE_BUILD_TYPE}/bin)
9+
10+
find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets)
11+
find_package(onnxruntime CONFIG REQUIRED)
12+
13+
set(CMAKE_AUTOMOC ON)
14+
set(CMAKE_AUTORCC ON)
15+
set(CMAKE_AUTOUIC ON)
16+
17+
add_executable(${PROJECT_NAME}
18+
main.cpp
19+
MainWindow.cpp
20+
MainWindow.h
21+
OnnxClassifier.cpp
22+
OnnxClassifier.h
23+
)
24+
25+
target_link_libraries(${PROJECT_NAME} PRIVATE
26+
Qt5::Core
27+
Qt5::Gui
28+
Qt5::Widgets
29+
onnxruntime::onnxruntime
30+
)

0 commit comments

Comments
 (0)