File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ target_include_directories(
162162 ${BRIDGE_DIR} /include
163163 ${LIBTORCH_DIR} /include
164164 ${LIBTORCH_DIR} /include/torch/csrc/api/include
165+ ${BRIDGE_DIR} /util
165166)
166167
167168set (BRIDGE_OBJECT_FILES $<TARGET_OBJECTS :bridge >)
Original file line number Diff line number Diff line change 1+
2+
3+ find_package (OpenCV 4 REQUIRED )
4+
5+ find_library (ACCELERATE Accelerate REQUIRED )
6+ find_library (METAL Metal REQUIRED )
7+ find_library (FOUNDATION Foundation REQUIRED )
8+
9+
10+
111add_library (BridgeUtil INTERFACE )
212
313# Tell consumers where to find the headers
Original file line number Diff line number Diff line change 11add_subdirectory (video )
2+
3+ add_subdirectory (webcam_filter )
Original file line number Diff line number Diff line change 1+
2+
3+
4+
5+
6+ add_executable (WebcamFilter
7+ ${CMAKE_CURRENT_SOURCE_DIR} /WebcamFilter.chpl
8+ ${CHAI_LIB_FILES}
9+ )
10+ add_dependencies (WebcamFilter bridge )
11+ add_dependencies (WebcamFilter ChAI )
12+ target_link_options (WebcamFilter
13+ PRIVATE
14+ ${CHAI_LINKER_ARGS}
15+ )
16+
17+ # add_custom_command(TARGET WebcamFilter POST_BUILD
18+ # COMMAND ${CMAKE_COMMAND} -E copy_directory
19+ # "${CMAKE_CURRENT_SOURCE_DIR}/models"
20+ # "$<TARGET_FILE_DIR:WebcamFilter>/models"
21+ # COMMENT "Copying model folder"
22+ # )
You can’t perform that action at this time.
0 commit comments