FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
onnx_runtime_cpp/src/CMakeLists.txt at develop · cardboardcode/onnx_runtime_cpp · GitHub
cardboardcode
/
onnx_runtime_cpp
Public
forked from
xmba15/onnx_runtime_cpp
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
onnx_runtime_cpp
/
src
/
CMakeLists.txt
Copy path
More file actions
More file actions
Latest commit
History
History
History
36 lines (29 loc) · 841 Bytes
Breadcrumbs
onnx_runtime_cpp
/
src
/
CMakeLists.txt
Copy path
File metadata and controls
36 lines (29 loc) · 841 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
cmake_minimum_required
(
VERSION
3.10
)
set
(LIBRARY_NAME
${
PROJECT_NAME
}
)
file
(
GLOB
SOURCE_FILES
${
PROJECT_SOURCE_DIR
}
/src/ImageClassificationOrtSessionHandler.cpp
${
PROJECT_SOURCE_DIR
}
/src/ImageRecognitionOrtSessionHandlerBase.cpp
${
PROJECT_SOURCE_DIR
}
/src/ObjectDetectionOrtSessionHandler.cpp
${
PROJECT_SOURCE_DIR
}
/src/OrtSessionHandler.cpp
)
add_library
(
${LIBRARY_NAME}
SHARED
${SOURCE_FILES}
)
target_include_directories
(
${LIBRARY_NAME}
PUBLIC
$<
BUILD_INTERFACE
:
${
PROJECT_SOURCE_DIR
}
/
include
>
$<
INSTALL_INTERFACE
:
include
>
PRIVATE
${onnxruntime_INCLUDE_DIRS}
)
target_compile_options
(
${LIBRARY_NAME}
PRIVATE
$<$<
CONFIG
:
Debug
>:-
O0
-
g
-
Wall
-
Werror
>
$<$<
CONFIG
:
Release
>:-
O3
>
)
list
(
APPEND
PRIVATE_LIBS
${onnxruntime_LIBS}
)
target_link_libraries
(
${LIBRARY_NAME}
PRIVATE
${PRIVATE_LIBS}
)
Back
|
FazBrowse Home
|
New Git URL