Brian P. Hinz | 4ece7c5 | 2017-01-08 11:44:50 -0500 | [diff] [blame^] | 1 | include_directories(${FLTK_INCLUDE_DIR}) |
| 2 | include_directories(${GETTEXT_INCLUDE_DIR}) |
| 3 | |
Pierre Ossman | 236c03c | 2014-07-04 14:12:49 +0200 | [diff] [blame] | 4 | include_directories(${CMAKE_SOURCE_DIR}/common) |
| 5 | |
| 6 | add_library(test_util STATIC util.cxx) |
| 7 | |
Pierre Ossman | 8c7962b | 2014-09-24 16:17:42 +0200 | [diff] [blame] | 8 | add_executable(convperf convperf.cxx) |
| 9 | target_link_libraries(convperf test_util rfb) |
Pierre Ossman | 41deb88 | 2014-09-25 09:58:55 +0200 | [diff] [blame] | 10 | |
| 11 | add_executable(conv conv.cxx) |
| 12 | target_link_libraries(conv rfb) |
Pierre Ossman | e1f2545 | 2015-02-04 14:12:04 +0100 | [diff] [blame] | 13 | |
| 14 | add_executable(decperf decperf.cxx) |
| 15 | target_link_libraries(decperf test_util rfb) |
Pierre Ossman | 8738e8a | 2015-02-11 13:49:04 +0100 | [diff] [blame] | 16 | |
| 17 | add_executable(encperf encperf.cxx) |
| 18 | target_link_libraries(encperf test_util rfb) |
Pierre Ossman | d175da7 | 2016-07-11 10:05:05 +0200 | [diff] [blame] | 19 | |
| 20 | add_executable(hostport hostport.cxx) |
| 21 | target_link_libraries(hostport rfb) |
Pierre Ossman | 38a1c70 | 2016-12-20 12:32:37 +0100 | [diff] [blame] | 22 | |
| 23 | set(FBPERF_SOURCES |
| 24 | fbperf.cxx |
| 25 | ../vncviewer/FLTKPixelBuffer.cxx |
| 26 | ../vncviewer/PlatformPixelBuffer.cxx) |
| 27 | if(WIN32) |
| 28 | set(FBPERF_SOURCES ${FBPERF_SOURCES} ../vncviewer/Win32PixelBuffer.cxx) |
| 29 | elseif(APPLE) |
| 30 | set(FBPERF_SOURCES ${FBPERF_SOURCES} ../vncviewer/OSXPixelBuffer.cxx) |
| 31 | else() |
| 32 | set(FBPERF_SOURCES ${FBPERF_SOURCES} ../vncviewer/X11PixelBuffer.cxx) |
| 33 | endif() |
| 34 | add_executable(fbperf ${FBPERF_SOURCES}) |
| 35 | target_link_libraries(fbperf test_util rfb ${FLTK_LIBRARIES} ${GETTEXT_LIBRARIES}) |
| 36 | if(APPLE) |
| 37 | target_link_libraries(fbperf "-framework Cocoa" "-framework Carbon") |
| 38 | endif() |