OpenRCT2/cmake/platform.cmake
2023-01-08 14:18:13 +01:00

11 lines
272 B
CMake

# Helpers for linking platform specific libraries
function(target_link_platform_libraries target)
if (APPLE)
target_link_libraries(${target} "-framework Cocoa -framework CoreServices")
elseif(WIN32)
target_link_libraries(${target} gdi32)
endif ()
endfunction()