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

12345678910111213141516171819202122232425262728293031323334353637383940
  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(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. set(FBPERF_SOURCES
  12. fbperf.cxx
  13. ${CMAKE_SOURCE_DIR}/vncviewer/PlatformPixelBuffer.cxx
  14. ${CMAKE_SOURCE_DIR}/vncviewer/Surface.cxx)
  15. if(WIN32)
  16. set(FBPERF_SOURCES ${FBPERF_SOURCES} ${CMAKE_SOURCE_DIR}/vncviewer/Surface_Win32.cxx)
  17. elseif(APPLE)
  18. set(FBPERF_SOURCES
  19. ${FBPERF_SOURCES} ${CMAKE_SOURCE_DIR}/vncviewer/Surface_OSX.cxx
  20. ${FBPERF_SOURCES} ${CMAKE_SOURCE_DIR}/vncviewer/keysym2ucs.c
  21. ${FBPERF_SOURCES} ${CMAKE_SOURCE_DIR}/vncviewer/cocoa.mm)
  22. else()
  23. set(FBPERF_SOURCES ${FBPERF_SOURCES} ${CMAKE_SOURCE_DIR}/vncviewer/Surface_X11.cxx)
  24. endif()
  25. add_executable(fbperf ${FBPERF_SOURCES})
  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()