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

1234567891011121314151617181920212223242526272829303132333435363738
  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 ${FBPERF_SOURCES} ../vncviewer/Surface_OSX.cxx)
  23. else()
  24. set(FBPERF_SOURCES ${FBPERF_SOURCES} ../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(APPLE)
  29. target_link_libraries(fbperf "-framework Cocoa" "-framework Carbon")
  30. endif()