Vendor CMakeRust

This commit is contained in:
Dathan Bennett
2023-04-26 22:23:33 -07:00
committed by Dustin J. Mitchell
parent 37d7f3de8a
commit 7492fc48bb
28 changed files with 673 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
add_executable(helloworld hello.c)
if(WIN32)
target_link_libraries(helloworld test-lib ws2_32 userenv)
elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
target_link_libraries(helloworld test-lib resolv)
else()
target_link_libraries(helloworld test-lib pthread dl m)
endif()