Skip to content

Commit 6a8fffa

Browse files
committed
Add tiny test to cmake file.
1 parent 085fd9b commit 6a8fffa

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Diff for: CMakeLists.txt

+12-1
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,15 @@ target_link_options(TorchBridge
100100
${LIBTORCH_LIBS_LINKER_ARGS}
101101
--ldflags "-Wl,-rpath,${LIBTORCH_DIR}/lib"
102102
)
103-
# install(TARGETS TorchBridge DESTINATION ".")
103+
104+
add_executable(TinyLayerTest ${PROJECT_ROOT_DIR}/test/tiny/layer_test.chpl)
105+
add_dependencies(TinyLayerTest bridge)
106+
target_link_options(TinyLayerTest
107+
PRIVATE
108+
-M ${PROJECT_ROOT_DIR}/lib
109+
${BRIDGE_DIR}/include/bridge.h
110+
${BRIDGE_OBJECT_FILES}
111+
-L ${LIBTORCH_DIR}/lib
112+
${LIBTORCH_LIBS_LINKER_ARGS}
113+
--ldflags "-Wl,-rpath,${LIBTORCH_DIR}/lib"
114+
)

0 commit comments

Comments
 (0)