@@ -11,15 +11,18 @@ project(
11
11
DESCRIPTION
12
12
"Edgerunner is a cross-platform ML inference library for mobile devices"
13
13
HOMEPAGE_URL "https://runlocal.ai"
14
- LANGUAGES CXX )
14
+ LANGUAGES CXX
15
+ )
15
16
16
17
include (cmake/project-is-top-level.cmake )
17
18
include (cmake/variables.cmake )
18
19
19
20
# ---- Declare library ----
20
21
21
- add_library (edgerunner_edgerunner source /edgerunner.cpp source /tflite/model.cpp
22
- source /tflite/tensor.cpp )
22
+ add_library (
23
+ edgerunner_edgerunner source /edgerunner.cpp source /tflite/model.cpp
24
+ source /tflite/tensor.cpp
25
+ )
23
26
add_library (edgerunner::edgerunner ALIAS edgerunner_edgerunner )
24
27
25
28
include (GenerateExportHeader )
@@ -30,11 +33,13 @@ generate_export_header(
30
33
EXPORT_FILE_NAME
31
34
export /edgerunner/edgerunner_export.hpp
32
35
CUSTOM_CONTENT_FROM_VARIABLE
33
- pragma_suppress_c4251 )
36
+ pragma_suppress_c4251
37
+ )
34
38
35
39
if (NOT BUILD_SHARED_LIBS )
36
- target_compile_definitions (edgerunner_edgerunner
37
- PUBLIC EDGERUNNER_STATIC_DEFINE )
40
+ target_compile_definitions (
41
+ edgerunner_edgerunner PUBLIC EDGERUNNER_STATIC_DEFINE
42
+ )
38
43
endif ()
39
44
40
45
set_target_properties (
@@ -44,15 +49,18 @@ set_target_properties(
44
49
VERSION "${PROJECT_VERSION} "
45
50
SOVERSION "${PROJECT_VERSION_MAJOR} "
46
51
EXPORT_NAME edgerunner
47
- OUTPUT_NAME edgerunner )
52
+ OUTPUT_NAME edgerunner
53
+ )
48
54
49
55
target_include_directories (
50
56
edgerunner_edgerunner ${warning_guard}
51
- PUBLIC "\$ <BUILD_INTERFACE:${PROJECT_SOURCE_DIR} /include>" )
57
+ PUBLIC "\$ <BUILD_INTERFACE:${PROJECT_SOURCE_DIR} /include>"
58
+ )
52
59
53
60
target_include_directories (
54
61
edgerunner_edgerunner SYSTEM
55
- PUBLIC "\$ <BUILD_INTERFACE:${PROJECT_BINARY_DIR} /export>" )
62
+ PUBLIC "\$ <BUILD_INTERFACE:${PROJECT_BINARY_DIR} /export>"
63
+ )
56
64
57
65
target_compile_features (edgerunner_edgerunner PUBLIC cxx_std_17 )
58
66
@@ -72,7 +80,8 @@ if(ANDROID AND edgerunner_ENABLE_NPU)
72
80
target_compile_definitions (edgerunner_edgerunner PUBLIC EDGERUNNER_QNN )
73
81
74
82
file (COPY "${CMAKE_BINARY_DIR} /../runtimeLibs/"
75
- DESTINATION ${CMAKE_BINARY_DIR} )
83
+ DESTINATION ${CMAKE_BINARY_DIR}
84
+ )
76
85
endif ()
77
86
78
87
if (edgerunner_ENABLE_GPU )
0 commit comments