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

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