diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a739520..e57ec00 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -4,4 +4,12 @@ target_link_libraries(usb4java ${LibUsb_LIBRARIES}) if(CMAKE_COMPILER_IS_GNUCC) set_target_properties(usb4java PROPERTIES LINK_FLAGS -static-libgcc) endif() +if(APPLE) + target_link_libraries(usb4java + "-framework CoreFoundation" + "-framework IOKit" + "-framework Security" + "-lobjc" + ) +endif() install(TARGETS usb4java DESTINATION lib)