Skip to content

Commit 8d8b2f8

Browse files
committed
Add Apple high-performance viewer example
1 parent fb2901a commit 8d8b2f8

7 files changed

Lines changed: 4276 additions & 22 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ endif(X11_xcb_FOUND AND X11_xcb_xtest_FOUND AND X11_xcb_keysyms_FOUND)
611611

612612
set(LIBVNCCLIENT_EXAMPLES
613613
backchannel
614+
applehpdebug
614615
ppmtest
615616
)
616617

@@ -663,6 +664,9 @@ if(WITH_EXAMPLES)
663664
set_target_properties(client_examples_${e} PROPERTIES OUTPUT_NAME ${e})
664665
set_target_properties(client_examples_${e} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/examples/client)
665666
target_link_libraries(client_examples_${e} vncclient ${CMAKE_THREAD_LIBS_INIT} ${SDL2_LIBRARY} ${GTK2_LIBRARIES} ${FFMPEG_LIBRARIES} ${LIBSSHTUNNEL_LIBRARY})
667+
if(APPLE AND e STREQUAL "applehpdebug")
668+
target_link_libraries(client_examples_${e} "-framework Security" "-framework CoreFoundation")
669+
endif()
666670
endforeach(e ${LIBVNCCLIENT_EXAMPLES})
667671
endif(WITH_LIBVNCCLIENT)
668672

0 commit comments

Comments
 (0)