Files
taskwarrior-2.x/cmake/CMakeRust/hello_world/CMakeLists.txt
Dathan Bennett 7492fc48bb Vendor CMakeRust
2023-04-27 19:18:10 -04:00

10 lines
280 B
CMake

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()