Skip to content

Commit ee20437

Browse files
committed
format even more CMakeLists.txt files
ghstack-source-id: 4c2dc08 ghstack-comment-id: 3080743887 Pull-Request: #12560
1 parent ab840d3 commit ee20437

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

devtools/bundled_program/CMakeLists.txt

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7-
set(
8-
_schema_files
9-
bundled_program_schema.fbs
10-
scalar_type.fbs
11-
)
7+
set(_schema_files bundled_program_schema.fbs scalar_type.fbs)
128

139
set(_schema_outputs)
1410
foreach(schema_file ${_schema_files})
15-
list(APPEND _bundled_program_schema__srcs "${CMAKE_CURRENT_SOURCE_DIR}/schema/${schema_file}")
11+
list(APPEND _bundled_program_schema__srcs
12+
"${CMAKE_CURRENT_SOURCE_DIR}/schema/${schema_file}"
13+
)
1614

1715
string(REGEX REPLACE "[.]fbs$" "_generated.h" generated "${schema_file}")
18-
list(APPEND _schema_outputs "${DEVTOOLS_INCLUDE_DIR}/executorch/devtools/bundled_program/schema/${generated}")
16+
list(
17+
APPEND
18+
_schema_outputs
19+
"${DEVTOOLS_INCLUDE_DIR}/executorch/devtools/bundled_program/schema/${generated}"
20+
)
1921
endforeach()
2022

2123
file(MAKE_DIRECTORY ${DEVTOOLS_INCLUDE_DIR}/executorch/devtools/bundled_program)
@@ -32,20 +34,13 @@ add_custom_command(
3234
)
3335

3436
add_library(
35-
bundled_program
36-
${_schema_outputs}
37-
${CMAKE_CURRENT_SOURCE_DIR}/bundled_program.cpp
38-
)
39-
target_link_libraries(
40-
bundled_program
41-
PUBLIC
42-
executorch
37+
bundled_program ${_schema_outputs}
38+
${CMAKE_CURRENT_SOURCE_DIR}/bundled_program.cpp
4339
)
40+
target_link_libraries(bundled_program PUBLIC executorch)
4441
target_include_directories(
45-
bundled_program
46-
PUBLIC
47-
${DEVTOOLS_INCLUDE_DIR}
48-
${PROJECT_SOURCE_DIR}/third-party/flatbuffers/include
42+
bundled_program PUBLIC ${DEVTOOLS_INCLUDE_DIR}
43+
${PROJECT_SOURCE_DIR}/third-party/flatbuffers/include
4944
)
5045

5146
install(

0 commit comments

Comments
 (0)