CMakeLists.txt 626 B

1234567891011121314151617181920212223242526
  1. IF(NOT MULTI_THREADED_BUILD)
  2. MESSAGE(STATUS "** Not building simplechat example: requires a multi-threaded build.")
  3. ELSE(NOT MULTI_THREADED_BUILD)
  4. ADD_DEFINITIONS(-DTHREADED)
  5. WT_ADD_EXAMPLE(simplechat.wt
  6. simpleChat.C
  7. PopupChatWidget.C
  8. SimpleChatWidget.C
  9. SimpleChatServer.C
  10. )
  11. TARGET_LINK_LIBRARIES(simplechat.wt ${BOOST_THREAD_LIB})
  12. #
  13. # If you have Wt installed somehwere, you should use the
  14. # installed Wt header files for your own Wt projects.
  15. # e.g. INCLUDE_DIRECTORIES(/usr/local/include)
  16. # instead of the following:
  17. #
  18. INCLUDE_DIRECTORIES(${WT_SOURCE_DIR}/src)
  19. ENDIF(NOT MULTI_THREADED_BUILD)