CMake: Fix p3device build on macOS
This commit is contained in:
parent
211ac763d1
commit
3122bf3506
|
|
@ -36,8 +36,10 @@ target_link_libraries(p3cocoadisplay p3glgsg panda)
|
|||
find_library(APPLICATIONSERVICES_LIBRARY ApplicationServices)
|
||||
find_library(APPKIT_LIBRARY AppKit)
|
||||
find_library(CARBON_LIBRARY Carbon)
|
||||
find_library(CORE_VIDEO_LIBRARY CoreVideo)
|
||||
target_link_libraries(p3cocoadisplay
|
||||
${APPLICATIONSERVICES_LIBRARY} ${APPKIT_LIBRARY} ${CARBON_LIBRARY})
|
||||
${APPLICATIONSERVICES_LIBRARY} ${APPKIT_LIBRARY} ${CARBON_LIBRARY}
|
||||
${CORE_VIDEO_LIBRARY})
|
||||
|
||||
if(NOT BUILD_METALIBS)
|
||||
install(TARGETS p3cocoadisplay EXPORT Core COMPONENT Core DESTINATION lib)
|
||||
|
|
|
|||
|
|
@ -62,6 +62,9 @@ target_interrogate(p3device ALL)
|
|||
|
||||
if(WIN32)
|
||||
target_link_libraries(p3device Cfgmgr32.lib)
|
||||
elseif(APPLE)
|
||||
find_library(IOKIT_LIBRARY IOKit)
|
||||
target_link_libraries(p3device ${IOKIT_LIBRARY})
|
||||
endif()
|
||||
|
||||
if(NOT BUILD_METALIBS)
|
||||
|
|
|
|||
Loading…
Reference in New Issue