eco2d/cmake/utils.cmake

10 lines
294 B
CMake
Raw Normal View History

2021-01-19 09:44:43 +00:00
function(link_system_libs target_name)
if (WIN32)
target_link_libraries(${target_name} winmm)
elseif (APPLE)
target_link_libraries(${target_name} pthread m dl)
elseif (UNIX)
target_link_libraries(${target_name} pthread m dl atomic)
endif()
endfunction()