blob: 164660a323c572b61bb0b8341bda2f2db4211c03 [file] [log] [blame]
Pierre Ossman236c03c2014-07-04 14:12:49 +02001include_directories(${CMAKE_SOURCE_DIR}/common)
2
3add_library(test_util STATIC util.cxx)
4
Pierre Ossman8c7962b2014-09-24 16:17:42 +02005add_executable(convperf convperf.cxx)
6target_link_libraries(convperf test_util rfb)
Pierre Ossman41deb882014-09-25 09:58:55 +02007
8add_executable(conv conv.cxx)
9target_link_libraries(conv rfb)
Pierre Ossmane1f25452015-02-04 14:12:04 +010010
11add_executable(decperf decperf.cxx)
12target_link_libraries(decperf test_util rfb)
Pierre Ossman8738e8a2015-02-11 13:49:04 +010013
14add_executable(encperf encperf.cxx)
15target_link_libraries(encperf test_util rfb)
Pierre Ossmand175da72016-07-11 10:05:05 +020016
17add_executable(hostport hostport.cxx)
18target_link_libraries(hostport rfb)
Pierre Ossman38a1c702016-12-20 12:32:37 +010019
20set(FBPERF_SOURCES
21 fbperf.cxx
22 ../vncviewer/FLTKPixelBuffer.cxx
23 ../vncviewer/PlatformPixelBuffer.cxx)
24if(WIN32)
25 set(FBPERF_SOURCES ${FBPERF_SOURCES} ../vncviewer/Win32PixelBuffer.cxx)
26elseif(APPLE)
27 set(FBPERF_SOURCES ${FBPERF_SOURCES} ../vncviewer/OSXPixelBuffer.cxx)
28else()
29 set(FBPERF_SOURCES ${FBPERF_SOURCES} ../vncviewer/X11PixelBuffer.cxx)
30endif()
31add_executable(fbperf ${FBPERF_SOURCES})
32target_link_libraries(fbperf test_util rfb ${FLTK_LIBRARIES} ${GETTEXT_LIBRARIES})
33if(APPLE)
34 target_link_libraries(fbperf "-framework Cocoa" "-framework Carbon")
35endif()