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

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. include_directories(${GETTEXT_INCLUDE_DIR})
  2. include_directories(${CMAKE_SOURCE_DIR}/common)
  3. add_library(test_util STATIC util.cxx)
  4. target_link_libraries(test_util ${H264_LIBRARIES})
  5. add_executable(convperf convperf.cxx)
  6. target_link_libraries(convperf test_util 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. if (BUILD_VIEWER)
  12. include_directories(${FLTK_INCLUDE_DIR})
  13. set(FBPERF_SOURCES
  14. fbperf.cxx
  15. ${CMAKE_SOURCE_DIR}/vncviewer/PlatformPixelBuffer.cxx
  16. ${CMAKE_SOURCE_DIR}/vncviewer/Surface.cxx)
  17. if(WIN32)
  18. set(FBPERF_SOURCES ${FBPERF_SOURCES} ${CMAKE_SOURCE_DIR}/vncviewer/Surface_Win32.cxx)
  19. elseif(APPLE)
  20. set(FBPERF_SOURCES
  21. ${FBPERF_SOURCES} ${CMAKE_SOURCE_DIR}/vncviewer/Surface_OSX.cxx
  22. ${FBPERF_SOURCES} ${CMAKE_SOURCE_DIR}/vncviewer/keysym2ucs.c
  23. ${FBPERF_SOURCES} ${CMAKE_SOURCE_DIR}/vncviewer/cocoa.mm)
  24. else()
  25. set(FBPERF_SOURCES ${FBPERF_SOURCES} ${CMAKE_SOURCE_DIR}/vncviewer/Surface_X11.cxx)
  26. endif()
  27. add_executable(fbperf ${FBPERF_SOURCES})
  28. target_link_libraries(fbperf test_util rfb ${FLTK_LIBRARIES} ${GETTEXT_LIBRARIES})
  29. if(WIN32)
  30. target_link_libraries(fbperf msimg32)
  31. endif()
  32. if(APPLE)
  33. target_link_libraries(fbperf "-framework Cocoa")
  34. target_link_libraries(fbperf "-framework Carbon")
  35. target_link_libraries(fbperf "-framework IOKit")
  36. endif()
  37. endif()