include_directories(${CMAKE_SOURCE_DIR}/common)
add_library(test_util STATIC util.cxx)
add_executable(convperf convperf.cxx)
target_link_libraries(convperf test_util rfb)
add_executable(decperf decperf.cxx)
target_link_libraries(decperf test_util rfb)
add_executable(encperf encperf.cxx)
target_link_libraries(encperf test_util rfb)
if (BUILD_VIEWER)
add_executable(fbperf
fbperf.cxx
${CMAKE_SOURCE_DIR}/vncviewer/PlatformPixelBuffer.cxx
${CMAKE_SOURCE_DIR}/vncviewer/Surface.cxx)
if(WIN32)
target_sources(fbperf PRIVATE ${CMAKE_SOURCE_DIR}/vncviewer/Surface_Win32.cxx)
elseif(APPLE)
target_sources(fbperf PRIVATE
${CMAKE_SOURCE_DIR}/vncviewer/Surface_OSX.cxx
${CMAKE_SOURCE_DIR}/vncviewer/keysym2ucs.c
${CMAKE_SOURCE_DIR}/vncviewer/cocoa.mm)
else()
target_sources(fbperf PRIVATE ${CMAKE_SOURCE_DIR}/vncviewer/Surface_X11.cxx)
endif()
target_include_directories(fbperf SYSTEM PUBLIC ${FLTK_INCLUDE_DIR})
target_include_directories(fbperf SYSTEM PUBLIC ${GETTEXT_INCLUDE_DIR})
target_link_libraries(fbperf test_util rfb ${FLTK_LIBRARIES} ${GETTEXT_LIBRARIES})
if(WIN32)
target_link_libraries(fbperf msimg32)
endif()
if(APPLE)
target_link_libraries(fbperf "-framework Cocoa")
target_link_libraries(fbperf "-framework Carbon")
target_link_libraries(fbperf "-framework IOKit")
endif()
endif()
287-fix-avatar-fed-share-receiver
blob: 75528500b56e1610708ad7829c217f8ee63928cc (
plain)