CMakeLists.txt 886 B

123456789101112131415161718192021222324252627282930
  1. IF(CMAKE_COMPILER_IS_GNUCXX)
  2. SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
  3. ENDIF(CMAKE_COMPILER_IS_GNUCXX)
  4. #
  5. # The ADD_EXAMPLE macro (defined in examples/CMakeLists.txt) ensures that
  6. # the example is correctly built for the requested connector. It is equivalent
  7. # to the following two lines:
  8. # ADD_EXECUTABLE(hello.wt hello.C)
  9. # TARGET_LINK_LIBRARIES(hello.wt ${EXAMPLES_CONNECTOR})
  10. # except when the ISAPI (for Microsoft IIS) connector is used, where it will
  11. # build a DLL with the proper symbols exported.
  12. #
  13. WT_ADD_EXAMPLE(chart3D.wt
  14. chart3D.C
  15. NumericalExample.C
  16. CategoryExample.C
  17. Tabs.C
  18. DataSettings.C
  19. Models.C
  20. CsvUtil.C)
  21. #
  22. # If you have Wt installed somehwere, you should use the
  23. # installed Wt header files for your own Wt projects.
  24. # e.g. INCLUDE_DIRECTORIES(/usr/local/include)
  25. # instead of the following:
  26. #
  27. INCLUDE_DIRECTORIES(${WT_SOURCE_DIR}/src)