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

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. set(FBPERF_SOURCES
  13. fbperf.cxx
  14. ${CMAKE_SOURCE_DIR}/vncviewer/PlatformPixelBuffer.cxx
  15. ${CMAKE_SOURCE_DIR}/vncviewer/Surface.cxx)
  16. if(WIN32)
  17. set(FBPERF_SOURCES ${FBPERF_SOURCES} ${CMAKE_SOURCE_DIR}/vncviewer/Surface_Win32.cxx)
  18. elseif(APPLE)
  19. set(FBPERF_SOURCES
  20. ${FBPERF_SOURCES} ${CMAKE_SOURCE_DIR}/vncviewer/Surface_OSX.cxx
  21. ${FBPERF_SOURCES} ${CMAKE_SOURCE_DIR}/vncviewer/keysym2ucs.c
  22. ${FBPERF_SOURCES} ${CMAKE_SOURCE_DIR}/vncviewer/cocoa.mm)
  23. else()
  24. set(FBPERF_SOURCES ${FBPERF_SOURCES} ${CMAKE_SOURCE_DIR}/vncviewer/Surface_X11.cxx)
  25. endif()
  26. add_executable(fbperf ${FBPERF_SOURCES})
  27. target_link_libraries(fbperf test_util rfb ${FLTK_LIBRARIES} ${GETTEXT_LIBRARIES})
  28. if(WIN32)
  29. target_link_libraries(fbperf msimg32)
  30. endif()
  31. if(APPLE)
  32. target_link_libraries(fbperf "-framework Cocoa")
  33. target_link_libraries(fbperf "-framework Carbon")
  34. target_link_libraries(fbperf "-framework IOKit")
  35. endif()
  36. endif()