File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,16 +29,12 @@ set(CMAKE_CXX_STANDARD 17)
2929
3030
3131include (LibTorchDL )
32-
33-
3432download_libtorch (
3533 CACHE_DIR ${PROJECT_CACHE_DIR}
3634 DESTINATION ${LIBTORCH_DIR}
3735)
3836
3937
40-
41-
4238add_library (bridge OBJECT ${BRIDGE_DIR} /include/bridge.h ${BRIDGE_DIR} /lib/bridge.cpp )
4339
4440target_include_directories (
@@ -52,26 +48,6 @@ target_include_directories(
5248set (BRIDGE_OBJECT_FILES $<TARGET_OBJECTS :bridge >)
5349
5450
55- # set_target_properties(bridge PROPERTIES
56- # OUTPUT_NAME "bridge"
57- # )
58- # install(TARGETS bridge DESTINATION ".")
59-
60-
61-
62- # file(COPY ${bridge}
63- # DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/bridge.o
64- # )
65-
66-
67-
68- # get_target_property(bridge_o_path bridge LOCATION)
69- # set(bridge_o_path "${CMAKE_CURRENT_BINARY_DIR}/bridge.o")
70- # set(bridge_o_path $<TARGET_OBJECTS:bridge>)
71-
72- # message(STATUS "Library path: ${bridge_o_path}")
73-
74-
7551add_executable (TorchBridge ${BRIDGE_DIR} /lib/Bridge.chpl )
7652add_dependencies (TorchBridge bridge )
7753target_link_options (TorchBridge
You can’t perform that action at this time.
0 commit comments