You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 1.0KB

1234567891011121314151617181920212223242526272829303132333435
  1. include_directories(${CMAKE_SOURCE_DIR}/common)
  2. add_library(test_util STATIC util.cxx)
  3. add_executable(convperf convperf.cxx)
  4. target_link_libraries(convperf test_util rfb)
  5. add_executable(conv conv.cxx)
  6. target_link_libraries(conv rfb)
  7. add_executable(decperf decperf.cxx)
  8. target_link_libraries(decperf test_util rfb)
  9. add_executable(encperf encperf.cxx)
  10. target_link_libraries(encperf test_util rfb)
  11. add_executable(hostport hostport.cxx)
  12. target_link_libraries(hostport rfb)
  13. set(FBPERF_SOURCES
  14. fbperf.cxx
  15. ../vncviewer/FLTKPixelBuffer.cxx
  16. ../vncviewer/PlatformPixelBuffer.cxx)
  17. if(WIN32)
  18. set(FBPERF_SOURCES ${FBPERF_SOURCES} ../vncviewer/Win32PixelBuffer.cxx)
  19. elseif(APPLE)
  20. set(FBPERF_SOURCES ${FBPERF_SOURCES} ../vncviewer/OSXPixelBuffer.cxx)
  21. else()
  22. set(FBPERF_SOURCES ${FBPERF_SOURCES} ../vncviewer/X11PixelBuffer.cxx)
  23. endif()
  24. add_executable(fbperf ${FBPERF_SOURCES})
  25. target_link_libraries(fbperf test_util rfb ${FLTK_LIBRARIES} ${GETTEXT_LIBRARIES})
  26. if(APPLE)
  27. target_link_libraries(fbperf "-framework Cocoa" "-framework Carbon")
  28. endif()