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.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. include_directories(${GETTEXT_INCLUDE_DIR})
  2. include_directories(${CMAKE_SOURCE_DIR}/common)
  3. add_library(test_util STATIC util.cxx)
  4. add_executable(convperf convperf.cxx)
  5. target_link_libraries(convperf test_util rfb)
  6. add_executable(decperf decperf.cxx)
  7. target_link_libraries(decperf test_util rfb)
  8. add_executable(encperf encperf.cxx)
  9. target_link_libraries(encperf test_util rfb)
  10. if (BUILD_VIEWER)
  11. include_directories(${FLTK_INCLUDE_DIR})
  12. add_executable(fbperf
  13. fbperf.cxx
  14. ${CMAKE_SOURCE_DIR}/vncviewer/PlatformPixelBuffer.cxx
  15. ${CMAKE_SOURCE_DIR}/vncviewer/Surface.cxx)
  16. if(WIN32)
  17. target_sources(fbperf PRIVATE ${CMAKE_SOURCE_DIR}/vncviewer/Surface_Win32.cxx)
  18. elseif(APPLE)
  19. target_sources(fbperf PRIVATE
  20. ${CMAKE_SOURCE_DIR}/vncviewer/Surface_OSX.cxx
  21. ${CMAKE_SOURCE_DIR}/vncviewer/keysym2ucs.c
  22. ${CMAKE_SOURCE_DIR}/vncviewer/cocoa.mm)
  23. else()
  24. target_sources(fbperf PRIVATE ${CMAKE_SOURCE_DIR}/vncviewer/Surface_X11.cxx)
  25. endif()
  26. target_link_libraries(fbperf test_util rfb ${FLTK_LIBRARIES} ${GETTEXT_LIBRARIES})
  27. if(WIN32)
  28. target_link_libraries(fbperf msimg32)
  29. endif()
  30. if(APPLE)
  31. target_link_libraries(fbperf "-framework Cocoa")
  32. target_link_libraries(fbperf "-framework Carbon")
  33. target_link_libraries(fbperf "-framework IOKit")
  34. endif()
  35. endif()