diff options
author | Pierre Ossman <ossman@cendio.se> | 2016-12-20 12:32:37 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2017-01-04 15:37:34 +0100 |
commit | 38a1c70260f3457977f073cc1535a542877e8671 (patch) | |
tree | 1172fe1a9244bc17ba9113bd473fe3fd4e6caf42 /tests/CMakeLists.txt | |
parent | 2e33286868c69a9117b1062392b9c6368d9c9b52 (diff) | |
download | tigervnc-38a1c70260f3457977f073cc1535a542877e8671.tar.gz tigervnc-38a1c70260f3457977f073cc1535a542877e8671.zip |
Add test to measure framebuffer performance
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index bfd69dcd..164660a3 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -16,3 +16,20 @@ target_link_libraries(encperf test_util rfb) add_executable(hostport hostport.cxx) target_link_libraries(hostport rfb) + +set(FBPERF_SOURCES + fbperf.cxx + ../vncviewer/FLTKPixelBuffer.cxx + ../vncviewer/PlatformPixelBuffer.cxx) +if(WIN32) + set(FBPERF_SOURCES ${FBPERF_SOURCES} ../vncviewer/Win32PixelBuffer.cxx) +elseif(APPLE) + set(FBPERF_SOURCES ${FBPERF_SOURCES} ../vncviewer/OSXPixelBuffer.cxx) +else() + set(FBPERF_SOURCES ${FBPERF_SOURCES} ../vncviewer/X11PixelBuffer.cxx) +endif() +add_executable(fbperf ${FBPERF_SOURCES}) +target_link_libraries(fbperf test_util rfb ${FLTK_LIBRARIES} ${GETTEXT_LIBRARIES}) +if(APPLE) + target_link_libraries(fbperf "-framework Cocoa" "-framework Carbon") +endif() |