@@ -22,8 +22,9 @@ endif()
2222include (${EXECUTORCH_ROOT} /tools/cmake/Utils.cmake)
2323
2424# Let files say "include <executorch/path/to/header.h>".
25- set (_common_include_directories ${EXECUTORCH_ROOT} /..
26- ${EXECUTORCH_ROOT} /runtime/core/portable_type/c10)
25+ set (_common_include_directories
26+ ${EXECUTORCH_ROOT} /.. ${EXECUTORCH_ROOT} /runtime/core/portable_type/c10
27+ )
2728
2829add_compile_definitions (C10_USING_CUSTOM_GENERATED_MACROS)
2930
@@ -38,52 +39,58 @@ if(EXECUTORCH_CADENCE_CPU_RUNNER)
3839 executorch_target_link_options_shared_lib(executorch)
3940 executorch_target_link_options_shared_lib(portable_ops_lib)
4041
41- target_include_directories (executorch INTERFACE ${_common_include_directories} )
42+ target_include_directories (
43+ executorch INTERFACE ${_common_include_directories}
44+ )
4245
4346 find_package (
44- gflags REQUIRED PATHS ${CMAKE_CURRENT_BINARY_DIR} /../../third-party
47+ gflags REQUIRED PATHS ${CMAKE_CURRENT_BINARY_DIR} /../../third-party
4548 )
4649
47- add_executable (cadence_runner
48- ${EXECUTORCH_ROOT} /examples/devtools/example_runner/example_runner.cpp
50+ add_executable (
51+ cadence_runner
52+ ${EXECUTORCH_ROOT} /examples/devtools/example_runner/example_runner.cpp
4953 )
5054 target_compile_options (executorch INTERFACE -DET_EVENT_TRACER_ENABLED)
5155
5256 target_include_directories (
53- etdump INTERFACE ${CMAKE_CURRENT_BINARY_DIR} /../../devtools/include
54- ${EXECUTORCH_ROOT} /third-party/flatcc/include
57+ etdump INTERFACE ${CMAKE_CURRENT_BINARY_DIR} /../../devtools/include
58+ ${EXECUTORCH_ROOT} /third-party/flatcc/include
5559 )
5660
5761 target_include_directories (
58- cadence_runner PUBLIC ${ROOT_DIR} /.. ${CMAKE_BINARY_DIR}
59- ${_common_include_directories}
62+ cadence_runner PUBLIC ${ROOT_DIR} /.. ${CMAKE_BINARY_DIR}
63+ ${_common_include_directories}
6064 )
6165
6266 target_link_libraries (
63- cadence_runner
64- executorch
65- gflags
66- etdump
67- extension_data_loader
68- bundled_program
69- cadence_ops_lib
70- flatccrt
67+ cadence_runner
68+ executorch
69+ gflags
70+ etdump
71+ extension_data_loader
72+ bundled_program
73+ cadence_ops_lib
74+ flatccrt
7175 )
7276endif ()
7377
7478if (EXECUTORCH_NNLIB_OPT)
7579 set (TARGET_DIR hifi)
76- add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /${TARGET_DIR} /third-party/nnlib
77- ${EXECUTORCH_ROOT} /runtime/core/portable_type/c10)
80+ add_subdirectory (
81+ ${CMAKE_CURRENT_SOURCE_DIR} /${TARGET_DIR} /third-party/nnlib
82+ ${EXECUTORCH_ROOT} /runtime/core/portable_type/c10
83+ )
7884 add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /${TARGET_DIR} /kernels)
7985elseif (EXECUTORCH_FUSION_G3_OPT)
8086 set (TARGET_DIR fusion_g3)
81- add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /${TARGET_DIR} /third-party/nnlib
82- ${EXECUTORCH_ROOT} /runtime/core/portable_type/c10)
87+ add_subdirectory (
88+ ${CMAKE_CURRENT_SOURCE_DIR} /${TARGET_DIR} /third-party/nnlib
89+ ${EXECUTORCH_ROOT} /runtime/core/portable_type/c10
90+ )
8391else ()
8492 set (TARGET_DIR reference)
8593 add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /${TARGET_DIR} /kernels)
8694endif ()
8795
88-
8996add_subdirectory (${CMAKE_CURRENT_SOURCE_DIR} /${TARGET_DIR} /operators)
0 commit comments